Intellij IDEA not showing new variables added by my own Groovy ASTTransformation

Answered

I wrote my own ASTTransformation and add a `public static` variable in classes annotated with an Annotation. This is a gradle project.

When I use gradle to build it from the command line, I am able to see the injected variable using `javap` command.

But, the Intellij IDEA code completion does not show the new variable....

why?

Another Point : Groovy's builtin @Log4j2 annotation is also like my annotation and it adds `log` variable to the annotated class. This `log` variable is visible in the IDEA code completion....

Am I missing any configuration some where in IDEA?

0
4 comments
Avatar
Yaroslav Bedrov

Hello,

Does it help to run "File | Invalidate Caches"?

0
Avatar
Permanently deleted user

No.


Invalidate and Restart done.

Index building over after restart...

Still, that injected method is not shown in the code completion....

 

Pls advice

0
Avatar
Yaroslav Bedrov

Please report issue on YouTrack attaching sample project example for investigation: http://youtrack.jetbrains.com/issues/IDEA.

0
Avatar
Permanently deleted user
0

Please sign in to leave a comment.