yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

Getting a possible bug using Neovim when opening a .yml file

Open erlingur opened this issue 2 years ago • 2 comments

Summary

Error executing vim.schedule lua callback: UnhandledPromiseRejection with the reason:
RPC[Error] code_name = InternalError, message = "Request textDocument/foldingRange failed with message: Cannot read properties of undefine
d (reading 'lineFoldingOnly')"

Relevant information

I'm using Neovim and when I open a .yml file I get this error. I'm having a hard time figuring out where it comes from but I think it's from yaml-language-server. Is this possible?

erlingur avatar Dec 21 '22 01:12 erlingur

Yes. It looks like it is coming from the yaml-language-server. I suspect that neovim is sending the FoldingRange Capabilities in a way the server is not expecting.

gorkem avatar Dec 21 '22 22:12 gorkem

Ok, thank you @gorkem

erlingur avatar Dec 28 '22 22:12 erlingur