Error spam while typing YAML file in "tasks" folder
See original GitHub issueWhile 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
.yml
inside 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Having `tasks` as folder suffix in hierarchy causes Incorrect ...
If you have a folder (anywhere in the hierarchy of the file) suffixed with tasks then you get Incorrect type. Expected "array".
Read more >How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
We have a video tutorial on fixing YAML (.yml) configuration errors: ... Below is a list of common mistakes that people make when...
Read more >Check your YAML for errors with yamllint - Red Hat
The first error occurs on line 1, character 1. Implement the fix by adding --- at the top of the YAML file. The...
Read more >Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Learn how to troubleshoot pipeline runs in Azure Pipelines and Team Foundation Server.
Read more >tfs - Azure devops pipeline Initialize Job Failing with the error ...
do you mean you deleted the task folder from the build agent i.e. a ... an error when it tries to ensure that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like it is a duplicate of #145
Same here.
VSCode version:
Version: 1.47.3
(MacOS) YAML extension version:v0.9.1