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.

Errors on yaml.validate: true

See original GitHub issue

Environment:

  • macOS
  • cfn-lint: 0.29.5
  • vs code: 1.44.2
  • vscode-cfn-lint: 0.11.1
  • vscode-yaml: 0.7.2
  • no other yaml extension installed

Problem

This extension is setting yaml.validate to false whenever it starts. As I understand this is done because, with the default setting (true), a lot of false errors are shown.

Leaving out that’s a bad practice to edit other extension’s settings with no user consent/notice, my first question is:

  • Why disabling the validation instead of fixing the bug?

I noticed other closed issues on this topic, but it seems the problem was never resolved. Since I think that we should be able to work with the validation enabled, I want to ask:

  • Will there ever be an effort to make this extension work with yaml.validate: true?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kddejongcommented, Jul 28, 2022

I’m working on a new way to include the yaml language server that should resolve these issues. its a bigger rewrite to the plugin but should allow us to completely decouple from the vscode-yaml extension.

2reactions
riccardopedriellicommented, Apr 22, 2020

Another problem of writing yaml.validate: false into the settings.json of vs code is also that the validation is disabled for every other yaml file, be it a cfn o just a regular yaml.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors on yaml.validate: true · Issue #97 - GitHub
This extension is setting yaml.validate to false whenever it starts. As I understand this is done because, with the default setting ( true...
Read more >
Validate YAML - Online YAML Tools
Free, quick and easy online utility that validates YAML syntax right in your browser. There are no ads or downloads. ... Valid YAML...
Read more >
YAML Schema Validation reports incorrect errors for if conditions
For an Azure Devops pipeline where there is a valid condition (e.g. it runs correctly) it is reporting a validation error in the...
Read more >
Validating the YAML in your custom resource file - IBM
If the YAML is not valid, the tool generates a message and indicates the line where the error is found. What to do...
Read more >
Yaml Validation Exception Failed to validate. but it shows no ...
I am getting the same error Failed to Validate when I try to run rasa train or rasa x . Even though YAMLlint.com...
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