Skip to content

Lombok and spotless-maven-plugin Issues #1008

Closed as not planned
Closed as not planned

Description

@CrisLi

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

Activity

  1. martinlippert commented on Mar 17, 2023

    @martinlippert
    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.

  2. added this to the 4.18.1.RELEASE milestone on Mar 17, 2023
  3. thomseno commented on Mar 20, 2023

    @thomseno

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

  4. martinlippert commented on Mar 20, 2023

    @martinlippert
    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.

  5. aosavitski commented on Feb 18, 2025

    @aosavitski

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

  6. martinlippert commented on Feb 20, 2025

    @martinlippert
    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

Metadata

Metadata

Assignees

Labels

for: eclipsetype: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions