Lombok-intellij-plugin: Support IntelliJ 2020.3

Created on 23 Sep 2020  路  21Comments  路  Source: mplushnikov/lombok-intellij-plugin

IntelliJ 2020.3 EAP just released.

Plugin 'Lombok' (version '0.31-2020.2') is not compatible with the current version of the IDE, because it requires build 202.* or older but the current build is IU-203.3645.34

enhancement

Most helpful comment

Just release 0.32 build, included one for IntelliJ 2020.3 EAP

All 21 comments

Same problem, roll back to IntelliJ 2020.2.2 not working too :-1:

how to build plugin?

"Mateu MDD" is somewhat old fork of this plugin that seems to be working for now.

What is going on with this plugin, I used to run EAP's and the plugin would just work, but in the last 6-12 months worth of EAPs/Releases seems like the plugin is broken for a few days before it gets fixed.

Can the untilBuild field just be configured to not be populated? I tried this locally and installed in the EAP and everything seems to be fine.

I have also tried locally build and install without 'untilBuild' on EAP and it is working fine.

https://jetbrains.org/intellij/sdk/docs/tutorials/build_system/gradle_guide.html#patching-the-plugin-configuration-file

Changed only in build.gradle:

patchPluginXml {
  version artifactVersion

  pluginDescription(file(descriptionFile).text)
  changeNotes(file(changesFile).text)

  untilBuild(null)
}

Can the untilBuild field just be configured to not be populated? I tried this locally and installed in the EAP and everything seems to be fine.

This may work but if there is an issue like #829 then IntelliJ won't warn the user and after upgrade the plugin may not work properly.

Can the untilBuild field just be configured to not be populated? I tried this locally and installed in the EAP and everything seems to be fine.

This may work but if there is an issue like #829 then IntelliJ won't warn the user and after upgrade the plugin may not work properly.

That's very true, but personally, I'd rather risk a _chance_ that it may not work properly than a _guarantee_ that it won't work. Many people are dead in the water while we wait for an upgrade. I'll be building from sources as a workaround.

Right now the plugin just gets disabled and doesn't work at all.

I went ahead and opened a PR

Just release 0.32 build, included one for IntelliJ 2020.3 EAP

The new EAP from today also breaks Lombok.In the IDE everything looks fine but build fails.
Message is:
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: com.sun.proxy.$Proxy27
Lombok supports: sun/apple javac 1.6, ECJ

@amiram Please make an issue in lombok project here: https://github.com/rzwitserloot/lombok/issues
This can be fixed only in lombok self.

Did somebody log a bug? Is it being worked on?
I updated IntelliJ IDEA to version 2020.3 yesterday when prompted by IntelliJ, and it warned me that the Lombok plug-in was not compatible. I assumed there would be an updated plug-in available, but there is not. And I am not able to build my project.

Try uninstalling and reinstalling the plugin. Sometimes that helps fix this problem for me.

Did somebody log a bug? Is it being worked on?
I updated IntelliJ IDEA to version 2020.3 yesterday when prompted by IntelliJ, and it warned me that the Lombok plug-in was not compatible. I assumed there would be an updated plug-in available, but there is not. And I am not able to build my project.

Starting from 2020.3 Lombok plugin is bundled with IntelliJ IDEA so uninstall the plugin and update IDEA. Lombok will work out of the box.

Tested in macOs Big Sur.

@seenukarthi Is this only true for Ultimate or does it apply to the community edition as well? In my case when I updated to 2020.3 (community), it set the plug-in version to 0.32 (had been 0.33). When I did as you suggested and removed the plug-in entirely then my build broke (nothing with val or any of the annotations was recognized).

This is Windows and my project is Groovy/Java based on Gradle.

@seenukarthi Is this only true for Ultimate or does it apply to the community edition as well? In my case when I updated to 2020.3 (community), it set the plug-in version to 0.32 (had been 0.33). When I did as you suggested and removed the plug-in entirely then my build broke (nothing with val or any of the annotations was recognized).

This is Windows and my project is Groovy/Java based on Gradle.

Yes, you are correct. After fresh install of community version, I can see the plugin version is 0.32-EAP

image

In the plugin site It's 0.33-2020.2

image

I'm not sure this is a plugin issue or platform issue.

Using 2020.3 and the 0.32 plug-in I am getting:

java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
  Your processor is: com.sun.proxy.$Proxy32
  Lombok supports: sun/apple javac 1.6, ECJ

Above it says that this is a Lombok issue -- was one ever filed?

OK, that was with Lombok 1.18.4. If I updated to 1.18.16 I get:

java: Compilation failed: internal java compiler error

And essentially nothing builds.

Logged https://github.com/rzwitserloot/lombok/issues/2670 based on the assertion above that this must be fixed in the core Lombok.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leialexisjiang picture leialexisjiang  路  5Comments

huaouo picture huaouo  路  6Comments

timothymdavis picture timothymdavis  路  4Comments

pedegie picture pedegie  路  4Comments

gigaSproule picture gigaSproule  路  4Comments