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

[BUG] Dropped items when sequencing in a specific way #156

Closed
j-mie6 opened this issue Jan 30, 2023 · 0 comments · Fixed by #157
Closed

[BUG] Dropped items when sequencing in a specific way #156

j-mie6 opened this issue Jan 30, 2023 · 0 comments · Fixed by #157
Labels
bug Something isn't working patch This change doesn't affect the API urgent This bug causes parsers to not perform correctly.

Comments

@j-mie6
Copy link
Owner

j-mie6 commented Jan 30, 2023

Description

If a bunch of sequences are aligned in a specific way, one of the sub parsers is dropped (in this case, the 4th)

Reproduction Steps

val bug = ((item <* item) *> (item <* item)) <* (item <* item)

Expected behavior

Should parse 6 items in a row, actually only parses 5.

Additional context

Parsley Version: 4.2.1
Scala Version: 2.13.10

Thanks to Mithun Sri, Devin Fernando, Shweta Banerjee, and Taeho Kim for identifying this bug.

@j-mie6 j-mie6 added bug Something isn't working patch This change doesn't affect the API urgent This bug causes parsers to not perform correctly. labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch This change doesn't affect the API urgent This bug causes parsers to not perform correctly.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant