redhat-developer / redhat-developer/yaml-language-server
`[SOLVED]` RPC[Error] code_name = InternalError, message = "Request textDocument/foldingRange failed with message: Cannot read properties of undefined (reading 'lineFoldingOnly')"
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Describe the bug
When using yaml-language-server from mason, writing a .yaml buffer causes the error:
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 errors on write
Current Behavior
Error on write
Steps to Reproduce
- Install yaml-language-server using mason.
- Open a yaml file
- Write it into disk
Environment
- [ x ] Arch Linux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the foldingRange error with yaml-language-server installed through mason, using an Arch Linux YAML buffer and writing it to disk. Trace the textDocument/foldingRange request and verify that saving the buffer completes without the reported lineFoldingOnly error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100