0

I have followed how to configure lombok in eclipse luna but it is not working for me for a given gradle project, against the latest version of lombok, having tried both eclipse Luna and Mars.

I have installed lombok to my eclipse through java -jar lombok.jar, providing it the path to my eclipse installation in the UI dialog that it opens up.

I have also added the jar to the project, as seen below. enter image description here

I added the following argument to the java command in my desktop launch script (this is Ubuntu)

-vmargs -javaagent:lombok.jar

(relative and absolute paths worked the same).

The project is a gradle project, and it builds perfectly fine outside of eclipse.

What might be missing, or, how would I further troubleshoot it?

Community
  • 1
  • 1
matanster
  • 15,072
  • 19
  • 88
  • 167
  • I read this twice, but I cannot figure out, what the problem is. Is eclipse building, but gradle not? Or other way around? Or nothing at all? – Jan Galinski Apr 12 '16 at 11:36
  • Eclipse highlights swaths of the source code as erroneous, as if it does not run lombok before compiling, whereas gradle is buildling just fine outside of eclipse (and also inside eclipse). – matanster Apr 12 '16 at 12:14
  • 1
    In Eclipse, in the Help/About Eclipse you should see a line like ` Lombok v1.16.8 "Candid Duck" is installed. https://projectlombok.org/`. If you don't see the line, Lombok is not installed correctly. Do you see such line? – Roel Spilker Apr 13 '16 at 08:55

0 Answers0