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
7
votes
2 answers

Ambiguous method call using Project Lombok

I have the following code: import lombok.Builder; import lombok.Getter; @Getter @Builder public class NameParserResponse { private boolean match; } public class Main { public static void main(String[] args) { NameParserResponse…
Adrian Elder
  • 1,993
  • 3
  • 19
  • 38
7
votes
4 answers

Lombok not working with "Android room". Gives "error: Cannot find getter for field"

I'm using Lombok in android studio 3.0 preview with gradle 3.0.0-alpha1. I have following two annotation processor in my dependency: annotationProcessor "android.arch.persistence.room:compiler:1.0.0-alpha1" annotationProcessor…
Manish Kumar
  • 1,095
  • 9
  • 19
6
votes
1 answer

Gradle multi-project does not generate Lombok's goodness

I have a multi-project in Gradle. The build.gradle script looks like: buildscript { repositories { jcenter() mavenCentral() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath…
x80486
  • 6,627
  • 5
  • 52
  • 111
6
votes
2 answers

IntelliJ Lombok - src/integration-test classes don't see generated lombok code

I am using IntelliJ IDEA 2016.3 + lombok plugin with the following structure: Edit: this is the Module Content Root configuration: Everything works as expected in src/main/java and src/test/java, but classes in src/integration-test and…
Sébastien Tromp
  • 603
  • 1
  • 15
  • 30
5
votes
2 answers

Application build failed cause of Lombok

I've faced problem when building my project that uses Lombok after swapping to different git branch. I get multiple exceptions generally of these two types: for classes like @Setter(onMethod_ = @Autowired) public class ClassA{ private ClassC…
Andrei Yusupau
  • 587
  • 1
  • 11
  • 30
5
votes
8 answers

java: log cannot be resolved

i meet a problem I use IntelliJ IDEA 2017.3.1 Build #IU-173.3942.27, built on December 11, 2017 JRE: 1.8.0_111-b14 amd64 JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation Windows 7 6.1 Error:(16, 10) java: log cannot be…
WKQ
  • 131
  • 2
  • 2
  • 9
5
votes
2 answers

Lombok not working Android Studio 3.0

I want to use Lombok in one of my projects in android studio 3.0 and I have problems with it. Annotations work fine and they don't have any errors. Here are my Gradle dependencies which I added Lombok in it. compileOnly…
4
votes
0 answers

IntelliJ IDEA doesn't recognize lombok's Fields

IntelliJ recognize lombok annotations including @FieldNameConstants and I can import the generated fields via: import static com.somepackage.SomeClass.Fields.field (even autocomplete works after typing 'SomeClass' or 'Fields'). However when I want…
beatrice
  • 3,684
  • 5
  • 22
  • 49
4
votes
1 answer

Activating Lombok annotation processor with Gradle

I like using Lombok, but it requires enabling annotation processor in IDEs settings. Because developers use different IDEs and CI/CD has it's own compilation flow, plus I would really like to avoid explaining junior devs why do they need to check…
spam
  • 1,853
  • 2
  • 13
  • 33
4
votes
1 answer

Android Studio 3.3.2 annotation processor

I just upgrade my Android Studio to 3.3.2 and installed the Lombok plugin. I need to re-activate my annotation processor, but the option doesn't appear to be there anymore. So where is it?
html_programmer
  • 18,126
  • 18
  • 85
  • 158
4
votes
1 answer

NoSuchMethodError - Intellij and lombok

I am getting a weird issue in IntelliJ. I am using Lombok (1.18.2), IntelliJ(2018.2.2) and JUnit 5 in gradle 4 multi-module project. It took me hours to replicate this. Run all test case with coverage. Following a pop up will come if I press…
4
votes
1 answer

Lombok not working with Intellij

I am not able to use any of the lombok annotations in Intellij, it works fine in Eclipse. So far, I have done the following things: Added lombok dependency in eclipse Installed the lombok plugin Enabled annotation processing However, I cannot use…
John Rambo
  • 906
  • 1
  • 17
  • 37
4
votes
1 answer

How can I debug lombok val?

I've been using Lombok extensively for my projects. I love it and wish it were supported officially so that the maintainers did not have to use internal APIs to continue developing, but that is a topic for another time. Every so often, I'll run into…
filpa
  • 3,651
  • 8
  • 52
  • 91
4
votes
3 answers

How to refresh Lombok annotation processing in IntelliJ?

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.
Dims
  • 47,675
  • 117
  • 331
  • 600
3
votes
0 answers

Lombok not compatible with IntelliJ 2021.1.2

Was about to update my intelliJ, and it states lombok is not compatible. Anyone else have any issues with updating?
user1555190
  • 2,803
  • 8
  • 47
  • 80
1 2
3
10 11