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
20
votes
3 answers

Lombok's @Builder not detecting fields of the Java Record

I am trying to implement the builder pattern using Lombok's @Builder but it does not detect any of the record fields: @Builder(builderMethodName = "internalBuilder") public record ApiError(String title, Map errors) { public…
Ismayil Karimli
  • 385
  • 1
  • 4
  • 8
20
votes
8 answers

Package lombok does not exist

I am using IntelliJ IDEA 2018.2.5 (Community Edition). Here are the complete details. Build #IC-182.4892.20, built on October 16, 2018 JRE: 1.8.0_152-release-1248-b19 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 I have…
Avhi
  • 806
  • 2
  • 15
  • 29
18
votes
3 answers

Lombok @SuperBuilder workaround on IntelliJ

I've a class Product: @Data @SuperBuilder public class Product { private String name; private String manufacturer; } and an extended class @Data @SuperBuilder public class Frame extends Product{ private String…
drenda
  • 5,846
  • 11
  • 68
  • 141
18
votes
3 answers

Find usages of lombok generated constructor in Intellij

I have a class with lombok annotation (either @Value or @Data) and I am looking for an easy way to find usages of the auto generated constructor. What I can do now is to find a one use of the constructor, put the cursor there and run 'Find usages'…
František Hartman
  • 14,436
  • 2
  • 40
  • 60
11
votes
2 answers

Java Lombok "@Getter" is not applicable to field

I've been trying to get Lombok working in IntelliJ IDEA but whenever I try to use any of its annotations, I get an error message that goes like this: Error:(5, 5) java: annotation type not applicable to this kind of declaration My code looks like…
Metamist
  • 333
  • 1
  • 4
  • 14
10
votes
1 answer

How to build call hierarchy for lombok generated method in intellij-idea

Given an example: @Data public VO { private String item; } How to build call hierarchy for the getItem()? I know there is a cumbersome path :open Structure, then find the method, then build hierarchy. Is there more efficient path or plugin?
blankboy2011
  • 349
  • 1
  • 10
9
votes
3 answers

Intellij + Ajc + Lombok/Mapstruct

I want to enable AspectJ compiler in my IntelliJ Idea as I have several aspects that I'd like to be woven during compile time. At the same time, I am using Lombok and Mapstruct in my codebase. Those 2 require additional annotations processing, that…
Ihor M.
  • 2,728
  • 3
  • 44
  • 70
9
votes
1 answer

Does lombok works with Java 12?

I was recently working with Java 11 and Lombok on Intellij and it was all fine. I tried Java 12 but now I'm always getting compilation errors, because lombok 's annotations seem to be ignored. Does anyone know if lombok supports java 12 ? - Intellij…
8
votes
1 answer

Java Records and Lombok annotation - IntelliJ

Just trying a hands-on the java.lang.Record. I have gone through the documentation and the JEP-359 for some understanding. So upon reading about the implicit declaration of the constructor I thought of mixing it up with an existing code generation…
Naman
  • 27,789
  • 26
  • 218
  • 353
8
votes
1 answer

Find usages of lombok generated getter/setter in Intellij

I have a field with lombok annotation (@Setter) and I am looking for an easy way to find usages of the auto generated setter. When I put the cursor on the @Setter annotation and run Find usages (Alt+F7) I obviously get all the places where @Setter…
luke
  • 3,435
  • 33
  • 41
8
votes
3 answers

Why IntelliJ needs Lombok plugin?

As far as I understand, Lombok uses Java's Annotation Processors to generate additional methods. With Maven 3.5 it works perfectly without adding any additional configuration, just add dependecy to Lombok and put some annotations like @Getter,…
8
votes
1 answer

Intellij does not recognize lombok.config when building

I opened the restbucks project with Intellij. I have lombok plugin installed, annotation processing enabled. I am using javac compiler in Intellij settings. I have lombok.config in project root like in git repository, I also tried copying it to…
aycanadal
  • 1,106
  • 2
  • 15
  • 42
8
votes
3 answers

java.lang.String cannot be converted to org.slf4j.Marker

I'm using import lombok.extern.slf4j.Slf4j; for my class, and here's my log statement:log.info("{} : {} - {}", String1, String2, String3); But it fails to compile and complaining the above line:java.lang.String cannot be converted to…
Fisher Coder
  • 3,278
  • 12
  • 49
  • 84
7
votes
1 answer

Why i have to add exclusion in spring-boot-maven-plugin while using LOMBOK?

I am trying to use Lombok in my project. My question is that I have to add Lombok dependency in POM.xml as below org.projectlombok lombok
7
votes
4 answers

[ERROR]: cannot find symbol variable log when building with maven and lombok

I am trying to build a Java 11 project with maven and lombok's @Slf4j Logger, but maven does not recognize the log variables. IntelliJ does though and is able to build the project. The error is [ERROR]: cannot find symbol variable log Project and…
kaiffeetasse
  • 481
  • 1
  • 8
  • 18
1
2
3
10 11