-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Describe the bug
Compiling projects with Lombok in IntelliJ 2020.3 EAP (Build 203.4203.26) leads to:
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: com.sun.proxy.$Proxy32
Lombok supports: OpenJDK javac, ECJ
To Reproduce
Any project compiled in IntelliJ is affected.
Version info (please complete the following information):
- Lombok version: 1.18.12
- IntelliJ 2020.3 EAP (Build 203.4203.26)
Additional context
IntelliJ is now wrapping the ProcessingEnvironment
in a Proxy
. This lead to a problem for us at MapStruct (mapstruct/mapstruct#2215). While trying to fix that and testing with our examples I realized that our examples with Lombok are not compiling anymore.
For us at MapStruct it is quite easy to do this changes, don't know about you at Lombok
Thanks to @bjansen some more information about this:
JetBrains/intellij-community@d6f2625#commitcomment-42898346
https://youtrack.jetbrains.com/issue/IDEA-250718
Lombok related IntelliJ issue (https://youtrack.jetbrains.com/issue/IDEA-252069)
Activity
mplushnikov commentedon Oct 3, 2020
The way you are fixing it here https://github.com/mapstruct/mapstruct/pull/2218/files @filiphr should be also possible for lombok @rzwitserloot right?
Rawi01 commentedon Oct 3, 2020
@mplushnikov I think it requires a little bit more work because lombok needs the actual processing environment. I already downloaded InteliJ to work on a fix for this one, shouldn't be that hard.
mplushnikov commentedon Oct 3, 2020
Great @Rawi01, thank you!
[fixes projectlombok#2592] Find ProcessingEnvironment in InteliJ 2020…
ivascaflavius commentedon Oct 8, 2020
Hi guys, is there a workaround for this issue?
bjansen commentedon Oct 8, 2020
Yes, add
-Djps.track.ap.dependencies=false
to the build process options. See https://youtrack.jetbrains.com/issue/IDEA-250718#focus=Comments-27-4418347.0-0ivascaflavius commentedon Oct 8, 2020
Seems to be working. Thanks!
[fixes #2592] Find ProcessingEnvironment in InteliJ 2020.3 and Kotlin
20 remaining items