Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required message field is missing from error response ContentModified #879

Closed
kdarkhan opened this issue Dec 28, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@kdarkhan
Copy link

kdarkhan commented Dec 28, 2021

I am using lua-language-server using nvim-lsp client.

When I try to jump to definition inside a file which has not completed loading, sometimes I get ContentModified error response.
https://github.com/sumneko/lua-language-server/blob/9744eb716f3b521f14331d4769925380c3dc3d84/script/proto/define.lua#L186

The response object has code but no message field.
Example here

{
  "code": -32801
}

That is causing the error in telescope-lsp handler which I am fixing in nvim-telescope/telescope.nvim#1630

I checked Language Server Protocol specification and it seems message field is required and cannot be omitted.
Link here

If I understand it correctly then lua-language-server should be returning an error response which always contains message field.

@sumneko sumneko added the bug Something isn't working label Dec 28, 2021
@kdarkhan
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants