Groovy bug when compiling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Groovy bug when compiling

Marcel Wagner
I always had a lot entries in my eclipse error log of the following kind:

Message: Groovy bug when compiling
Exception:
BUG! exception in phase 'semantic analysis' in source unit 'C:\projects\wug\server_runtime\efc_server\src\groovy\de\effectivecompany\app\qltcl\repimpl\ClQltVnrChrKeyRepositoryImpl.groovy' Queuing new source whilst already iterating.  Queued source is 'C:\projects\wug\server_runtime\efc_server\src\groovy\de\effectivecompany\util\RepositoryTools.groovy'
    at org.codehaus.groovy.control.CompilationUnit.addSource(CompilationUnit.java:410)
    at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:431)
    at org.codehaus.jdt.groovy.integration.internal.MultiplexingParser.dietParse(MultiplexingParser.java:44)
    at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:335)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:140)
    at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:183)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2415)
    at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitScope.lookupClassNodeForSource(GroovyCompilationUnitScope.java:177)
    at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolveFromCompileUnit(JDTResolver.java:167)
    at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:309)
    at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolve(JDTResolver.java:292)
    at org.codehaus.groovy.control.ResolveVisitor.resolveFromModule(ResolveVisitor.java:721)
    at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolveFromModule(JDTResolver.java:141)
    at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:308)
    at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolve(JDTResolver.java:292)
    at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:264)
    at org.codehaus.groovy.control.ResolveVisitor.transformVariableExpression(ResolveVisitor.java:1046)
    at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:823)
    at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1175)
    at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:831)
    at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:139)
    at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)
    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:179)
    at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1456)
    at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
    at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:79)
    at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:41)
    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:179)
    at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1456)
    at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
    at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:80)
    at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:41)
    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:179)
    at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1456)
    at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:102)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:113)
    at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:50)
    at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:190)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:124)
    at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1175)
    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:51)
    at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1391)
    at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:165)
    at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.startResolving(JDTResolver.java:626)
    at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:660)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:921)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:589)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:538)
    at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:168)
    at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.analyseCode(GroovyCompilationUnitDeclaration.java:2002)
    at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:822)
    at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
    at java.lang.Thread.run(Unknown Source)

I have them ignored, because after some clean and  build, it was all fine. Now I changed something in the project and now I can't get the project to compile anymore ;-(  (a new java class layer extending the groovy class layer)
Perhaps you see something in the stacktrace.
I try to isolate the problem but at the moment without any success. I will continue to try to reproduce the problem with some demo files, but it seems not so easy, isolate the named files from the stackstrace, all went well.

Regards,
Marcel Wagner
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Reply | Threaded
Open this post in threaded view
|

Re: Groovy bug when compiling

Andy Clement
Hi Marcel,

This is a long standing issue that we have in groovy-eclipse.  No-one
has been able to create a minimal testcase so far, and no-one has been
able to share their failing source with me so far. Are you perhaps
able to share your project with me and steps to recreate?

Andy

On 2 June 2011 13:46, Marcel Wagner <[hidden email]> wrote:

> I always had a lot entries in my eclipse error log of the following kind:
>
> Message: Groovy bug when compiling Exception: BUG! exception in phase
> 'semantic analysis' in source unit
> 'C:\projects\wug\server_runtime\efc_server\src\groovy\de\effectivecompany\app\qltcl\repimpl\ClQltVnrChrKeyRepositoryImpl.groovy'
> Queuing new source whilst already iterating.  Queued source is
> 'C:\projects\wug\server_runtime\efc_server\src\groovy\de\effectivecompany\util\RepositoryTools.groovy'
>     at
> org.codehaus.groovy.control.CompilationUnit.addSource(CompilationUnit.java:410)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:431)
>     at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingParser.dietParse(MultiplexingParser.java:44)
>     at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:335)
>     at
> org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:140)
>     at
> org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:183)
>     at
> org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2415)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitScope.lookupClassNodeForSource(GroovyCompilationUnitScope.java:177)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolveFromCompileUnit(JDTResolver.java:167)
>     at
> org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:309)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolve(JDTResolver.java:292)
>     at
> org.codehaus.groovy.control.ResolveVisitor.resolveFromModule(ResolveVisitor.java:721)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolveFromModule(JDTResolver.java:141)
>     at
> org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:308)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.resolve(JDTResolver.java:292)
>     at
> org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:264)
>     at
> org.codehaus.groovy.control.ResolveVisitor.transformVariableExpression(ResolveVisitor.java:1046)
>     at
> org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:823)
>     at
> org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1175)
>     at
> org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:831)
>     at
> org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:139)
>     at
> org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)
>     at
> org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:179)
>     at
> org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1456)
>     at
> org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
>     at
> org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:79)
>     at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:41)
>     at
> org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:179)
>     at
> org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1456)
>     at
> org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
>     at
> org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:80)
>     at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:41)
>     at
> org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:179)
>     at
> org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1456)
>     at
> org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:102)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:113)
>     at
> org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:50)
>     at
> org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:190)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:124)
>     at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1175)
>     at
> org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:51)
>     at
> org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1391)
>     at
> org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:165)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.startResolving(JDTResolver.java:626)
>     at
> org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:660)
>     at
> org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:921)
>     at
> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:589)
>     at
> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:538)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:168)
>     at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.analyseCode(GroovyCompilationUnitDeclaration.java:2002)
>     at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:822)
>     at
> org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
>     at java.lang.Thread.run(Unknown Source)
> I have them ignored, because after some clean and  build, it was all fine.
> Now I changed something in the project and now I can't get the project to
> compile anymore ;-(  (a new java class layer extending the groovy class
> layer)
> Perhaps you see something in the stacktrace.
> I try to isolate the problem but at the moment without any success. I will
> continue to try to reproduce the problem with some demo files, but it seems
> not so easy, isolate the named files from the stackstrace, all went well.
>
> Regards,
> Marcel Wagner
> --------------------------------------------------------------------- To
> unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email