3

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 project uses Java11.

Everything works fine when I run my application via Gradle or run unit tests via ./gradlew test.

When I now configure to use IntelliJ IDEA tooling (Preferences --> Build, Executions, Deployment --> Built Tools --> Gradle --> Both 'Build an Run using:' and 'Run tests using:' set to 'IntelliJ IDEA') it stops working, my generated classes are not found.

I receive exceptions, that my constructors are not found, while they were found when I am using gradle

(no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)

Florian Hansen
  • 746
  • 7
  • 19
  • 1
    Check if the annotation processor uses the same directory for the generated source files as gradle does. Does Intellij recognize that folder as source code folder? – Peter Aug 14 '19 at 10:43
  • i've heard some problems with using lombok in test classes. Is that the problem here as well? – Roel Spilker Aug 20 '19 at 08:48
  • I think this is IntelliJ Ultimate 2019.2 regression, it was working in the previous versions. – Iouri Goussev Oct 29 '19 at 16:30

1 Answers1

0

I've clicked on Refactor->Lombok->@Log and friends and IDEA started to compile the code.

Iouri Goussev
  • 368
  • 3
  • 9