Questions tagged [intellij-lombok-plugin]

A plugin for using Lombok with IntelliJ IDEA.

The IntelliJ Lombok Plugin is a plugin for IDEA. It provides support for which is a project which aims to reduce boilerplate code.

Refernces:

153 questions
190
votes
3 answers

java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment

I am somewhat new to coding and am trying to use the Lombok plugin to automatically create Getters/Setters e.t.c. for my fields of a specific class. In doing so I get greeted with the following error: The error: java: java.lang.IllegalAccessError:…
Dainank
  • 2,142
  • 2
  • 7
  • 14
182
votes
21 answers

MapStruct + Lombok together not compiling: unknown property in result type

Tech Stack being used : Java 8 MapStruct : 1.2.0.Final Lombok: 1.16.18 IDE: IntelliJ - Lombok Plugin already installed Initially, I faced issues when I removed getters and setters and added @Getter and @Setter annotation, mapstruct is not able to…
Vivek Gupta
  • 2,534
  • 3
  • 15
  • 28
177
votes
20 answers

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…
Spartan
  • 3,213
  • 6
  • 26
  • 31
90
votes
4 answers

View lombok generated code in IntelliJ IDEA

I have the lombok plugin setup in IntelliJ and my code builds fine. I can see the lombok generated methods in the structure view. What I want is some way to actually see the source lombok generates for each of the methods. I realize I can delombok…
Mike Sweeney
  • 1,896
  • 2
  • 18
  • 20
71
votes
10 answers

IntelliJ IDEA cannot see Lombok generated code

I have a Gradle-based project that uses lombok. I have imported this project into IntelliJ IDEA 14.1 (using the Import External Model import method). I can run the JUnit4 unit tests without problem in Gradle, but IntelliJ seems to have a problem…
copolii
  • 14,208
  • 10
  • 51
  • 80
60
votes
10 answers

Adding Lombok plugin to IntelliJ project

I'm trying to add Lombok to my Spring Boot project in IntelliJ IDEA. So far, I've added the plugin under Settings - Plugins (version 0.13.16) added compile('org.projectlombok:lombok') to my Gradle dependencies enabled annotation processing It…
Anders Pedersen
  • 2,255
  • 4
  • 25
  • 49
59
votes
4 answers

Lombok plugin incompatible with 2018.1 Intellij Idea

Right now I have seen Intellij Idea update window with the notion: Plugin incompatible with new build found: Lombok Plugin Is there a way to solve the problem or I should wait till lombok plugin team resolved the compatibility issues?
Loom
  • 9,768
  • 22
  • 60
  • 112
58
votes
3 answers

Error: package javax.annotation does not exist after upgrade to lombok 1.16.2

My android project builds fine with lombok 1.16.0, but once I change my dependency to target 1.16.2, I get the following error everywhere I'm using a lombok annotation: Error:(20, 1) error: package javax.annotation does not exist The Android SDK…
copolii
  • 14,208
  • 10
  • 51
  • 80
56
votes
3 answers

Lombok causing "Actual and formal arguments lists differ in length error"

I have the following class: @Builder @NoArgsConstructor public class ConsultationPointOfContact { private String fullName; private String phoneNumber; private String userLogin; } When the @Builder annotation exists, it is causing…
Menelaos
  • 23,508
  • 18
  • 90
  • 155
47
votes
3 answers

Unable to use Lombok with Java 11

We upgraded the Java version from 8 to 11 but I got compile errors of getter/setter methods where I implemented the POJO classes with Lombok's Getter and Setter Annotations. Is there a way to use Lombok's @Data annotation which provides getter and…
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
46
votes
10 answers

Lombok incompatible with IntelliJ 2020.2

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…
fbnrbn
  • 381
  • 1
  • 4
  • 9
44
votes
11 answers

Lombok Requires Annotation Processing

I'm using Android Studio 2.2 Preview 7, and the Lombok plugin suddenly started saying: Annotation processing seems to be disabled for the project X, and providing a link to settings. Clicking on the notification does not take me to the right…
Janis Peisenieks
  • 4,938
  • 10
  • 55
  • 85
28
votes
6 answers

Application of @Sneaky Throws in lombok

I was playing with the Lombok library in Java and found an annotation called @SneakyThrows. As the documentation states: @SneakyThrows fakes out the compiler. In other words, Lombok doesn't wrap or replace the thrown checked exception, but makes…
23
votes
6 answers

How to get rid of duplicate class errors in Intellij for a Mavenized project using Lombok

I have a Maven managed Lombok project and I use Intellij. After building, I always get lots of errors in Intellij about duplicate classes because of the generated sources in target/generated-sources/delombok. Is there something I can do to git rid…
Selena
  • 2,208
  • 8
  • 29
  • 49
20
votes
3 answers

Cannot find Lombok plugin in Android Studio 2021.1.1 (build of 2022)

After installation of newest Android Studio I tried to install Lombok plugin (Android Studio Bumblebee 2021.1.1 | Built on January 19, 2022) But didn't find Lombok in Settings -> Plugins -> Marketplace I found that the problem is: Plugin…
1
2 3
10 11