redhat-developer / redhat-developer/vscode-yaml

Error spam while typing YAML file in "tasks" folder

Open
#337 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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 

screenshot

I believe this is the smallest steps to reproduce:

  1. Folder named tasks
  2. Any file ending in .yml inside it (I used test.yml)
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.