Open svrx opened 3 years ago
@svrx Can you share more info on this? I cannot reproduce this:
Do you use only vscode-yaml
? Or some other extension which depends on it?
Thanks for investigating.
I've investigated the issue further on my setup and have been able to narrow down to some interaction with kddejong.vscode-cfn-lint
.
Will bring to maintainers awareness.
Is there anything you can check on your side? Otherwise feel free to close this issue for now.
It would be nice, if you can share yaml, on which you got validation broken, to let me check more deeply.
Something as simple as this is enough.
AWSTemplateFormatVersion: '2010-09-09'
Resources:
ServiceCluster:
Type: AWS::ECS::Cluster
Properties:
ClusterName: ClusterName
Tags: &tags
- Key: Application
Value: AppName
- Key: ApplicationRole
Value: FrontEnd
WebLoadBalancer:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
Name: LBName
Type: application
Tags: *tags
As soon as the anchor (&tags) is added, following error start appearing anytime an element is hovered.
It is bug kddejong.vscode-cfn-lint
in as they use node-yaml-parser
to parse yaml and it seems it not support yaml anchor's.
I will investigate more next week, we need to improve our behavior in case if contributing extension fails.
Thanks. Already opened issue with then about the issue. https://github.com/aws-cloudformation/aws-cfn-lint-visual-studio-code/issues/158
Describe the bug
When user anchors or references in CloudFormation YAML files, schemas stops working when anchors/references are used.
Expected Behavior
It works as normal.
Current Behavior
Following error keeps repeating as elements are hovered.
Steps to Reproduce
Environment