-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
Problem : Parser errors are not informative. #402
Comments
Agreed, thanks. |
I started using timedot format and created a new file with contents : but i got error - |
That looks strange. I can't reproduce here with hledger 1.2.. |
@crocket I agree that errors sometimes quiet hard to understand because of excessive backtracking in journal parser. Note that it is hard to identify "not supported" because it means that we should already partially support that sub-directive in parser. On the other hand most of the parser able to generate meaningful error message with their expectations. Example:
|
With newer
|
Effectively improves error reporting for directives. Resolves simonmichael#402
Effectively improves error reporting for directives. Resolves #402
The specific error reported by this issue has been improved: #640 (comment) |
When I parse the above journal with hledger, it should report that
note
is not a supported subdirective of commodity directive.Instead, the parser reports the following error.
The same happens when
account
directive contains unsupported subdirectives and when the end of a journal file is not a new line. When the end of a journal file is not a newline, the parser reports an error at the beginning of the last transaction or any last directive.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: