jwiegley / ledger
- Source
- Commits
- Network (14)
- Issues (1)
- Downloads (26)
- Wiki (5)
- Graphs
-
Branch:
master
-
Computed virtual transaction wrong with european comma syntax
1 comment Created about 1 month ago by afhWhen computing the value for a virtual transaction using european decimal notation (e.g. 0,10)
the result differs when using the dot notation (e.g. 0.10).See http://gist.github.com/229540 for details
Comments
-
Error: std::bad_cast when running reg or reg income on doc/sample.dat
3 comments Created about 1 month ago by afhHi,
when adding an account name to reg or bal commands, e.g.ledger reg income
ledger version jwiegley/ledger@3f00f83 quits with:
Error: std::bad_castSee http://gist.github.com/228620 for sample session using doc/sample.dat
Comments
I'm unable to reproduce this here. Can you roll back to HEAD^ or HEAD^^ and see if it still happens for you?
Yes, I was able to reproduce the error with HEAD^ and HEAD^^.
I resolved the error by using a different variant of the boost MacPort.
With
boost @1.40.0_1+debug+python26+stthe error occurs,
usingboost @1.40.0_1+python26ledger works just fineSee file 'Resolved: Ledger next-0-g3f00f83 issue' in http://gist.github.com/228620 for details
-
assertion fail when running 'ledger b =a' on doc/sample.dat
1 comment Created about 1 month ago by gfuchedzhy -
segfault on commit 0cb80a51ea2d64e2069d6ef9d3a42a0996b73c88
4 comments Created 2 months ago by gfuchedzhyHi. If input file for ledger contains something like(follow the link):
http://gist.github.com/223694I got a segfault.
Comments
Can you tell me what command you used? I see an error report here.
gfuchedzhy
Mon Nov 02 02:52:55 -0800 2009
| link
Oh, sorry, this is copy/paste error. Try this one with any command(bal, reg...)
http://gist.github.com/224083Difference between them is number of spaces between account name and amount of money.
this has happened because I've tried to insert file content directly in the post, several times(copied this text here and there several times), but failed to do so
I'm still not seeing any segfault. I get "Error: Transaction does not balance".
Can you tell me which build options you use?
-
The budget command behaves slightly different than I would expect
for parent accounts. Here is example output:% ledger budget -p this --effective --flat food $ 490.46 $ 925.00 $ -434.54 53% Expenses:Food $ 361.11 $ 325.00 $ 36.11 111% Expenses:Food:Groceries $ 129.35 $ 100.00 $ 29.35 129% Expenses:Food:Out ------------ ------------ ------------ ----- $ 490.46 $ 925.00 $ -434.54 53%The relevant journal context:
~ Monthly Expenses:Food $ 500.00 Expenses:Food:Out $ 100.00 Expenses:Food:Groceries $ 325.00 AssetsIt looks like :Food gets added to its children instead of picking
up the slack. If I remove the children and let the parent
provide a budget for it and its descendants, I get nothing.~ Monthly Expenses:Food $ 500.00 Assets % ledger budget -p this --effective --flat food 0 $ 500.00 $ -500.00 0 Expenses:FoodThat's on the same journal data. I expected:
% ledger budget -p this --effective --flat food $ 490.46 $ 500.00 $ -9.54 98% Expenses:FoodComments
The first part, about ":Food gets added to its children" is expected behavior. You have one budget for general food expenses, and then two separate budgets for eating out and groceries. There is no way to have both specific and general budgets.
As for the second part, I will research it.
Another great find, drewr. The second part of this bug is fixed.
-
Since Ilm behind a corp firewall, my attempt to clone ledger produced the following:
It seemed to be working at first.bash>git clone http://github.com/jwiegley/ledger.git
Initialized empty Git repository in /home/dias/Mystuff/Emacs/downloads/ledger/.git/
got f35bc93
walk f35bc93
got 9592bac
got a0f4df2
Getting alternates list for http://github.com/jwiegley/ledger.git
Getting pack list for http://github.com/jwiegley/ledger.git
Getting index for pack c04ce24
Getting index for pack 70a37be
got 1695a64
got 3121992
got 6b2964d
Getting pack c04ce24
which contains ba21d2e error: Unable to get pack file http://github.com/jwiegley/ledger.git/objects/pack/pack-c04ce24d7b726a755985361d0b4dc55c415d63d6.pack
The requested URL returned error: 502
error: Unable to find ba21d2e under http://github.com/jwiegley/ledger.git
Cannot obtain needed object ba21d2e
while processing commit f35bc93.
fatal: Fetch failed.
bash>Comments
-
I have a budget transaction like this:
~ Monthly Expenses:Auto:Fuel $ 120.00 Expenses:Food:Out $ 100.00 Expenses:Food:Groceries $ 350.00 AssetsIt doesn't, however, seem to take effect with
--budget:% ledger bal --p this --flat auto:fuel food:out $ 67.15 Expenses:Auto:Fuel $ 18.30 Expenses:Food:Out -------------------- $ 85.45 % ledger bal --p this --budget --flat auto:fuel food:out $ 67.15 Expenses:Auto:Fuel $ 18.30 Expenses:Food:Out -------------------- $ 85.45 % ledger --version | head -1 Ledger next-0-g752677e, the command-line accounting toolIncidentally, it would be great to see something like:
% ledger bal --p this --budget auto:fuel food:out $ 67.15 $ 120.00 $ -52.85 56% Expenses:Auto:Fuel $ 18.30 $ 100.00 $ -81.70 18% Expenses:Food:Out $ 85.45 $ 220.00 $ -134.55 39% TotalComments
This was a great bug, and an even better feature suggestion. I think it can be implemented solely in terms of value expression (i.e., no new coding). I'm going to give it a try, and if it works, I'll make it the default display for "bal --budget".
-
% git log -1 commit <a href="/jwiegley/ledger/commit/f35bc939c96c3a3bf09c5881d638b5ba60449c03">f35bc93</a> Author: John Wiegley <johnw@newartisans.com> Date: Sun Oct 11 14:07:55 2009 -0400 Added a note about "acprep update" to README % more ~/.ledgerrc --date-format %Y/%m/%d % ./ledger reg -p this grocer | head -1 09-Oct-02 Kroger Expenses:Food:Groceries $ 38.63 $ 38.63 % ./ledger reg --date-format %Y/%m/%d -p this grocer | head -1 2009/10/02 Kroger Expenses:Food:Groceries $ 38.63 $ 38.63Comments
-
Latest build of next f35bc939 produces slow binary
4 comments Created 2 months ago by drewrLatest build takes 8s for a simple bal:
% ledger --version | head -1 Ledger next-0-g752677e, the command-line accounting tool % time ledger bal -p this --no-total grocer $ 147.36 Expenses:Food:Groceries ledger bal -p this --no-total grocer 0.90s user 0.04s system 98% cpu 0.947 total % ~/tmp/src/ledger/ledger --version | head -1 Ledger next-0-gf35bc93, the command-line accounting tool % time ~/tmp/src/ledger/ledger bal -p this --no-total grocer $ 147.36 Expenses:Food:Groceries ~/tmp/src/ledger/ledger bal -p this --no-total grocer 7.83s user 0.08s system 98% cpu 8.001 totalComments
Can you run with "--verbose", which will show me how much time each piece is taking?
% ./ledger bal --verbose -p this --no-total grocer 0ms [INFO] Ledger starting 2ms [INFO] Parsing file '/Users/aar/.ledgerrc' 2ms [INFO] Parsing file '/Users/aar/.ledger' 7874ms [INFO] Read journal file (7871ms) 7874ms [INFO] Found 5721 transactions $ 147.36 Expenses:Food:Groceries 8274ms [INFO] Finished executing command (399ms) 8274ms [INFO] Ledger ended % ./ledger --version | head -1 Ledger next-0-gf35bc93, the command-line accounting toolThis sounds like a consequence of how I'm using Boost's time_facet logic. I'll have to optimize.
-
ledger bal --flat --display 'depth <= 2' fails to show any accounts
2 comments Created 2 months ago by jwiegleyIt works fine without --flat, but not with.
Comments
-
The quantity is printed slightly wrong:
% cat <<EOF | ledger -f - print 2009/10/09 Foo Expenses:Bar $ 10.00 Expenses:Baz $ 12.00 Assets:Checking $ -22.00 EOF 2009/10/09 Foo Expenses:Bar $ 10.00 Expenses:Baz $ 12.00 Assets:Checking $ -22.00Comments





Fixed in the next branch.