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
3
votes
1 answer

Project Lombok AllArgsConstructor not working

It seems like many people are having this problem, but none of the problems i have researched so far are that basic like my problem. I only got this object: and a basic call in my main method: Bamm... already not working. The compilataion fails…
MajesticOl
  • 311
  • 1
  • 20
3
votes
3 answers

Windows 10 Java - package lombok does not exist

IntelliJ Community 2020.1, Windows 10. I added Lombok plugin, I added the dependency to my maven pom.xml, and I enabled annotation processing. IntelliJ editor shows auto complete for lombok annotated methods, and shows 0 errors. But it won't compile…
D P
  • 41
  • 1
  • 3
3
votes
1 answer

IntelliJ won't find generated code from Lombok while gradle does

I have IntelliJ Ultimate 2019.2 installed with the latest Lombok plugin (0.25). Furthermore, Lombok is enabled for my project (Preferences --> Other Settings --> Lombok Plugin) and the plugin installed. Annotation Processing is also enabled. My…
Florian Hansen
  • 746
  • 7
  • 19
3
votes
4 answers

Auto remove getter-setters with lombok?

I have a project. I don't use Lombok. I use manually created getters and setters. Now, I want to import Lombok. After I import, I will use for all entities. Do I have to manually add @Data to all entities? And I have to remove all entities manually?…
3
votes
3 answers

Add Lombok plugin to IntelliJ

Intellij doesn't recognize Spring annotations and I think its connected to Lombok. I added the plugin in IntelliJ settings and enabled annotation processing I am using maven and I have this dependency dependency> …
Georgi Michev
  • 764
  • 5
  • 18
  • 37
3
votes
2 answers

Lombok builder override default constructor

I was setting the value of recordId from the child classes using the default constructor and was not using lombok @Builder initially. Eventually i decided to use the Builder here, but the problem now is lombok Builder overrides my default…
Rahul Babu
  • 730
  • 1
  • 5
  • 25
3
votes
1 answer

lombok 1.18.2 throws transformClassesWithDexBuilderForDebug

Recently started using IntelliJ IDE. I'm trying to open an Android project in IntelliJ which was build in Android studio IDE . But it resulted in number of issues. One of them which is not resolving is transformClassesWithDexBuilderForDebug. I've…
Prabs
  • 4,923
  • 6
  • 38
  • 59
3
votes
2 answers

Lombok @RequiredArgsConstructor(onConstructor_ = {@MyAnnotation}) compilation error with IntelliJ IDEA

I have following set up on my mac: IntelliJ IDEA Ultimate: 2018.1 Lombok Plugin Version: 0.18-2018.1 Java: 1.8.0_111 Also, I've enabled Annotation Processors as it was suggested here But I still have following compilation error: Cannot resolve…
fashuser
  • 2,152
  • 3
  • 29
  • 51
3
votes
0 answers

Configure IntelliJ IDEA to give warnings when @NotNull / @Nullable contract violated in Lombok generated constructors

How can I configure IntelliJ IDEA to give me warnings when the @NotNull / @Nullable contract is violated in Lombok's generated constructors? I enabled the Settings* > Editor > Inspections > Java > Probable bugs > @NotNull/@Nullable problems…
Eric
  • 16,397
  • 8
  • 68
  • 76
3
votes
2 answers

Lombok intellij idea duplicate getter/setter methods and constructor generated

I have a spring-boot project in intellij idea 2017.1 with lombok plugin installed and annotation processor enabled. When I build the project using Build > Rebuild Project I got Compilation completed successfully. But In the Editor it stills show…
Master Mind
  • 3,014
  • 4
  • 32
  • 63
2
votes
1 answer

Lombok @Data(staticConstructor="of") can generated code and build successfully and run my application, but Intellij reports syntax error on the method

Lombok @Data(staticConstructor="of") can generated code and build successfully and run my application, but Intellij reports syntax error on the method It seems the index is not working fine. BTW, sharing the Intellij version here: IntelliJ IDEA…
leon
  • 550
  • 6
  • 14
2
votes
1 answer

Using Lombok in IntelliJ shows create constructor message

I have added Lombok annotation(@NoArgsConstructor and @AllArgsConstructor) for my following object: package com.example.demo.student; import lombok.*; @ToString @Getter @Setter @EqualsAndHashCode @NoArgsConstructor @AllArgsConstructor public class…
2
votes
1 answer

Why isn't there a lombok plugin update for newer than 2021 Intellij?

I've seen that there is no update for a compatible Lombok Intellij plugin for an Intellij newer than 2021. I wonder if the reason for this was some update of Intellij to include this natively or any else reason such as no more maintenance? I…
user7551211
  • 649
  • 1
  • 6
  • 25
2
votes
3 answers

How to use Lombok plugin in IntelliJ 2021.2.2?

I am new to Java from c++ and I have been trying to familiarise myself with the language. I am trying to use the lombok plugin from IntelliJ IDEA but it does not seem to work for me at all: This is a screenshot of my IDEA failing to recognise the…
Derrick
  • 23
  • 1
  • 4
2
votes
0 answers

Intellij uses wrong line numbers for de-lombok source

I followed the instructions in Create and install de-lomboked source jar in maven for delomboking my source code and including it in the jar. So now, in another project, I can access the delomboked source. The problem is that IntelliJ uses this…