question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error spam while typing YAML file in "tasks" folder

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ksato9700commented, Aug 6, 2020

It looks like it is a duplicate of #145

0reactions
ksato9700commented, Aug 6, 2020

Same here.

VSCode version: Version: 1.47.3 (MacOS) YAML extension version: v0.9.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found