Setting up "textDocument/publishDiagnostics" handler broke between nvim 0.9.5 and nvim 0.10.0 for jsonls #1860
-
Hi,
If I open a json5 document, the LSP attaches, the message "installing jsonls handler" is printed, but the "jsonls diagnostics" line is never printed, the whole function is completly ignored. I have now search 4h including neovim source code, mason, nvim-lspconfig and now I am at a loss, why this would not work anymore. I read that vim.lsp.handlers is deprecated in v0.11 onwards, but I could not find any clue as to how users should migrate their config. Is there s.b. that understands, why the handler is not invoked? Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Interestingly enough, with jedi_language_server the same methodology works and I get the print statement:
Anyone understands, what the difference between jsonls and jedi is and why it stopped working when neovim was upgraded to 0.10.0? |
Beta Was this translation helpful? Give feedback.
-
It seems that
whereas
I have no idea, why the different language servers behave completely differently and what is the "correct" behaviour. |
Beta Was this translation helpful? Give feedback.
-
So the neovim 0.9.5 version does send to the same
So I have no idea, where I should look info resolving this. It is the exact same configuration that I posted in my second message, that works with exactly the same language server under neovim 0.9.5 and no longer works with 0.10.3. But 0.10.3 sends the same messages to python as 0.9.5. I guess no one reads this discussion or has any clue, where to look. Guess I can close the discussion later this week as unresolved. |
Beta Was this translation helpful? Give feedback.
-
Answering myself here: you can override the [textDocument/diagnostic] handler and modify the result.items table. |
Beta Was this translation helpful? Give feedback.
Answering myself here: you can override the [textDocument/diagnostic] handler and modify the result.items table.