Skip to content

[BUG] Lombok Does not work with IntelliJ EAP 2020.3 Build 203.4203.26 #2592

@filiphr

Description

@filiphr

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:

https://github.com/JetBrains/intellij-community/blob/master/jps/jps-builders-6/src/org/jetbrains/jps/javac/APIWrappers.java

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

mplushnikov commented on Oct 3, 2020

@mplushnikov

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

Rawi01 commented on Oct 3, 2020

@Rawi01
Collaborator

@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

mplushnikov commented on Oct 3, 2020

@mplushnikov

Great @Rawi01, thank you!

added a commit that references this issue on Oct 4, 2020
45ccfd9
ivascaflavius

ivascaflavius commented on Oct 8, 2020

@ivascaflavius

Hi guys, is there a workaround for this issue?

bjansen

bjansen commented on Oct 8, 2020

@bjansen

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-0

ivascaflavius

ivascaflavius commented on Oct 8, 2020

@ivascaflavius

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-0

Seems to be working. Thanks!

added a commit that references this issue on Oct 8, 2020
29d3418

20 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @bjansen@mplushnikov@ivascaflavius@Rawi01@filiphr

      Issue actions

        [BUG] Lombok Does not work with IntelliJ EAP 2020.3 Build 203.4203.26 · Issue #2592 · projectlombok/lombok