Closed idelice closed 1 year ago
Fixed by adding this arg to cmd:
"--jvm-arg=" .. string.format(
"-javaagent:%s",
vim.fn.expand("$HOME/.local/share/nvim/mason/packages/jdtls/lombok.jar")
I was hoping after searching for this error for days now this would be it, sadly it isnt, I am just about to give up and move to another IDE away from neovim (reluctantly). There seems to be no solution for this lombok issue, despite being raised many years ago also.
"Unrecognized option: --jvm-arg=-javaagent:
and even if I alter the javaagent to the suggested call
"Error opening zip file or JAR manifest missing
All permissions are correct, jar is fine, Java on classpath 21, /(tried with 17, and 19 also), also tried with downloaded version of jdtls and lombok rather than mason, still same issue, so almost ready to call it a day.
If I remember correctly the config below provided me the methods lombok creates. However, earlier this year lombok had an issue made it not working well with jdtls and it took months to get it fixed. I am saying this just manage expectations.
LSP client configuration
Eclipse.jdt.ls version
recent
Steps to Reproduce
In a project using gradle, i'm not getting autocomplete for lombok generated getters/setters etc. and at the same time getting errors because it can't find the getter/setter the lombok is generating for my class.
Expected Result
I expect to see and use all generated methods for my POJO that is annotated with lombok annotations like @Getter, @Setter etc.
Actual Result
I get the same type of error for all POJO's that is calling a get/set for it's method:
The method getValue() is undefined for the type MyPojo