We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using a recursive anchor, the extension outputs the following error and linting/validation stops working.
Request textDocument/foldingRange failed. Message: Request textDocument/foldingRange failed with message: Maximum call stack size exceeded Code: -32603
YAML:
# Arbitrary schema # yaml-language-server: $schema=https://json.schemastore.org/github-action.json &root prop: sub: *root
The yaml package and Ajv have no problem parsing and applying the recursive anchor.
yaml
Output of YAML.parse():
YAML.parse()
<ref *1> { prop: { sub: [Circular *1] } }
Linting and validation should continue working.
The extension crashes with the error indicated above.
Without recursive anchor, works as intended:
With recursive anchor, does not work:
*root
I may be able to open a PR fixing this if that becomes necessary.
If this issue should be under https://github.com/redhat-developer/yaml-language-server please transfer it.
The text was updated successfully, but these errors were encountered:
gorkem
Successfully merging a pull request may close this issue.
Describe the bug
When using a recursive anchor, the extension outputs the following error and linting/validation stops working.
YAML:
The
yaml
package and Ajv have no problem parsing and applying the recursive anchor.Output of
YAML.parse()
:Expected Behavior
Linting and validation should continue working.
Current Behavior
The extension crashes with the error indicated above.
Without recursive anchor, works as intended:
With recursive anchor, does not work:
Steps to Reproduce
*root
reference, and notice that validation works as intended*root
reference back, and notice that the extension stops workingEnvironment
Notes
I may be able to open a PR fixing this if that becomes necessary.
If this issue should be under https://github.com/redhat-developer/yaml-language-server please transfer it.
The text was updated successfully, but these errors were encountered: