Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-4194

GGTS freezing on opening any Groovy file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.6.4.RELEASE
    • Fix Version/s: None
    • Component/s: EDITING, GRAILS
    • Environment:
      Ubuntu 14.02-LTS, JDK 1.7.0_79

      Description

      I'm using GGTS 3.6.4 (groovy-eclipse 2.9.2 along with Groovy compiler 2.4.4). Whenever I'm opening any Groovy (in a Grails project) file, the GGTS getting freeze and responding very slow. I searched and investigated on this and found nothing other then these logs from workspace:

      !ENTRY org.eclipse.jdt.core 4 4 2015-07-03 05:10:34.071
      !MESSAGE Internal groovy compiler error.
      !STACK 0
      BUG! exception in phase 'canonicalization' in source unit '/media/others/test-project/grails-app/services/com/UserService.groovy' JDTClassNode.getTypeClass() cannot locate class for com.BaseService using transform loader [email protected]
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.getTypeClass(JDTClassNode.java:710)
      	at org.codehaus.groovy.ast.ClassNode.getTypeClass(ClassNode.java:1499)
      	at org.codehaus.groovy.transform.trait.Traits.findHelpers(Traits.java:112)
      	at org.codehaus.groovy.transform.trait.TraitComposer.doExtendTraits(TraitComposer.java:108)
      	at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:213)
      	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1216)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:646)
      	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:624)
      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:601)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:201)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.analyseCode(GroovyCompilationUnitDeclaration.java:2289)
      	at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:992)
      	at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody0(CompilationUnitProblemFinder.java:207)
      	at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody1$advice(CompilationUnitProblemFinder.java:244)
      	at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:1)
      	at org.codehaus.jdt.groovy.model.GroovyCompilationUnit.buildStructure(GroovyCompilationUnit.java:330)
      	at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:259)
      	at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:107)
      	at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:565)
      	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:294)
      	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:280)
      	at org.eclipse.jdt.internal.core.JavaElement.exists(JavaElement.java:198)
      	at org.grails.ide.eclipse.editor.groovy.elements.GrailsProject.getPrimaryType(GrailsProject.java:178)
      	at org.grails.ide.eclipse.editor.groovy.elements.GrailsProject.internalFindGrailsElementsForProject(GrailsProject.java:553)
      	at org.grails.ide.eclipse.editor.groovy.elements.GrailsProject.findAllServices(GrailsProject.java:512)
      	at org.grails.ide.eclipse.editor.groovy.types.PerProjectServiceCache.ensureInitialized(PerProjectServiceCache.java:108)
      	at org.grails.ide.eclipse.editor.groovy.types.PerProjectServiceCache.findServicesFor(PerProjectServiceCache.java:93)
      	at org.grails.ide.eclipse.editor.groovy.elements.AbstractGrailsElement.populateInjectedServices(AbstractGrailsElement.java:148)
      	at org.grails.ide.eclipse.editor.groovy.elements.ServiceClass.initializeTypeLookup(ServiceClass.java:46)
      	at org.grails.ide.eclipse.editor.groovy.types.GrailsTypeLookup.initialize(GrailsTypeLookup.java:100)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitCompilationUnit(TypeInferencingVisitorWithRequestor.java:343)
      	at org.codehaus.groovy.eclipse.editor.highlighting.GatherSemanticReferences.findSemanticHighlightingReferences(GatherSemanticReferences.java:52)
      	at org.codehaus.groovy.eclipse.editor.highlighting.GroovySemanticReconciler.reconciled(GroovySemanticReconciler.java:153)
      	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.reconciled(CompilationUnitEditor.java:1664)
      	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconciled(JavaReconcilingStrategy.java:212)
      	at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconciled(JavaCompositeReconcilingStrategy.java:164)
      	at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:144)
      	at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105)
      	at org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:406)
      	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173)

      Where the BaseService is Groovy trait and it present in the same package. Looks like Groovy compiler is not able to compile this class or something else. But if I don't open any Groovy file, the GGTS works like a charm and as I start working on my Grails project, it starts freezing and sucking the whole RAM and CPU.

        Activity

        Hide
        mlippert Martin Lippert added a comment -

        We no longer work on the Grails integration for Eclipse, therefore I am closing all the remaining open issues here.
        The code of the project is still available as open-source at GitHub: https://github.com/spring-projects/grails-ide

        Show
        mlippert Martin Lippert added a comment - We no longer work on the Grails integration for Eclipse, therefore I am closing all the remaining open issues here. The code of the project is still available as open-source at GitHub: https://github.com/spring-projects/grails-ide

          People

          • Assignee:
            aclement Andy Clement
            Reporter:
            SAgrawal14 Shashank Agrawal
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: