1

I wrote a simple AST transform to add logging around annotated methods. It correctly adds logging around methods when I compile my program with groovyc on the command line. However, it doesn't have any effect when I compile my program in eclipse with the groovy eclipse plugin.

1 Answer 1

1

This should be working. What version of the plugin are you using? First, I'd recommend upgrading to the 2.1.1 release to see if that works.

Also, I'd recommend opening the Groovy Event Console (http://groovy.codehaus.org/Groovy-Eclipse+2.1.1+New+and+Noteworthy#Groovy-Eclipse2.1.1NewandNoteworthy-GroovyEventConsole) and seeing what event occur during compilation. AST transforms should be logged during compiles.

If nothing seems to help, can you attach the source code here? Better, can you zip up the Eclipse project and attach it to a bug report on http://jira.codehaus.org/GRECLIPSE?

EDIT

As described in the bug report, it appears that the AST transform was not properly created. http://jira.codehaus.org/browse/GRECLIPSE-939

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.