client exited even though serviceReady #309
-
When I open a .java file I get an immediate Error
but after that I see "Starting Java language server" with "ServiceReady" in the end. The logs output via JdtShowLogs is the following:
And I have to say that I am only able to use
Is it normal that I installed jdtls via Mason and my config is in the ftplugin folder as java.lua file: I adjusted the None of the Any help would be very appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sounds like you're using both lspconfig.jdtls.setup and jdtls. That doesn't work, see https://github.com/mfussenegger/nvim-jdtls#nvim-lspconfig-and-nvim-jdtls-differences
Yes, see the link above. nvim-jdtls doesn't setup filetype hooks on its own, that's what your |
Beta Was this translation helpful? Give feedback.
Sounds like you're using both lspconfig.jdtls.setup and jdtls. That doesn't work, see https://github.com/mfussenegger/nvim-jdtls#nvim-lspconfig-and-nvim-jdtls-differences
Yes, see the link above. nvim-jdtls doesn't setup filetype hooks on its own, that's what your
ftplugin/java.lua
file is for.