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

Intellij fails to detect the logger added by @Slf4j using Lombok

I am writing a simple app: @Slf4j public class MyApp { public static void main(String[] argv) { log.info("hello world!"); } } This code compiles just fine, and indeed, when run I see "hello world!" being logged out. Intellij however…
user6467981
1
vote
1 answer

IntelliJ Idea lombok doesn't appear in intellisense

My problem is that I have lombok used in my project and intellisense doesn't recoginze it's packages and annotations. What I have done: dependency added to maven pom.xml (jar appears in "External Libraries") lombok plugin installed via "Settings ->…
Kamil Przybyo
  • 115
  • 1
  • 8
1
vote
0 answers

lombok.config property is not stopping compiler/IDE warning

I am storing some properties in lombok.config, which, I though, is a great way to reduce unnecessary stacks of lombok annotations on my classes. One of these properties is the following; lombok.equalsAndHashCode.callSuper = CALL I though this would…
buræquete
  • 14,226
  • 4
  • 44
  • 89
1
vote
1 answer

Lombok: Apply "var" for all local variable declarations automatically

Lombok has a neat feature to use var instead of local variable datatype declarations. Is there a way to "refactor" your entire code base automatically to use var whenever applicable? I'm using IntelliJ IDEA and the Lombok plugin. I didn't find a…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
vote
1 answer

Lombok IntelliJ IDEA Plugin: Use of var is disabled by default

I'm using the Lombok Plugin for IntelliJ IDEA. When try to run Java code using the var keyword, I get the following error: Use of var is disabled by default. Please add 'lombok.var.flagUsage = ALLOW' to 'lombok.config' if you want to enable is. How…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
vote
1 answer

Lombok Annotations not Working in Android

I recently added Lombok to my Android project, and I'm getting the following error when using the @RequiredArgsConstructor and @AllArgsConstructor annotations: error: cannot find symbol @AllArgsConstructor ^ symbol: class ConstructorProperties …
Thomas
  • 1,123
  • 3
  • 13
  • 36
1
vote
0 answers

Intellij IDEA lombok cannot find symbol symbol

I have already installed the lombok plugin,and enable the annotation processing .why still have the problem:"java:cannot find symbol"
Alex x
  • 13
  • 3
1
vote
1 answer

Lombok val and var not working on Android

I'm integrating Project Lombok in our Android app. I'm running into issues with using val and var. I'm getting Incompatible Types error for a field of type var or val, when I assign a value (of any type) to it. private final val example = new…
NullPointer
  • 496
  • 6
  • 14
1
vote
1 answer

Is there a way to make lombok to create an object in case of null while using @Getter @Setter annotation?

Having a simple class A that contains class B is there any lombok annotation that will create new instance of class b in a in case of null? public class A { @Getter @Setter private B b; }
USer22999299
  • 5,284
  • 9
  • 46
  • 78
1
vote
1 answer

Lombok - Hrisey conflict

I am using Lombok and Hrisey in my Android app. I have installed both plugins on Android Studio. But since I started using Hrisey I get some errors during the build. I guess there is a conflict somehow. Here is the error, in my Application class,…
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
1
vote
1 answer

Lombok - @Singular annotation not found

I am using Lombok for one of my apps. I have a class declared with the annotation @Builder. The fields are annotated with @SerializedName("xxxxx") in order to support Gson. However, one of the fields is a List so I would like to use the @Singular…
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
1
vote
2 answers

java.lang.NoSuchMethodError: lombok.extern.log4j.Log4j.topic()

I am getting following error when I annotate a class with @Log4j. The same version set is working with other project. Error: [javac] java.lang.NoSuchMethodError: lombok.extern.log4j.Log4j.topic()Ljava/lang/String; [javac] at…
Venkatarao N
  • 245
  • 3
  • 14
0
votes
1 answer

Spring boot: Cannot resolve method 'builder' in 'Product'

I have used @builder anotation of lombok in Product class. But when I use Product.builder(), it's not work. Also, the getter and setter are cannot resolve. I have tried to downgrade some lombok versions, still not working. This is my code in…
0
votes
0 answers

Lombok not working with Java 11 and IntelliJ

I have a Spring Boot application with Java 11. I am using IntelliJ 2022.1.4 (Ultimate Edition). Lombok plug-in is installed and enabled in the IDE - version bundled 221.6008.13. In my pom.xml I have the maven dependency for project Lombok - version…
0
votes
1 answer

lombok.javac.apt.LombokProcessor can't access com.sun.tools.javac.processing.JavacProcessingEnvironment due to module restrictions

I am facing this error while running command: mvn clean install -DskipTests The error: class lombok.javac.apt.LombokProcessor (in unnamed module @0x7e7740a5) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module…