Replies: 2 comments 7 replies
-
I've found out that adding jdtls configuration somehow messes the LSP functionality. I don't know how, I don't know why. Also I don't think this is necessary. If Java 21 is your default JDK that runs when you issue Also this doesn't change what JDK jdtls runs with. It only changes the source compatibility level. What really determines what java jdtls runs with is the java version that's in your PATH. Unfortunately I don't have any time to put into nvim-java right now. Otherwise I'd go deeper in the code and try to fix all the issues users are complaining for. |
Beta Was this translation helpful? Give feedback.
-
|
By adding jdtls configuration, do you mean any configuration whatsoever? Or just jdk-specific configuration? If so would u suggest not using the Also I tried setting the JDK version this way, as a last ditch effort, its just one of the many permutations of configurations I tried, but to no avail. Btw completely understandable that you don't have time right now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i am quite sure something is wrong with my config, hence I wont open a new issue, but I cannot seem to solve this by myself
Overall, nvim-java works just fine with me, however I cannot go to definitions of library/external classes and methods, which is a deal breaker.
I wondered if the issue is with my project, however after opening the project in intellij everything worked just fine.
This is the config I'm using, unlike most of the discussions used here, I don't use Lazy, just an old packer config.
init.lualua/user/lsp.luaI was hoping the comment here #398 (comment) would fix my issues, however it did not work.
I am using nvim v11 and java 21 on arch linux machine
Beta Was this translation helpful? Give feedback.
All reactions