-
-
Notifications
You must be signed in to change notification settings - Fork 346
See if gix-object/verbose-object-parsing-errors
can include more parsing state like with nom
#1099
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
A There are a couple ways to go on this
For me, the question is on expectation for |
Thanks for chiming in and for all your help!
Highest PerformanceWhat's confusing me here is that it looks like it's getting the input passed, via Medium PerformanceI can imagine what the difference is in usability compared to the highest-performance version. The way I remember the Lowest PerformanceI have tried the
I'd want to be able to use it in the production binary if fast enough - parsing is not usually a bottleneck right now so that might even be possible. If not, it's fine to let people compile a special binary. Right now, from what I see, |
This is separate from the |
In #1096 we saw the verbose errors with
nom
would yield information about the current location of the cursor like this:Seeing this might be useful for debugging.
When looking at code like this…
https://github.com/Byron/gitoxide/blob/5d78ab3d9e1f447f57a551561b0e773ea68b4d9a/gix-object/src/tree/ref_iter.rs#L70-L75
…it appears the cursor is passed to the error, but when displaying it, it appears completely empty:
https://github.com/Byron/gitoxide/blob/5d78ab3d9e1f447f57a551561b0e773ea68b4d9a/gix-object/tests/tree/mod.rs#L116-L120
Now I wonder if this is intentional, or if there is anything that can be done to get the 'auto-context' back.
Thanks @epage for sharing your insight.
Follow-up of #1098.
The text was updated successfully, but these errors were encountered: