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
1
vote
2 answers

Can't find error(), debug(), info() methods in 'log' object which is created via Lombok's '@Slf4j' annotation

Can anybody help me with @Slf4j annotation in Lombok? I prefer to log something in my SpringBoot app. For this I want to use @Slf4j annotation from Lombok. I installed Lombok plugin in my IntelliJ IDEA, turn on 'Annotation processing', add @Slf4j…
1
vote
1 answer

Can I remove the Child class' constructor when using Lombok's @SuperBuild annotation

I'm new to using Lombok annotations. My goal is to minimize any code boilerplate through the use of Lombok annotations I have the ff. Child class which I annotated with Lombok's @SuperBuilder @Service @SuperBuilder public class Child extends Parent{…
heisenberg
  • 1,784
  • 4
  • 33
  • 62
1
vote
1 answer

Sub class of Parent class using @RequiredArgsConstructor Lombok is not finding default constructor in Parent class

I'm working on a Spring project with Lombok plugin. I added @RequiredArgsConstructor annotation and made the parent class's fields final to initialize it using either @AllArgsConstructor or @RequiredArgsConstructor instead of field injection (using…
heisenberg
  • 1,784
  • 4
  • 33
  • 62
1
vote
1 answer

Can not find symbol variable log

IDEA2020.3Community java1.8 java: cannot find symbol symbol: variable log Enable annotation processing---check lombok plugin(newest 0.32-EAP)---check maven/gradle dependencies(providedCompile group: 'org.projectlombok', name: 'lombok',…
1
vote
1 answer

Lombok @Getter(lazy=true) does not appear to work

Using Intellij and the lombok plugin version 203.5981.41, when I delombok to see what code is generated I do not get the AtomicReference the lombok GetterLazy docs suggest: @Getter(lazy=true) private final double[] cached = expensive(); …
theINtoy
  • 3,388
  • 2
  • 37
  • 60
1
vote
1 answer

Lombok's `@Builder` annotation stubbornly stays package - private

I have the following @Builder - annotated class: @Data @Builder(access = AccessLevel.PUBLIC) @Entity public class LiteProduct { // Minimal information required by our application. @Id private Long id; // Unique private String…
Jason
  • 2,495
  • 4
  • 26
  • 37
1
vote
1 answer

Exception in plugin Lombok in IntelliJ Idea 2020.2

We have updated our Intellij to the latest build IntelliJ IDEA 2020.2 (Ultimate Edition) Build #IU-202.6397.94, built on July 27, 2020. we are getting the following error: com.intellij.diagnostic.PluginException: Class constructor must not have…
implosivesilence
  • 536
  • 10
  • 24
1
vote
1 answer

Lombok @SuperBuilder is not initializing my class objects

I have a parent class and a child class and I am using @SuperBuilder to build the child object, but seemingly it is not initializing at all. My parent class looks like this: @Getter @Setter @Component @RequiredArgsConstructor(onConstructor =…
CodeTalker
  • 1,683
  • 2
  • 21
  • 31
1
vote
0 answers

Lombok error has occurred when junit running

It works in spring boot or normal projects but it didn't work when junit running I saw many many solutions about lombok but, didn't work for example install lombok plugin in intellij Build, Execution, Deployment -> Compiler -> Annotation…
Joonseo Lee
  • 458
  • 2
  • 6
  • 12
1
vote
0 answers

Lombok constructors and inheritance with final fields

I'm completely confused how Lombok is supposed to be used in the following scenario: Base class: @Data public abstract class BaseClass { protected final String foo; protected final String bar; } Subclass: @Data public class SubClass…
Boon
  • 1,073
  • 1
  • 16
  • 42
1
vote
1 answer

Spring boot 2 lombok:jar:2.6.7 is missing, no dependency information available

This is my pom.xml it is generated from start.spring.io for M2 spring-boot version. This is why the maven spring repositories are added. But the dependency cant be found .
mCs
  • 2,591
  • 6
  • 39
  • 66
1
vote
0 answers

How to fix compiler error after creating a class with Lombok

I did the followings steps: Add Lombok Dependency to the pom.xml Add Lombok Plugin to the Intellij Enable Annotation Processing in Intellij I am able to see getter, setter and constructors in the Intellij in the structure tab. There isn't any…
1
vote
2 answers

Why I see lombok imports in decompiled class

When I open and decompile a class from spring-data-mongo@2.1.3 in IntelliJ, I see import lombok.NonNull, but I do not see any lombok transient dependency in my project. Now, this makes sense because lombok is set as optional dependency in…
1
vote
1 answer

Lombok and Spock: @RequiredArgsConstructor doesn't hide default no-args constructor for a field with a type of interface

It seems that @RequiredArgsConstructor is not working in the code below - but only in a test using Spock framework, and only for a field which is of type of interface Dao. Strictly speaking - the code is working while it shouldn't work in my…
krokodilko
  • 35,300
  • 7
  • 55
  • 79
1
vote
2 answers

Ambiguous method call using Project Lombok with IntelliJ

I am facing the same issue with this question: Ambiguous method call using Project Lombok However, I do not have Hrisey installed. Show far I have tried the following: Installed Lombok plugin on IntelliJ IDEA Enabled Lombok plugin for this…
Stelium
  • 1,207
  • 1
  • 12
  • 23