Closed szobov closed 5 years ago
ping
Your lsp-mode may be older than https://github.com/emacs-lsp/lsp-mode/pull/691 . Before that an empty JSON array was (de)serialized as nil
. That badly conflicted with the JSON null.
I suspect "relatedInformation":[]
(from textDocument/publishDiagnostics
) was deserialized as (:relatedInformation nil)
, and then it was passed around as "relatedInformation": null
by lsp-execute-code-action
. That was incorrect. The spec says:
relatedInformation?: DiagnosticRelatedInformation[];
relatedInformation
can't be a null.
Hi there!
I've tried to use ccls with spacemacs, but everytime I put a cursor on line with error I receive:
LSP :: invalid params of textDocument/codeAction: expected array for /context/diagnostics[0]/relatedInformation [N times]
(N is a count of how many times I put a cursor on line with the error).This is my system env, hope it helps:
I can also provide any important information if you need. Thanks!