-
Notifications
You must be signed in to change notification settings - Fork 368
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
Conditions followed by single EOL failed to be processed #4988
Comments
I think I'm hitting this issue at the moment building a new project template in ASP.NET Core 8. The |
Having it too with the YAML file. dotnet sdk 7. |
Examples:
Some notes:
The case happens when condition is false and ends with empty line.
Then in
ProcessorState.Run
duringHandleMatch
for condition the buffer is moved to the end, however notOldestRequiredSequenceNumber
forTrieEvaluation.
Due to this, buffer advancing logic proceeds only to
OldestRequiredSequenceNumber
with offset which is afterif condition
.The
endif
is getting processed once again as unbalanced condition and gets output.The fix is potentially "accepting" or "finalizes matches" after
HandleMatch
is done, so last known sequence number is updated and double processing does not happen. Then buffer will be updated to the end and processing stops. After "false" condition branch anyway doesn't make sense to process the open tries. As section is skipped, they won't be matched.The text was updated successfully, but these errors were encountered: