Annotations not working in IntelliJ

2,614 views
Skip to first unread message

Syn

unread,
Jan 25, 2019, 9:07:26 PM1/25/19
to Project Lombok
I've installed the Lombok Plugin in IntelliJ and it is up to date, however the @Getter annotation is not recognized and the only import IntelliJ suggests is

jdk.nashorn.internal.objects.annotations.Getter

Then I tried manually importing lombok.Getter but it isn't being recognized.

I have Lombok options in the Refactor menu but neither Getter nor Setter appear to do anything. The rest are inserted into the code as they should be but are still not recognized by the IDE.

Syn

unread,
Jan 25, 2019, 11:09:21 PM1/25/19
to Project Lombok
I was able to get Lombok running by adding it to the project as a Maven dependency but the plugin still doesn't appear to work.

Reinier Zwitserloot

unread,
Jan 28, 2019, 4:10:03 PM1/28/19
to Project Lombok
You need to _BOTH_ install the plugin into intelliJ _AND_ have lombok as a (compile-time only if you want) dependency.

But that's all there is to it.


Perhaps you forgot to restart intellij?
Reply all
Reply to author
Forward
0 new messages