I keep getting this error for some time, and it seriously slows down eclipse. There is no issue running the tests based on this class, in fact I have no compile errors at all. I have attached the logs from the groovy console:
eclipseError.txt
The code is open source, available in the testing module: https://github.com/cristal-ise/cristal-ise
I use freshly installed eclipse 2023-09 and the latest 5.1 plugin with groovy 3, but I saw similar problems with earlier release for some time.
null
org.eclipse.jdt.groovy.core
Error
Wed Oct 04 09:20:21 CEST 2023
Groovy compiler error
BUG! exception in phase 'semantic analysis' in source unit '/home/vagrant/workspace/cristal-ise/testing/src/main/groovy/org/cristalise/restapi/test/RestapiTestBase.groovy' commencingResolution failed: no declaration found for class org.cristalise.restapi.test.RestapiTestBase
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:997)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:707)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:669)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:239)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.generateCode(GroovyCompilationUnitDeclaration.java:336)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1342)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:808)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1245)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:294)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:286)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:199)
at org.eclipse.jdt.core.manipulation.SharedASTProviderCore.getAST(SharedASTProviderCore.java:138)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:166)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$1.run(SelectionListenerWithASTManager.java:151)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.codehaus.jdt.groovy.internal.compiler.ast.GroovyEclipseBug: commencingResolution failed: no declaration found for class org.cristalise.restapi.test.RestapiTestBase
at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.commencingResolution(JDTResolver.java:227)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1558)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:271)
at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.startResolving(JDTResolver.java:197)
at org.codehaus.groovy.control.CompilationUnit.lambda$3(CompilationUnit.java:220)
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:993)
... 16 more
I keep getting this error for some time, and it seriously slows down eclipse. There is no issue running the tests based on this class, in fact I have no compile errors at all. I have attached the logs from the groovy console:
eclipseError.txt
The code is open source, available in the testing module: https://github.com/cristal-ise/cristal-ise
I use freshly installed eclipse 2023-09 and the latest 5.1 plugin with groovy 3, but I saw similar problems with earlier release for some time.