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

Assert while parsing valid yaml with ':' in text #361

Closed
svart-riddare opened this issue Mar 31, 2023 · 4 comments · Fixed by #378
Closed

Assert while parsing valid yaml with ':' in text #361

svart-riddare opened this issue Mar 31, 2023 · 4 comments · Fixed by #378

Comments

@svart-riddare
Copy link

While parsing:

value:
  description:
    Timecode in "HH:MM:SS:FF" format where the last ':' can be replaced by ',' or ';'.

rapidyam 0.5.0 asserts in csubstr Parser::_consume_scalar(), on RYML_CHECK(m_state->flags & SSCL);.

YAML contains tricky ":" in text string but is considered valid by online validators and is read correctly by libyaml.

@biojppm
Copy link
Owner

biojppm commented Mar 31, 2023

Thanks for reporting. Allow some time before this is fixed.

@svart-riddare
Copy link
Author

Thank you for your quick reply. Take your time, I raised this issue mostly because I saw it; I can workaround it as follow:

value:
  description: >-
    Timecode in "HH:MM:SS:FF" format where the last ':' can be replaced by ',' or ';'.

@biojppm
Copy link
Owner

biojppm commented Jun 5, 2023

Finally looking at this.

FWIW, this smaller example fails the same way:

description: 
  foo:bar

while this succeeds:

description: foo:bar

and this succeeds as well:

description: Timecode in "HH:MM:SS:FF" format where the last ':' can be replaced by ',' or ';'.

@svart-riddare
Copy link
Author

Thanks !

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

Successfully merging a pull request may close this issue.

2 participants