-
-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Did you check docs and existing issues?
- I have read all the plugin docs
- I have searched the existing issues
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.11.5
Operating system/version
macOS 26.1
Describe the bug
I've updated nvim-java to the lates (4.0.4 I believe) and had it install it's dependencies. Now, when I open a java file, jdtls fails to start. I'm baffled as to what's going wrong.
Here are my lsp.logs:
[START][2025-12-16 22:41:48] LSP logging initiated
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/opt/homebrew/Caskroom/graalvm-community-jdk22/22.0.2/graalvm-community-openjdk-22.0.2+9.1/Contents/Home/bin/java" "stderr" "Disabling server log output. No more output will be sent after this.\n"
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/Users/foo/.local/share/nvim/nvim-java/packages/openjdk/25/jdk-25.0.1.jdk/Contents/Home/bin/java" "stderr" "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/Users/foo/.local/share/nvim/nvim-java/packages/openjdk/25/jdk-25.0.1.jdk/Contents/Home/bin/java" "stderr" "WARNING: A terminally deprecated method in sun.misc.Unsafe has been called\nWARNING: sun.misc.Unsafe::staticFieldOffset has been called by org.eclipse.osgi.internal.url.MultiplexingFactory (file:/Users/foo/.local/share/nvim/nvim-java/packages/jdtls/1.43.0/plugins/org.eclipse.osgi_3.23.0.v20241212-0858.jar)\nWARNING: Please consider reporting this to the maintainers of class org.eclipse.osgi.internal.url.MultiplexingFactory\nWARNING: sun.misc.Unsafe::staticFieldOffset will be removed in a future release\n"
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/Users/foo/.local/share/nvim/nvim-java/packages/openjdk/25/jdk-25.0.1.jdk/Contents/Home/bin/java" "stderr" "WARNING: A restricted method in "
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/Users/foo/.local/share/nvim/nvim-java/packages/openjdk/25/jdk-25.0.1.jdk/Contents/Home/bin/java" "stderr" "java.lang.Runtime has been called\nWARNING: java.lang.Runtime::load has been called by org.eclipse.equinox.launcher.JNIBridge in an unnamed module (file:/Users/foo/.local/share/nvim/nvim-java/packages/jdtls/1.43.0/plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar)\nWARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module\nWARNING: Restricted methods will be blocked in a future release unless native access is enabled\n\n"
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/Users/foo/.local/share/nvim/nvim-java/packages/openjdk/25/jdk-25.0.1.jdk/Contents/Home/bin/java" "stderr" "Dec 16, 2025 10:41:48 PM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2025-12-16 22:41:48] ...p/_transport.lua:36 "rpc" "/Users/foo/.local/share/nvim/nvim-java/packages/openjdk/25/jdk-25.0.1.jdk/Contents/Home/bin/java" "stderr" "Dec 16, 2025 10:41:48 PM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[WARN][2025-12-16 22:41:49] ...m/lsp/client.lua:875 "The language server spring-boot triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2025-12-16 22:41:49] ...m/lsp/client.lua:875 "The language server spring-boot triggers a registerCapability handler for textDocument/semanticTokens despite dynamicRegistration set to false. Report upstream, this warning is harmless"
Steps To Reproduce
Include a LazyVim plugin for nvim-java with default settings and new vim.lsp.enabled
Open a java file
Expected Behavior
Should load the jdtls lsp correctly