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

Merge fails with duplicate keys #277

Closed
stevebleazard opened this issue Jul 10, 2022 · 1 comment · Fixed by #340
Closed

Merge fails with duplicate keys #277

stevebleazard opened this issue Jul 10, 2022 · 1 comment · Fixed by #340

Comments

@stevebleazard
Copy link

stevebleazard commented Jul 10, 2022

The following code using merge fails with error
/tmp/pip-req-build-_e_q4qdk/src/c4/yml/tree.cpp:969:check_failed: (has_sibling(node, after) && has_sibling(after, node))

import ryml

src = """
A: &A
    V: 3
B:
    <<: *A
    V: 4
    W: 5
"""
tree = ryml.parse_in_arena(src)
tree.resolve()

Removing the V in B resolves the issue

@biojppm
Copy link
Owner

biojppm commented Jul 11, 2022

Thanks for reporting. Expect some time before this is looked at.

NaN-git pushed a commit to NaN-git/rapidyaml that referenced this issue Dec 6, 2022
NaN-git pushed a commit to NaN-git/rapidyaml that referenced this issue Dec 6, 2022
NaN-git pushed a commit to NaN-git/rapidyaml that referenced this issue Dec 7, 2022
biojppm pushed a commit to NaN-git/rapidyaml that referenced this issue Dec 7, 2022
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