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

UnhandledPromiseRejection textDocument/foldingRange failed for yamlls #127

Closed
Jomik opened this issue Apr 12, 2023 · 4 comments
Closed

UnhandledPromiseRejection textDocument/foldingRange failed for yamlls #127

Jomik opened this issue Apr 12, 2023 · 4 comments
Labels
duplicate This issue or pull request already exists invalid This doesn't seem right

Comments

@Jomik
Copy link

Jomik commented Apr 12, 2023

Neovim version (nvim -v | head -n1)

NVIM v0.9.0

Operating system/version

macOS 13.1

How to reproduce the issue

Gist containing a repro.lua, a config.yaml and the ufo.log: https://gist.github.com/Jomik/788455003c5bcc4f1741f09636570496

  1. Install plugins nvim -u repro.lua
  2. Install LSP with mason nvim -u repro.lua config.yaml
  3. Quit and open file. I seem to have to do it once or twice, unsure why nvim -u repro.lua config.yaml
  4. Get error, <space>snh to see: 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 undefined (reading 'lineFoldingOnly')"

Expected behavior

No error, folds are found normally.

Actual behavior

UnhandledPromiseRejection error and folding does not work.

@Jomik Jomik added the bug Something isn't working label Apr 12, 2023
@kevinhwang91
Copy link
Owner

#72

@kevinhwang91 kevinhwang91 added duplicate This issue or pull request already exists invalid This doesn't seem right and removed bug Something isn't working labels Apr 12, 2023
@Jomik
Copy link
Author

Jomik commented Apr 12, 2023

Damn, that is weird. I was sure I was sending it, as it works for the other LSPs and the configuration should be exactly the same 🤔
Thank you!

@kevinhwang91
Copy link
Owner

Maybe conflict with yaml plugin.

@costa-simulatedreality
Copy link

I've also faced this issue even after adding the capabilities snippet on nvim-ufo pluggin load. For some reasons the lspconfig get available servers did not include yamlls (I added it manually with a table.insert call, but I would like to understand how could I check and properly debug the configuration loads and the plugins setups)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants