java-language-server icon indicating copy to clipboard operation
java-language-server copied to clipboard

neovim support

Open samarth-na opened this issue 1 year ago • 6 comments

can you provide any way of getting this working inside of neovim

i tried to get this installed with the plugin mason.nvim it gave me the following error message

Cloning git repository "https://github.com/georgewfraser/java-language-server.git"…
        Cloning into '.'...
        From https://github.com/georgewfraser/java-language-server
         * tag               v0.2.39    -> FETCH_HEAD
        + ./scripts/link_linux.sh
        Error: Module java.sql not found
        java.lang.module.FindException: Module java.sql not found
        	at java.base/java.lang.module.Resolver.findFail(Resolver.java:892)
        	at java.base/java.lang.module.Resolver.resolve(Resolver.java:129)
        	at java.base/java.lang.module.Configuration.resolve(Configuration.java:420)
        	at java.base/java.lang.module.Configuration.resolve(Configuration.java:254)
        	at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:217)
        	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:523)
        	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:411)
        	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:286)
        	at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:56)
        	at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:34)
        spawn: bash failed with exit code 1 and signal 0. 


i have also started an issue on the mason repo if the problem was on there side but i didnt find any documentation on here to install it on neovim so it would be helpfull if you can provide us with that

thanks!

samarth-na avatar Mar 05 '24 16:03 samarth-na

Dis you have installed the java dk and virtual machine installed? It seems more a problem of modules.

Gogiu23 avatar Mar 20 '24 08:03 Gogiu23

sorry for an late reply this is what i have install in my computer

-> java --version
openjdk 21.0.2 2024-01-16
OpenJDK Runtime Environment (Red_Hat-21.0.2.0.13-2) (build 21.0.2+13)
OpenJDK 64-Bit Server VM (Red_Hat-21.0.2.0.13-2) (build 21.0.2+13, mixed mode, sharing)

-> javac --version
javac 21.0.2

samarth-na avatar Apr 01 '24 11:04 samarth-na

is there anything i should have installed

samarth-na avatar Apr 01 '24 11:04 samarth-na