You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installation, in Eclipse I checked the About box and did not see Lombok. Also, Lombok isn't working as evidence by Lombok generated getters, for example, not being recognized as existing in Eclipse.
After stumbling around for a bit, I came across #14 which says how to specify arguments to Eclipse.
I therefore tried running Eclipse using the Lombok JVM arguments, like this: flatpak run org.eclipse.Java -javaagent:/home/candrews/.var/app/org.eclipse.Java/eclipse/plugins/org.projectlombok.agent_1.18.24/lombok.jar
And now Lombok appears in Eclipse's About box and its working.
Can the Flatpak be improved so that installing Lombok via its update site works?
The text was updated successfully, but these errors were encountered:
It seems like the issue is worsened by the fact that the -javaagent cli argument seems to be ignored now
Running flatpak run org.eclipse.Java -javaagent:/home/fautin/.var/app/org.eclipse.Java/eclipse/plugins/org.projectlombok.agent_1.18.30/lombok.jar yields no result.
FIXED: The actual command is flatpak run org.eclipse.Java -vmargs -javaagent:/home/$USER/.var/app/org.eclipse.Java/eclipse/plugins/org.projectlombok.agent_A.B.C/lombok.jar where you replace user by your username and A.B.C by the lombok version number.
In order to avoid having to run eclipse from the CLI, you can write a custom .desktop file for your user:
$ nano org.eclipse.Java.desktop (or with whichever text editor you prefer)
Edit the Exec= line by adding -vmargs -javaagent:/home/$USER/.var/app/org.eclipse.Java/eclipse/plugins/org.projectlombok.agent_A.B.C/lombok.jar between -- and @@by letting spaces in between the markers
Optionally edit the Name= line to reflect the fact that this is NOT the original .desktop file (mine is Eclipse Java with Lombok)
In Eclipse, I installed Lombok as documented at https://projectlombok.org/setup/eclipse using the update site, https://projectlombok.org/p2
After installation, in Eclipse I checked the About box and did not see Lombok. Also, Lombok isn't working as evidence by Lombok generated getters, for example, not being recognized as existing in Eclipse.
After stumbling around for a bit, I came across #14 which says how to specify arguments to Eclipse.
I therefore tried running Eclipse using the Lombok JVM arguments, like this:
flatpak run org.eclipse.Java -javaagent:/home/candrews/.var/app/org.eclipse.Java/eclipse/plugins/org.projectlombok.agent_1.18.24/lombok.jar
And now Lombok appears in Eclipse's About box and its working.
Can the Flatpak be improved so that installing Lombok via its update site works?
The text was updated successfully, but these errors were encountered: