Lombok doesn't let project build

Answered

I have both IntelliJ (2019.2.3) and Lombok plugin (2019.2) updated. Annotation processing is enabled, dependency is in the right place.

Lombok seems to be working.. as at a compile-time (in IntelliJ editor) @AllArgsConstructor is resolved, and I can instantiate a new instance with all arguments.. also @Slf4j works fine..

However!

When I click run, (or try to rebuild project) it fails and complains, that No arguments constructor was expected but provided one has parameters.. (note, that I have both @NoArgsConstructor and @AllArgsConstructor)..

Even if I manually provide those constructors and delete Lombok annotations, then @Data isn't working, as setters aren't generated..

Any help?

0
8 comments

Please share a sample project to reproduce the issue (GitHub link).

0

Try changing project/module JDK to 1.8.

0

mvn package -> java -jar target\jarfile works fine with this jdk. I don't have jdk8 on this machine.. but if running jdk through maven's build works fine and IntelliJ's run button doesn't - will changing jdk still be reasonable? it's a bit strange and odd.

0

Please follow https://youtrack.jetbrains.com/issue/IDEA-224158 for updates.

Not sure if it's IntelliJ IDEA or Lombok plug-in issue.

1

Thank you, Serge. I wanted to submit this via my name, but I seem to be unable to register.. do I need some special invitation for that? thinking, that I might be a reporter/contributor to IntelliJ in the future.

0

Anyone can register and submit issues at https://youtrack.jetbrains.com/issues/IDEA. No invitation is needed.

0

Thank you, Serge. I have created my own ticket now, I think you can close this. Thanks for helping.

0

Please sign in to leave a comment.