Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lombok and spotless-maven-plugin Issues #1008

Closed
CrisLi opened this issue Mar 17, 2023 · 5 comments
Closed

Lombok and spotless-maven-plugin Issues #1008

CrisLi opened this issue Mar 17, 2023 · 5 comments
Assignees
Labels
for: eclipse something that is specific for Eclipse type: bug

Comments

@CrisLi
Copy link

CrisLi commented Mar 17, 2023

Describe the bug

There are 3 issues I found after I upgraded to version 4.18.0.RELEASE.

OS: MacOS 13.2.1
Chips: M1

  1. XML (Maven POM) editor format action not working - When I press Command + Shift + F nothing happens.
  2. spotless-maven-plugin and Lombok can't work together. lombok.patcher.Symbols class not found.
  3. Work with Lombok plunging, the lombok.config config file doesn't load.

Issue 2 screenshot

image

Issue 3 details

Here is my lombok.config
image

And in the IDE, there is a warning which should not be there.
image

When running the application in IDE, it prints out 'true', but when I run it in the terminal it prints out 'false', which my code expects should be.

image

Same code in the IDE
image

Same code in the terminal
image

To Reproduce
Steps to reproduce the behavior.

Sample

Sample source code https://github.com/CrisLi/sts4-issues

@martinlippert
Copy link
Member

I can reproduce issue 1) with the latest STS 4.18.0 release, so we need to investigate why the format command is not working whereas it is working in a plain Eclipse Java 2023-03 package.

With regards to issue 2) and 3), it would be great if you could double check whether Lombok is working fine when having a plain Eclipse Java 2023-03 package with the Lombok extension installed? That would be great. We need to get an idea about whether this is an issue from the Lombok extension in general (maybe in combination with the latest m2e) or if this is specific to the Spring Tools distribution. Therefore it would be awesome if you could give a plain Eclipse 2023-03 + Lombok extension a try.

@thomseno
Copy link

Having the same problem, looks like Lombok is already on it projectlombok/lombok#3332

@martinlippert
Copy link
Member

Thanks for the link to the Lombok issue @thomseno , much appreciated.

Closing this one here as a duplicate of the newly created issue for the format issue (#1010) and the mentioned Lombok issue for the Lombok-related problems.

@aosavitski
Copy link

I have issue 2 (spotless + lombok) in STS 4.28.1. Lombock is the latest (1.18.36)

@martinlippert
Copy link
Member

I have issue 2 (spotless + lombok) in STS 4.28.1. Lombock is the latest (1.18.36)

Please report this to Lombok and/or the spotless maven plugin project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse type: bug
Projects
None yet
Development

No branches or pull requests

5 participants