I cannot get this to work with the javac compiler and I am getting the same error.
Error: (9, 14) java: lombok package does not exist
I turned on the annotation processor, and also tried to rebuild the project, invalidate the cache / restart. Does not help.
However, I tried to partially work with the eclipse compiler. I say partly because, although the assembly is successful, the editor still complains about “Cannot resolve character”.
Idea - community publication 15.04 Lombok - 1.16.6 Lombok plugin ( https://github.com/mplushnikov/lombok-intellij-plugin ) - 0.9.8 JDK - 1.8.0_51
Update: Well, I finally got this job. Mine was a gradle project, and the lomb was set up as a normal "provided" configuration. Worked fine after adding this to build.gradle
idea { module { scopes.PROVIDED.plus += [configurations.provided] } }
So 3 steps
- Install the Lombok plugin from the menu File-> Settings-> Plugins
- Enable annotation handler (javac compiler works)
- Make sure you have build.gradle or pom.xml updated for the idea if you add lombok as a custom configuration.
robbin Mar 10 '16 at 4:20 2016-03-10 04:20
source share