Errors on yaml.validate: true
See original GitHub issueEnvironment:
- 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:
- Created 3 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top 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 >
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 Free
Top 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
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.
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.