redhat-developer / redhat-developer/vscode-yaml
Error spam while typing YAML file in "tasks" folder
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
While editing a yaml file under certain conditions, an error occurs in VSCode (I'm not sure what this window is called). The error causes the window to reopen on almost every character typed, even after closed.
[Error - 6:48:02 PM] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'type' of undefined
Code: -32603

I believe this is the smallest steps to reproduce:
- Folder named
tasks - Any file ending in
.ymlinside it (I usedtest.yml) - In that new file, type the following (don't copy paste):
- n
and that will give you the error (upon typing the n).
Let me know if anymore information is needed or if reproduction isn't possible.
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
Reproduce the failure in VS Code with a tasks folder, a .yml file, and the typed content "- n". Start by tracing the textDocument/completion request that reports "Cannot read property 'type' of undefined"; done means typing no longer repeatedly reopens the error window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100