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
Comments confuse the YAML parser #32952
Comments
Does this not happen if your YAML looks like this? foo:
bar:
baz:
{
} |
No, it does not. The two comment blocks need to be there. |
Then I am pretty sure that this behaviour is related to the fact that the component doesn't parse the inline notation when it spans multiple lines (see also #25239). So let's close here as a duplicate of the mentioned issue. |
@pierredup applying the patch from that pull request on top of 3.4.30 fixed the issue. Thanks for the link. |
Symfony version(s) affected: 3.x, 4.x
Description
The Symfony YAML parser component fails to parse a valid YAML file, that can be parsed by other parsers (e.g. spyc).
How to reproduce
This example file is the simplified version (smallest one that can reproduce this issue) of the file I am trying to parse.
The result is:
The text was updated successfully, but these errors were encountered: