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). 



On Saturday, November 30, 2019 at 11:02:12 PM UTC, dim wrote:
>
> Indeed it seems a length issue. Splitting the output in two and adding a 
> balance account works. 
>
> On Friday, November 29, 2019 at 11:16:38 AM UTC, dim wrote:
>>
>> 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*
>>
>> l*edger -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
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/2049c9dd-26c7-4b69-83bb-10d738ff66ba%40googlegroups.com.

Reply via email to