Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled

After upgrade, Unable to run the application from intellij IDE.

Intellij version : IntelliJ IDEA 2020.3 (Community Edition) Build #IC-203.5981.155, built on December 1, 2020

lombok version : 0.32-EAP

Error :

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.$Proxy24
  Lombok supports: sun/apple javac 1.6, ECJ
like image 550
Spartan Avatar asked Dec 03 '20 15:12

Spartan


People also ask

Is Lombok a plugin?

Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.


3 Answers

Using lombok 1.18.16 did not work for me. I added the argument below in the build process VM options in

-Djps.track.ap.dependencies=false

Setting:-

Build, Execution, Deployment -> Compiler -> Shared build process VM options

and it worked https://github.com/rzwitserloot/lombok/issues/2592

like image 69
Ashish Avatar answered Oct 07 '22 18:10

Ashish


This issue is introduced in IntelliJ IDEA 2020.3 (Community Edition) Build #IC-203.5981.155.

You can fix it by adding this dependency into your project -

Maven -


<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.16</version>
    <scope>provided</scope>
</dependency>

Gradle -

providedCompile group: 'org.projectlombok', name: 'lombok', version: '1.18.16'
like image 73
Amit Dusane Avatar answered Oct 07 '22 18:10

Amit Dusane


For the impatient one (like myself) add

-Djps.track.ap.dependencies=false

to 'Shared build process VM options:'

enter image description here

like image 52
Pankaj Avatar answered Oct 07 '22 20:10

Pankaj