Error parsing equity report

31 views
Skip to first unread message

dim

unread,
Nov 29, 2019, 6:16:38 AM11/29/19
to Ledger
Hi,

I have some problems with ledger parsing its own equity report. Only in this specific case, usually there's no problem.

Commands:

ledger -f main.dat equity > equity.dat     /* create equity report

ledger -f equity.dat bal      /* bal or reg doesn't matter, same error
 
While parsing file "equity.dat", line 158:
Error: Assertion failed in "/build/ledger-2L3TES/ledger-3.1.1+dfsg1/src/error.cc", line 91:ledger::string ledger::source_context(const path&, istream_pos_type, istream_pos_type, const string&): len < 8192

$ ledger --version
Ledger 3.1.1-20160111, the command-line accounting tool

Line 158 is the last line, nothing special there. Is the file too long?


BR
Dimitri

dim

unread,
Nov 30, 2019, 6:02:12 PM11/30/19
to Ledger
Indeed it seems a length issue. Splitting the output in two and adding a balance account works.

dim

unread,
Nov 30, 2019, 6:17:46 PM11/30/19
to Ledger
It turns out that it's not the splitting the equity report that prevents the error when parsing the equity report again, it's the added balance account. When such an account is added ledger seems to use it to park the result of some rounding error (in my case $0.04).

henry atting

unread,
Dec 17, 2019, 9:06:33 AM12/17/19
to Ledger
`equity' never works as written in the manual. Every end of the year, when I want to archive the previous year, it try to follow exactly the steps proposed in the manual: I ever fail. Because of `equity` inconsistencies as it  seems. Then I always do the archiviing manually.

henry

Reply all
Reply to author
Forward
0 new messages