-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
KEY_OVER_1024_CHARS error with large indented blocks of comments #413
Comments
There was a bug in updating the offset during composition for empty mapping values with trailing comments. Thank you for reporting this! Fixed version released as v2.1.2. |
Might check it against my sample again. I don't think the main bug has been fixed yet. |
Bother; you're right. I'd found first a minimal example that appeared to trigger the same error, and solved against that only. |
New fix released as 2.1.3. @fluggo Please let me know if that actually fixes this? |
Closing as presumably fixed. |
Describe the bug
If there's a large block of comments hanging indented under a key, that can trigger an error suggesting that the next key indicator is too far away.
To Reproduce
The script produces the error:
Removing the indent from the first block of comments works around the error.
Expected behaviour
The text is valid YAML, it should be parsed, no matter how many comments there are or whether they're indented.
Versions (please complete the following information):
yaml
: 2.1.1The text was updated successfully, but these errors were encountered: