Hello! I've been hitting an assertion when experimenting with register formats:

$ ledger --file finance.dat reg -F '%12(total)'
Error: Assertion failed in "/build/ledger-SR1_DQ/ledger-3.1.3/src/unistring.h", 
line 72:ledger::unistring::unistring(const string&): len < 1024

It is probably because I was trying to record the purchase of some stock,
followed by some automatic dividend reinvestments, like this (numbers made up):

2023/01/01 Opening Balances
    Assets:Investments:Brokerage  10 ABC @ $1
    Assets:Investments:Brokerage  20 DEF @ $150.10
    Assets:Investments:Brokerage  20 DEF @ $155.10
    Assets:Investments:Brokerage  20 DEF @ $160.10
    Assets:Investments:Brokerage  0.555 DEF @ $139.86
    Assets:Investments:Brokerage  0.555 DEF @ $105.38
    Assets:Investments:Brokerage  0.555 DEF @ $106.03
    Assets:Investments:Brokerage  0.555 DEF @ $100.43
    Assets:Investments:Brokerage  0.555 DEF @ $110.43
    Assets:Investments:Brokerage  0.555 DEF @ $167.84
    Assets:Investments:Brokerage  0.555 DEF @ $154.28
    Assets:Investments:Brokerage  0.555 DEF @ $137.87
    Assets:Investments:Brokerage  0.555 DEF @ $167.62
    Assets:Investments:Brokerage  0.555 DEF @ $103.49
    Assets:Investments:Brokerage  0.555 DEF @ $183.88
    Assets:Investments:Brokerage  0.555 DEF @ $164.78
    Assets:Investments:Brokerage  0.555 DEF @ $124.15
    Assets:Investments:Brokerage  0.555 DEF @ $189.91
    Assets:Investments:Brokerage  0.555 DEF @ $165.80
    Assets:Investments:Brokerage  0.555 DEF @ $172.87
    Assets:Investments:Brokerage  0.555 DEF @ $152.30
    Assets:Investments:Brokerage  0.555 DEF @ $175.06
    Assets:Investments:Brokerage  0.555 DEF @ $140.07
    Assets:Investments:Brokerage  0.555 DEF @ $321.53
    Assets:Investments:Brokerage  0.555 DEF @ $173.77
    Assets:Investments:Brokerage  0.555 DEF @ $183.37
    Assets:Investments:Brokerage  0.555 DEF @ $159.54
    Assets:Investments:Brokerage  0.555 DEF @ $107.77
    Assets:Investments:Brokerage  0.555 DEF @ $122.80
    Assets:Investments:Brokerage  0.555 DEF @ $139.38
    Assets:Investments:Brokerage  0.555 DEF @ $134.81
    Assets:Investments:Brokerage  0.555 DEF @ $177.23
    Equity:Opening Balances

Maybe this is not the intended solution, should I just average the cost basis 
and record it as one big lot?

Thanks, Tavis.

-- 
 _o)            $ lynx lock.cmpxchg8b.com
 /\\  _o)  _o)  $ finger tav...@sdf.org
_\_V _( ) _( )  @taviso

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/tqqjrd%2417f3%241%40ciao.gmane.io.

Reply via email to