I have this error on almost all groovy classes on my work project since new year. Unfortunately I am unable to reproduce it on the separate simple test project. My work project is a Grails 3.x project, but I tried to use the same dependencies on the test project and I have no issue - everything working without any errors, so dependencies is not a problem. It looks like it is some strange coincidence. I tried to copy any class with internal error from my working project to a new one, but as soon as I do that it will start compiling without internal errors. Also tried to recreate project from the scratch - got internal errors on almost all groovy classes again. I will provide an error and stack trace for it. May be it will help. Please just take a look on this, may be it will give you some clue. I will try to continue to reproduce it on the separate test project, but so far - no luck. Feel free to ask me if you need more info.
I am using groovy-eclispe plugin of version: Groovy-Eclipse Feature 2.9.2.xx-201701232340-e46
No other changes was made to this project in term of dependencies, migration to new version or others and it was perfectly working in the past, until some groovy-eclipe update break it.
The error is:
Internal groovy compiler error.
Stack Trace:
BUG! exception in phase 'semantic analysis' in source unit '/***/***/****.groovy' Tried to overwrite existing meta data ConstantExpression[(\.\.\\)|(\.\./)].
at org.codehaus.groovy.ast.ASTNode.setNodeMetaData(ASTNode.java:179)
at org.codehaus.groovy.control.StaticImportVisitor.transformInlineConstants(StaticImportVisitor.java:247)
at org.codehaus.groovy.control.StaticImportVisitor.transformVariableExpression(StaticImportVisitor.java:207)
at org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:104)
at org.codehaus.groovy.ast.expr.Expression.transformExpressions(Expression.java:51)
at org.codehaus.groovy.ast.expr.ListExpression.transformExpression(ListExpression.java:68)
at org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:149)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitAnnotations(ClassCodeExpressionTransformer.java:98)
at org.codehaus.groovy.control.StaticImportVisitor.visitAnnotations(StaticImportVisitor.java:97)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:158)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:53)
at org.codehaus.groovy.control.StaticImportVisitor.visitConstructorOrMethod(StaticImportVisitor.java:89)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:170)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1195)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:56)
at org.codehaus.groovy.control.StaticImportVisitor.visitClass(StaticImportVisitor.java:83)
at org.codehaus.groovy.control.CompilationUnit$2.call(CompilationUnit.java:740)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1201)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:665)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:643)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:620)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:214)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.resolve(GroovyCompilationUnitDeclaration.java:618)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:923)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:141)
at java.lang.Thread.run(Thread.java:745)
I have this error on almost all groovy classes on my work project since new year. Unfortunately I am unable to reproduce it on the separate simple test project. My work project is a Grails 3.x project, but I tried to use the same dependencies on the test project and I have no issue - everything working without any errors, so dependencies is not a problem. It looks like it is some strange coincidence. I tried to copy any class with internal error from my working project to a new one, but as soon as I do that it will start compiling without internal errors. Also tried to recreate project from the scratch - got internal errors on almost all groovy classes again. I will provide an error and stack trace for it. May be it will help. Please just take a look on this, may be it will give you some clue. I will try to continue to reproduce it on the separate test project, but so far - no luck. Feel free to ask me if you need more info.
I am using groovy-eclispe plugin of version: Groovy-Eclipse Feature 2.9.2.xx-201701232340-e46
No other changes was made to this project in term of dependencies, migration to new version or others and it was perfectly working in the past, until some groovy-eclipe update break it.
The error is:
Internal groovy compiler error.
Stack Trace: