Thanks for the hint. I tried your suggestion and get the same error, except with the tilde replacing the excl. point in the error message.
After some more searching I see that back in Feb. of 2018 uses of gnucash’s sprintf were converted to guile’s format function. Looking at guile’s format doc it does look like the tilde is necessary to indicate that what follows is a formatting string, so that reinforces what you said. I also see in taxtxf.scm some uses of “format” as a variable. I have not had a chance yet to see if a “format” variable might be overriding the “format” function in the context at line 590 but I might try that next. Or if there are other suggestions as to what else I can try… Thanks. - Tim > On Dec 31, 2018, at 7:05 PM, Christopher Lam <christopher....@gmail.com> > wrote: > > Try digging into Gnucash.app and find taxtxf.scm > > Then find "!0,2f" in line 590 and replace it with "~0,2f" > > On 1/1/19 3:40 am, Tim Quinn wrote: >> I’m on a Mac with High Sierra. Using either GnuCash 3.4+ (downloaded 30 Dec >> 2018) or 3.3 trying to export the tax report in TXF format crashes GnuCash. >> >> The debugger output is below. Is anyone else seeing anything similar? >> >> I have not seen anything on the mailing list or in the bug database. >> >> Thanks. >> >> - Tim >> >> Backtrace: >> 7 (apply-smob/1 #<catch-closure 1179a0320>) >> In taxtxf.scm: >> 2997:42 6 (generate-tax-schedule _ _ _ #f "/Users/tim/Documents/S…") >> In srfi/srfi-1.scm: >> 592:29 5 (map1 ((("") ("1") ("") ("N000") ("Expenses:Taxes") …) …)) >> 592:29 4 (map1 ((("Sched C") ("1") ("1") ("N293") ("Income") …) …)) >> 592:17 3 (map1 ((("Sched C") ("1") ("1") ("N293") ("Incom…") …) …)) >> In taxtxf.scm: >> 2335:36 2 (handle-tax-code _) >> 590:37 1 (render-txf-account _ -24595/4 #f _ #t _ _ N293 "1" "F…" …) >> In unknown file: >> 0 (_ #f "!0,2f" 6148.75) >> >> ERROR: Wrong type to apply: 1 >> >> _______________________________________________ >> gnucash-user mailing list >> gnucash-user@gnucash.org >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> If you are using Nabble or Gmane, please see >> https://wiki.gnucash.org/wiki/Mailing_Lists for more information. >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. > _______________________________________________ > gnucash-user mailing list > gnucash-user@gnucash.org > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > If you are using Nabble or Gmane, please see > https://wiki.gnucash.org/wiki/Mailing_Lists for more information. > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.