I have tried using Lombok on Intellij IDEA 13 Ultimate.
However. I get the famous error "cannot find symbol" for all the methods that should have been available when I am using specific annotations for example the once I use as annotations are @Builder
, @AllArgsConstructor
and @Data
.
I have already set my compiler to enable annotation processing and I have looked deeply into it, but with no solution of how to solve it.
Any advice or tips would be nice.
In my case non of methods works. But I found solution for my case. I needed to add to my Gradle dependencies list of
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.22'
}
one more line
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
}
With such combination you even don't need enabling Annotation Processors from @Vegard answer.
Kind of old question here, but I came across the same problem today. I had to do two things to make it work:
Settings -> Compiler -> Annotation
Processors
Compiler -> Java Compiler
you of course also need the Lombok plugin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With