Although I love lombok, it gives too much problems while configuring sometimes, specially in Linux. When I was trying to install it, I was getting the following error:
For the STS on Mac OSX, choose the .ini file, not the .exe file.
This is the path on my Macbook.
/Applications/SpringToolSuite4.app/Contents/Eclipse/SpringToolSuite4.ini
It worked like a charm.
For whom the installer is throwing error while installation, this can be installed manually by following below steps.
lombok-x.xx.xx.jar from ~/.m2 repository. (E.g. ~\.m2\repository\org\projectlombok\lombok\1.16.14\lombok-1.16.14.jar)D:\spring-tool-suite-3.9.0.RELEASE-e4.7.0-win32-x86_64\sts-bundle\sts-3.9.0.RELEASE\)-javaagent:lombok.jar line in the end .help>About Spring Tool Suit and check. You will see a message like "Lombok v1.16.14 "Candid Duck" is installed. https://projectlombok.org/"Maven>Update Project.If you are using STS4 and having custom -vm arguments like below in SpringToolSuite4.ini file.
-vm
C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.242-3\bin\javaw.exe
Then you need add following to your SpringToolSuite4.ini file.
-vmargs
-javaagent:lombok.jar
I have already did below part:
you can rename lombok-1.18.10 to lombok.jar.
Copy lombok.jar as same path of SpringToolSuite4.ini file and install it. java -jar lombok.jar.
On Linux, I copied lombook.jar file to STS folder. Then, I added below lines in STS.ini file
-vmargs
-Xbootclasspath/a:lombok.jar
-javaagent:lombok.jar
However it still didn't solve the issue. After starting STS with -clean it did work.
Go to the folder containing the STS file, and on the console run ./STS -clean.
I installed the lombok by double click on the jar file, and selecting the spring tool suite IDE. Even after restart of IDE and rebuild of project after adding the jar manually to the project build path, the outline did not show up the getters and setters. Then placed the lombok jar file inside plugin folder of Spring tool suite, and restarted. The getter and setter started showing up in the class Outline window as below:
Double-click lombok.jar (downloadable from this site, or from your maven repository; it's the same jar).
This starts the eclipse/STS installer which will find eclipse (and eclipse variants as listed above), and offers to install lombok into these eclipse installations. The same tool can also uninstall lombok. Source: https://projectlombok.org/setup/eclipse