Lombok not workin with Intellij

已回答

I've being digging all issues similar to mine but didnt found anyway to solve my issue
Lombok is simply not wokring in any projects in my machine (it works on other machines just fine).
The problem: When im trying to run/build/etc.  i get errors like "cannot find symbol:   method getStatus()" or “cannot find symbol variable log” (while usign Slf4j). I've tried with the simplest example imaginable, just a single class with Getter and/or Slf4j and it wont compile, so its not the project, also the projects work fine in a LinuxVM and colleagues as well.
Im using a company macbook and the projects are all usign Springboot + Maven
I've tried the following SDKs: OpenJDK 23 / AMZ corretto 17, 19, 21.
Example of project:
SpringBoot 3.3.5
org.projectlombok 1.18.34
Maven (Bundled Maven 3) 3.9.9
IntelliJ IDEA 2024.3 (Ultimate Edition)


If you're going to give me the follwing suggestions, i already tried and it did not work :(

  • Build, Execution, Deployment > Compiler > Annotation Processors > Enable annotation processing is checked.
  • Lombok plugin is installed and updated (i've reinstalled it multiple times already trying to solve it)
  • Update Intellij Ultimate (already tried)
  • Check dependency on pom.xml (its perfect and as i stated, its working on other machines)
  • Invalidate caching (already tried multiple times)

It really is frustrating and im about to give up on IntelliJ. Ive lost the entire day yesterday trying everything to solve this, last resort is uninstalling.
If anyone thinks there is a way out of it but need more info just ask

12

Alessandro That appears to be a different issue.

What error are you getting on Mac? Could you share the full build output (from the Run or Build Tool Windows) and IDEA Logs (Help → Collect Logs and Diagnostic Data)?

Does the issue persist on the latest version of IDEA (2025.1)?

0

I was facing same issue with 2024.1.1 and I have added lombok plugin from marketplace and it worked.

0

guys just swtich to spring boot version 3.2.2 this is only way to fix i spent entire day to find out this ,let me know if there is any other way to resolve this issue 

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.2.2</version>
    <relativePath/>
</parent>
1

Arun Kumar The original issue this thread is dedicated to was resolved in IDEA 2024.3.2.2.

If you are still experiencing issues with Annotation Processors, those likely have a different root cause.

I suggest creating a separate YouTrack entry for them.

0

It's 2025 and IntelliJ is still broken

0

Thegusmp, if you’re still facing the same issue, feel free to share the details here—we’d be happy to take a look. If it’s a different problem, please file a new issue at https://youtrack.jetbrains.com/newissue so it can be properly tracked and addressed.

0

Using IntelliJ IDEA 2025.1.2 (Ultimate Edition). Lombok 1.18.38. Annotation processing enabled using the button that appeared when loading the project. Maven project, with spring boot 3.1.6, works when running on the command line/with maven wrapper.

0

Since it works on the command line, try enabling Delegate IDE build/run actions to Maven under
Settings | Build, Execution, Deployment | Build Tools | Maven | Runner if you haven't already.

Let me know if that helps!

1

Thanks Ilnur Galimov that works. (A little bit slower, but works)

0

Thegusmp, glad to hear that it worked. Please feel free to reach out to us if you have any questions. We’re always happy to help!

0

请先登录再写评论。