I am trying to extend Lombok by creating my own annotation.
I managed to have LombokizedEclipse.launch created by ant, and I have written before and after files.
ant test fails on my annotation (which is expected) and now I would like to debug my Handle* classes.
I am on a Mac, eclipse Luna 4.4 and java 1.8 update 45.
How can I do that? Please let me know if you need further info.
Thanks in advance!
I now understand that Lombok can be debugged in 2 different ways:
After cloning the lombok repository, those are the steps I followed to achieve both methods:
$ ant eclipse$ ant setupJavaOracle8TestEnvironment$ ant dist$ java -jar dist/lombok.jarJavaSE-1.8. Go to Eclipse -> Preferences -> Java -> Installed JREs to change itF5)RunLombokTests OracleJDK8.launch and Run/DebugRunAllTests is executed: Runs: 455/454 (1 skipped), Errors: 0, Failures: 89
$ ant test runs RunAllTests successfully: Tests run: 455, Failures: 0, Errors: 0, Skipped: 1
HandleGetter.handle works
I don't know why in Eclipse (step 9.) 89 tests fail in TestWithEcj, although the remaining 54 (and 1 skipped) pass.$ ant dist$ ant eclipseForDebuggingplugins)LombokizedEclipse.launch and Run/Debuglombok.jar to the classpathIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With