Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for missing anchor (unidentified alias) broken since 1.0 #1098

Open
1 of 4 tasks
vtcifer opened this issue Feb 15, 2025 · 1 comment
Open
1 of 4 tasks

Error for missing anchor (unidentified alias) broken since 1.0 #1098

vtcifer opened this issue Feb 15, 2025 · 1 comment

Comments

@vtcifer
Copy link

vtcifer commented Feb 15, 2025

Describe the bug

If you make use of an alias which has no corresponding anchor, this extension used to provide an error (version 0.23 and before).
Since version 1.0 and beyond, no error is generated.

Expected Behavior

An error should be listed in the 'Problems' window.

Version 0.23:

Image

Current Behavior

No error is generated.

Image

Steps to Reproduce

  1. Set yaml.yamlVersion to 1.1.
  2. Create a yaml file with the following content:
bar: *bar
baz: 
  <<: *baz

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
@msivasubramaniaan
Copy link
Contributor

Till 0.23.0 we used js-yaml and from version 1.0.0 we replaced with yaml npm. As no schema is enforced, it may not detect any errors and it simply parsed as string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants