You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
When parser fails, error message contains the whole content of the file starting where the error occurred. When parsing a long beancount ledger, the error message is huge. I would like to suggest trimming the error message (the fragment part) to only include the part up to the next new line (or maybe just one or two next linues).
The text was updated successfully, but these errors were encountered:
Indeed when formating the error for debug, it was printing the full remaining input. I just changed the behavior it is now fixed in 1.0.0-alpha.7. Now the error only prints the line number.
This is not the end of the story though, as I plan to improve further the usefulness of error messages: jcornaz/beancount-parser#41.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When parser fails, error message contains the whole content of the file starting where the error occurred. When parsing a long beancount ledger, the error message is huge. I would like to suggest trimming the error message (the
fragment
part) to only include the part up to the next new line (or maybe just one or two next linues).The text was updated successfully, but these errors were encountered: