markdown-oxide
markdown-oxide copied to clipboard
LSP[markdown_oxide]: Error INVALID_SERVER_MESSAGE: -32700 Parse error
Often when I paste large chunk of text into current .md file I got this:
LSP[markdown_oxide]: Error INVALID_SERVER_MESSAGE: {
error = {
code = -32700,
message = "Parse error"
},
jsonrpc = "2.0"
}
This happens only with markdown-oxide (I've also efm LSP connected to run markdownlint), so I don't really believe Neovim actually sends an invalid JSON request. All other kinds of "markdown parse errors" shouldn't use that code and shouldn't crash the server.
Another issue is LSP doesn't restart automatically after that error, so I need to manually do :LspStart markdown_oxide
- but this is probably a general Neovim issue.
Let me know if you need LSP logs with request/response traces, I'll try to reproduce this issue with enabled logging.