After the last update to IntelliJ 2020.2 i get the Error:
Plugin "Lombok" is incompatible (until build 201.SNAPSHOT < IC-202.6397.94).
I've searched for the problem, but it seems that i'm the only one who has the problem with this IntelliJ version.
The solution for me was:
Uninstall Lombok Plugin
Invalidate Caches & Restart
Install Lombok plugin 0.30 EAP
Invalidate Caches & Restart
Additional issues mentioned here.
I made an update this morning. Everything works. Intellj indicates that it is not compatible, but treats it correctly when updating. The validation of Intellj is incorrect because Lombok delivers the compatibility in the same version.
See: https://plugins.jetbrains.com/plugin/6317-lombok
A new version of lombok was released here:
Lombok
Just download the .jar file and install the plugin from disk.
It seems that IntelliJ is not installing automatically new version of lombok plugin.
Let's uninstall -> restart IDE -> Install Lombok plugin. (now you will have new version installed)
I had the same problem for 3 plugins, I solved by:
File -> Invalidated caches / restart
The plugin is incompatible with the new version of IntelliJ.
Before validating update to version 2020.2 IntelliJ displays a message of incompatibles plugins and Lombok is one of them:
You have the option to go back to IntelliJ version 2020.1 and wait for an update of Lombok
Just take the last Intellij 2020.2 RC build (which fix this bug) on : https://confluence.jetbrains.com/display/IDEADEV/IDEA+2020.2+latest+builds
And be careful to also install last lombok intellij plugin (0.30.1).
This issue is detailed on https://github.com/mplushnikov/lombok-intellij-plugin/issues/649 and is not entirelly the fault of the plugin (that's why intellij RC must be also installed)
Obviously this solution should be preferred while waiting for a final Intellij 2020.2.1 version.
More detailled information on https://youtrack.jetbrains.com/issue/IDEA-248146 (minimum build version for fix is IntelliJ IDEA 2020.2.1 RC Build #IC-202.6948.36, built on August 18, 2020)
A new version of the Lombok plugin is bundled with newer versions of IntelliJ. If you have an older version of the plugin already installed and you upgrade IntelliJ, IntelliJ may get stuck in a state that requires manually uninstalling the older plugin.
It appears this is because the older Lombok plugin is incompatible with the newer version of IntelliJ, and the newer plugin is bundled, so it can neither be uninstalled nor upgraded. However, they are not properly treated as two separate plugins, resulting in a plugin incompatible with the installed version of IntelliJ, can't be upgraded, and can't be uninstalled.
To get rid of this conflict:
stop IntelliJ
delete the plugin directory from the file system; If you have Jetbrains Toolbox, go to IntelliJ IDEA settings, and copy the install location. Remove the Lombok plugin directory rm -rf lombok-plugin
start IntelliJ
feel free to enable the Lombok plugin, and this would be the bundled one now.
Installed latest version(2020.3) of intellij and issue resolved for me.
I basically had to reinstall it twice. This is what I did to resolve the issue:
Uninstall the plugin
Invalidate caches and restart
Install the plugin (issue remained)
Uninstalled the plugin a second time
Restart (no invalidate cache this time)
Install plugin again (issue resolved)
I think someone else mentioned that the plugin does not get installed correctly the first time.
I am using Intellij 2019.1. I have a lombok dependancy in my application. I have enabled annotation processing in IntelliJ Preferences. I still get a compilation error for all the Lombok Annotations. Can one of you help me in resolving this error?
i have some restriction to download the plugins for intellij.
In this case how can i compile my app using lombok.
i have tried to paas lombok jar through VM options in run configuration but no luck. any suggestion will be appreaciated.
You can still use Lombok in your code, provided you instructed your build tool to have a build-time dependency.
Without the Plugin, that will result in a lot of red wavy underlines in IntelliJ. But the code would still compile and run.
Disclosure: I am a Lombok developer.
Suppose part of annotations are not processed. Below you see setMinLatitude() setter is not discovered:
Simultaneously all getters are seen:
Building of project works fine, only IntelliJ hits are not up-to-date.
For me "Build -> Rebuild project" fix this kind of issues.
Go to build > Rebuild Project that will fix your problem
by the way you can use the annotation #Getter and #Setter on the
class filed and it will generate for all the members in the class
I've had this problem when I've updated IDEA to a newer version, but the Lombok plugin wasn't automatically updated, and the existing version of the plugin was incompatible with the new version of IDEA. I didn't notice anything obvious to suggest that the plugin was the issue with annotation processing failures. Pulling up the "Plugins" settings (IntelliJ IDEA -> Preferences... -> Plugins on macOS) made it obvious that the plugin was no longer supported and needed to be updated. Updating the plugin and restarting immediately fixed the issue.
This probably doesn't apply in your case where some of the Lombok annotations are being processed, but will hopefully be helpful for others who have this issue.
Hi I'm using Project Lombok (version 0.11.2) in a project. I have both Intellij, and Eclipse (STS) installed, with lombok integrated with both IDEs (STS, via the lombok JAR, IntelliJ via the plugin [version 0.4, released 22/01/12]).
When I try to use the 'val' data type in IntelliJ, it fails to recognise the resulting types, however the same code works in STS.
Is this an issue with the IntelliJ plugin, or does the plugin just not support this feature?
val types were added in lombok 0.10.0, so are not a new feature.
At this time, according to the documentation of the Lombok IntelliJ Plugin, this is not yet supported.
Disclosure: I am one of the core Lombok developers.