Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-4133

Lombok generated getters and setters not identified by STS

    XMLWordPrintable

    Details

    • Type: Support
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 3.6.3.RELEASE
    • Fix Version/s: None
    • Component/s: EDITING, MAVEN
    • Labels:
    • Environment:
      Windows 7 Professional - SP1, JDK 1.7.0_45, 4GB RAM; Eclipse Kepler with JBoss Fuse Tooling installed on top of it.

      Description

      The Lombok is installed as per the steps mentioned in the website of projectlombok. The following entry is available in STS.in after installation of lombok.jar by running it -
      -vmargs
      -javaagent:lombok.jar

      I have added -Xbootclasspath/a:lombok.jar along with the above and exited STS manually.

      A simple java project with Lombok is working fine with no Eclipse's compilation or Maven compilation.
      I have a project where it has Maven Aspect plugin with maven compiler plugin for the project. The classes that call the methods (Getter/Setters) generated shows compilation errors on the IDE editor. However, clicking of the method directs to the @Data or @Getter declaration.

        Attachments

        1. test-lombok.zip
          8 kB
        2. lombok_project_screenshot.jpg
          lombok_project_screenshot.jpg
          134 kB
        3. about_STS_lombok.jpg
          about_STS_lombok.jpg
          107 kB
        4. STS.ini
          1 kB

          Activity

            People

            Assignee:
            mlippert Martin Lippert
            Reporter:
            karthik20 Karthik R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: