The language server started but crashed immediately #541
Unanswered
steelbluelee
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed nvim-jdtls using the command "git clone https://github.com/mfussenegger/nvim-jdtls.git ~/.config/nvim/pack/plugins/start/nvim-jdtls"
And I installed jdtls server using mason.nvim.
-- in my ftplugin/java.lua
local config = {
cmd = { "/home/sklee/.local/share/nvim/mason/bin/jdtls" },
root_dir = vim.fs.dirname(vim.fs.find({ "gradlew", ".git", "mvnw" }, { upward = true })[1]),
}
require("jdtls").start_or_attach(config)
-- LspLog
[START][2023-08-11 18:30:29] LSP logging initiated
[WARN][2023-08-11 18:30:29] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 1): "
[ERROR][2023-08-11 18:30:29] .../vim/lsp/rpc.lua:734 "rpc" "/home/sklee/.local/share/nvim/mason/bin/jdtls" "stderr" "WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign\n"
[WARN][2023-08-11 18:30:31] ...lsp/handlers.lua:137 "The language server jdtls triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2023-08-11 18:30:31] ...lsp/handlers.lua:535 "Aug 11, 2023, 6:30:31 PM Command _java.reloadBundles.command not supported on client"
What can I do to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions