JDTLS doesn't seem to be launched correctly on first instance.
Neovim version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Nvim-lspconfig version
No response
Operating system and version
5.10.105-1-MANJARO
Affected language servers
JDTLS
Steps to reproduce
nvim file.java
Actual behavior
None of the language server features like autocompletion, goto defition... will work
Some errors among the following may popup:
The declared package "route.file" does not match the expected package "". Link
file.java is not on the classpath of project, only syntax errors are reported. Link
The import core cannot be resolved. Link
Some of these errors are known to be related to the language server directly and not related to the project and, in fact, can be often solved by just executing a cleaning or relaunching the editor(Eclipse often). In my case I know these errors are related to JDTLS because there is a way to fix it that has nothing to do with the project. To fix it, it is enough with executing:
:LspStop
:LspStart
Those two commands solve all problems and the language server is correctly launched. :LspRestart get's rid of the errors but doesn't seem to launch the language server since no features work.
Expected behavior
JDTLS to be launched correctly
Minimal config
No configuration was done. The server was installed with `williamboman/nvim-lsp-installer`.
Description
JDTLS doesn't seem to be launched correctly on first instance.
Neovim version
NVIM v0.6.1 Build type: Release LuaJIT 2.1.0-beta3 Compiled by builduser
Nvim-lspconfig version
No response
Operating system and version
5.10.105-1-MANJARO
Affected language servers
JDTLS
Steps to reproduce
nvim file.java
Actual behavior
:LspStop
:LspStart
Those two commands solve all problems and the language server is correctly launched.:LspRestart
get's rid of the errors but doesn't seem to launch the language server since no features work.Expected behavior
JDTLS to be launched correctly
Minimal config
LSP log
https://gist.github.com/Balrrach/8595b7a8340a5e90e8bb56fc533ef75b