-
Notifications
You must be signed in to change notification settings - Fork 5
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
Some failing cases and test notes #1
Comments
Not the maintainer, just a random guy, but this is not valid in ledger. It has to be 2 spaces or one tab. |
Can confirm the above: account names can have single spaces in them, so a single space is not a sufficient separator. |
Hi. Yes, you're both right that single space s not a valid row.
|
Thank you very much for your time and effort to report issues. See comments below
I am not sure which version you have tested because I commit almost daily, but please test it again, because comments should work, at least now.
This is true, I will add support for that soon. I add this to the Todo section
Yes, one of the major reasons I have started acc. Ledger is not really maintained anymore and hledger does not want to add support for expressions
I fixed that issue. I have forgotten the use-case when you do not add a commodity/currency. In the previous version, you had to use a commodity and amount or leave both empty. Now commodity is optional and an empty posting is empty when it has no amount.
Thanks for the report. I have added an error message to cover situations when a line is not recognized.
Fixed
Fixed
I will add support for that soon. Added to Todo section
Like tbm and Shadow53 mentioned, its not a valid ledger format. What should happen when someone wants to name an account "Test $1900.00"? Should this be allowed or not? But I see later that this was the argument for you.
The reason for that is an issue with a library that I use internally. See rust-num/num-rational#10 You see in the report that it formats decimals wrong. Its the first time I have to notice it. I need to do some research if nothing else works I will replace the library with something better or develop my own version since it just converts numbers into rationals to calculate them probably (avoiding rounding errors) and print them, something I can write myself if needed.
I hope it works not. Please test it again, I did and I get an Error
because he recognizes it as two empty posts. |
Hey @rudolfschmidt Thank you for taking a look at the report. I'm not sure what you mean by "Ledger is not really maintained anymore". Last commit was 5 days ago and last release was in May, but I am happy to have more options. |
you are welcome, the main maintainer john w. said that he is not interested to develop ledger anymore, so the project is not really in development anymore. |
All the mentioned bugs should be fixed. Please open a new issue if your bugs still exist (in dev version). |
Hey, just wanted to share my notes from quick testing the tool.
I ran it against one of my ledger files since the README states that acc uses the ledger format.
Here are some failing test cases:
No currency
Two trailing spaces on the last line
Suffix currency
Single space between account and currency:
The report looks a bit strange in this case:
Cheers!
The text was updated successfully, but these errors were encountered: