Stats Report Failure

23 views
Skip to first unread message

Jasel17212

unread,
Jan 30, 2023, 6:49:55 PM1/30/23
to Ledger
John / Martin - I've noticed that running the stats report fails when I have an automatic transaction configured.

Is this a bug? Other than commenting out the automatic transaction, is there a workaround?

Version
Ledger 3.2.1-20200518

Command
ledger -f ./register.ldg stats

Result
Error: Assertion failed in "/usr/src/debug/ledger/ledger-3.2.1/src/post.cc", line 109:virtual ledger::date_t ledger::post_t::primary_date() const: xact

Automatic Transaction
= /^Income:/                  
  (Liabilities:Tithe)     0.10


Thanks
JL

Martin Michlmayr

unread,
Jan 30, 2023, 10:01:42 PM1/30/23
to ledge...@googlegroups.com
* Jasel17212 <ja...@thelittonfamily.com> [2023-01-30 15:49]:
> Is this a bug? Other than commenting out the automatic transaction, is
> there a workaround?

That looks like: https://github.com/ledger/ledger/issues/2079

I'm not aware of a workaround.

--
Martin Michlmayr
https://www.cyrius.com/

John Wiegley

unread,
Feb 3, 2023, 1:42:53 PM2/3/23
to Jasel17212, Ledger
>>>>> "J" == Jasel17212 <ja...@thelittonfamily.com> writes:

J> Is this a bug? Other than commenting out the automatic transaction, is
J> there a workaround?

Any assertion failure is always a bug.

John

Martin Michlmayr

unread,
Feb 4, 2023, 1:50:54 AM2/4/23
to ledge...@googlegroups.com, ja...@thelittonfamily.com
* Jasel17212 <ja...@thelittonfamily.com> [2023-01-30 15:49]:
> John / Martin - I've noticed that running the stats report fails when I
> have an automatic transaction configured.

Do you have a test case you can add to https://github.com/ledger/ledger/issues/2079
Reply all
Reply to author
Forward
0 new messages