Multiple instance of JDTLS servers running #644
Replies: 3 comments
-
You might want to see my setup as it might help with you similar of "multiple LSP servers". The key is to have the correct root for all the servers. #613 (comment) |
Beta Was this translation helpful? Give feedback.
-
I had similar issues before related to my configuration, meaning, I had a generic attach lsp for multiple languages that looked like:
what happens is this code attached 1 lsp and the java file attached other. So I added the following:
To my generic attach. not sure if there is better ways to avoid this but that solved for me. |
Beta Was this translation helpful? Give feedback.
-
Is jdtls started when you launch Neovim? local ft = {
"javascript",
"javascriptreact",
'typescriptreact',
'typescript',
"java"
}
return {
"https://gitlab.com/schrieveslaach/sonarlint.nvim.git",
ft = ft,
lazy = true,
-- other settings
} |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I have recently started using neovim and I'm noobie when it come to setting up the configs. I'm trying to setup the nvim-jdtls for my work and I'm getting the following warning when I'm opening a java project "Multiple LSP clients found that support java.project.isTestFile you should have at most one JDTLS server running". I also have sonarlint.nvim setup in my neovim setup.
After a bit of digging I found out that both sonarlint.nvim and nvim-jdtls are creating new jdtls servers which is the cause I feel. I'm not sure how to resolve it and looking for some help on this regards.
nvim-jdtls config:
sonalint.nvim config:
Btw I'm using lazy as the package manages not sure if this helps.
Thanks in Advanced.
Thanks mfussenegger for the amazing work. Keep up the good work
Beta Was this translation helpful? Give feedback.
All reactions