2022-10-11 GnuCash IRC logs

00:40:03 *** NoobAlice has quit IRC
01:26:58 *** gjanssens has joined #gnucash
01:26:58 *** ChanServ sets mode: +o gjanssens
01:39:41 *** Guest35331 has quit IRC
01:51:56 *** fell has quit IRC
01:53:13 *** fell has joined #gnucash
01:53:13 *** ChanServ sets mode: +o fell
02:49:54 *** Gandalf has joined #gnucash
04:18:35 *** dpchr has joined #gnucash
04:18:35 *** ChanServ sets mode: +v dpchr
05:14:59 *** chipxxx has joined #gnucash
05:24:59 *** bertbob has quit IRC
05:27:09 *** bertbob has joined #gnucash
05:27:09 *** ChanServ sets mode: +v bertbob
05:29:39 *** David has quit IRC
05:29:47 *** David has joined #gnucash
09:38:37 *** chipxxx has quit IRC
10:44:09 *** guak has joined #gnucash
10:45:46 *** sbluhm has quit IRC
10:52:08 *** Gandalf has quit IRC
11:00:54 *** ArtGravity has joined #gnucash
11:00:54 *** ChanServ sets mode: +v ArtGravity
11:59:02 *** Ragnor has joined #gnucash
11:59:03 *** ChanServ sets mode: +v Ragnor
12:21:58 *** chipxxx has joined #gnucash
12:54:10 *** Gandalf has joined #gnucash
13:09:37 *** sbluhm has joined #gnucash
13:23:52 *** sbluhm has quit IRC
13:30:00 *** sbluhm has joined #gnucash
14:18:11 *** Gandalf has quit IRC
14:44:16 *** sbluhm has quit IRC
14:54:53 *** chipxxx has quit IRC
15:03:23 *** sbluhm has joined #gnucash
15:21:23 *** sbluhm has quit IRC
16:12:13 *** NoobAlice has joined #gnucash
16:12:13 *** ChanServ sets mode: +v NoobAlice
16:19:42 *** Raigedas has joined #gnucash
16:26:05 *** ChanServ sets mode: +v Raigedas
16:26:52 *** Raigedas has left #gnucash
16:26:59 *** Raigedas has joined #gnucash
16:26:59 *** ChanServ sets mode: +v Raigedas
16:28:38 *** jralls has joined #gnucash
16:28:38 *** ChanServ sets mode: +o jralls
16:29:03 <jralls> .
16:29:03 <gncbot> jralls: Sent 1 week, 0 days, 20 hours, and 39 minutes ago: <chris> finally tests are ok see unfortunate hack about qof_init
16:29:04 <gncbot> jralls: Sent 1 week, 0 days, 20 hours, and 38 minutes ago: <chris> without qof the USD won't register its NS as CURRENCY
16:29:05 <gncbot> jralls: Sent 1 week, 0 days, 20 hours, and 37 minutes ago: <chris> this is crucial to allow gnc_account_get_currency_or_parent to work
16:29:06 <gncbot> jralls: Sent 1 week, 0 days, 19 hours, and 13 minutes ago: <chris> ok looks like initializing qof and calling gnc_commodity_table_register () will load the iso currencies
16:29:07 <gncbot> jralls: Sent 2 days, 10 hours, and 29 minutes ago: <chris> I keep forgetting the exactly what is the holdup with guile on windows; https://packages.msys2.org/base/guile
16:29:08 <gncbot> jralls: Sent 2 days, 6 hours, and 31 minutes ago: <chris> https://pastebin.com/raw/eDGUiUMZ ?
16:29:09 <gncbot> jralls: Sent 1 day, 5 hours, and 26 minutes ago: <chris> GncNumeric needs some more methods: .is_positive() .is_negative() would be useful - `if (num > 0)` doesn't compile in itself
16:38:02 <jralls> chris, The comparison operators are with int64_t and an undecorated constant is an int32_t. Try `if (num > 0LL)`.
16:40:18 <jralls> chris Also the comparison operators are declared inline inline in gnc-numeric.hpp so make sure that you've got that included and that you're compiling C++. It isn't included via gnc-numeric.h!
16:41:04 <jralls> chris, for all of the other stuff last week can you please make them comments on the relevant code on the PR so I know what you're talking about?
16:41:46 <jralls> Meanwhile, going down for an OS upgrade, BIAB.
16:41:50 *** jralls has quit IRC
16:45:47 <Raigedas> hey. i was using gnucash with mysql for many years. now i need to migrate it to new computer. old computer with fedora 35 still has correctly working one (version 4.11). but i can not make it work on new computer with fedora 36, version 4.12. yes, i did install mysql client/libs (i have mysql available in "open" dialog). i copied all files ~/.local/share/gnucash to new pc and also gsettings/dconf for "/org/gnucash/". when i start gnucas
16:45:48 <Raigedas> h it seems to just stuck at some point on the splashscreen. i have enabled debug level for many areas but still do not see any errors. by the way, if i start gnucash without the history/file0 configs then it starts ok, but it stucks again if i then try to manually connect to mysql via the "open" dialog.
17:18:38 *** gjanssens has quit IRC
17:26:40 *** Ragnor has quit IRC
17:35:04 *** Ragnor has joined #gnucash
17:35:04 *** ChanServ sets mode: +v Ragnor
17:39:18 *** David has quit IRC
17:43:33 *** jralls has joined #gnucash
17:43:33 *** ChanServ sets mode: +o jralls
17:43:54 <jralls> .
17:56:08 <chris> jralls: the test issues (for #1442) from last week all fixed.
17:56:17 <jralls> OK/
17:56:35 <chris> What's remaining is #1442's googletest error
17:56:54 * chris considering whether to use GncNumeric for assistant-stock-transaction.cpp
17:59:29 <jralls> Depends on whether you need to customize rounding. If you don't then the code looks prettier because you can say a + b and d < e instead of gnc_numeric_add(a, b, GNC_DENOM_AUTO, GNC_RND_ROUND) and gnc_numeric_compare (d, e) < 0.
18:00:13 <chris> yeah
18:00:33 <chris> pity there's no xaccPrintAmount which takes a GncNumeric
18:02:19 <jralls> There is: xaccPrintAmount(static_cast<gnc_numeric>(f)). You could write a little inline print_numeric(gnc_numeric f) {} that does that.
18:03:00 <chris> nice
18:03:09 <jralls> Oops, print_numeric(GncNumeric f).
18:04:03 <chris> ok if gtest can be tamed in #1442 then it's all fixed
18:06:16 <jralls> Side issue, please name google test files gtest-foo instead of test-foo. We want to eventually convert all of the tests to googletest and that makes it easier to see which ones need converting.
18:15:36 <jralls> Maybe Ubuntu-18.04's googletest doesn't have INSTANTIATE_TEST_CASE_P either.
18:16:50 <chris> it's weird, just copy-paste from gtest-autoclear.cpp
18:29:28 <jralls> There's a typo: In line 256 you have Stock_AssistantTestStockAssistantTest but in 257 it's Stock_AssistantTestStock_AssistantTest.
19:06:49 <fell> Is wiki user Geoff around?
19:07:13 *** dpchr has quit IRC
19:13:14 <chris> oops thx
19:24:54 <fell> It seems he reverted his changes—and my too. :-(
19:29:21 *** timvosch has joined #gnucash
19:37:34 *** timvosch has quit IRC
19:40:02 *** timvosch has joined #gnucash
19:49:12 *** ChanServ sets mode: +v timvosch
19:50:42 <timvosch> Hey, I have created an invoice template with the jinja python example. I can get most of the required information, except for two items: my general business information (name, address, tax, etc) and the tax values on an invoice. The latter, I tried using invoice.GetTotalTaxList and (per entry) as entry.GetBalTaxValues. However, the former returns gnc_numeric (can get tax value but no idea what tax table or percentage belongs to it)
19:50:43 <timvosch> and the latter returns a tuple of gnc_commodity and gnc_numeric where again numeric is the tax value, but commodity seems irrelevant/incorrect. Any help would be greatly appreciated :)
19:52:51 <chris> jralls: https://pastebin.com/raw/mFzrL23j etc
19:53:08 <chris> ^ wrt 0LL
20:16:02 *** ArtGravity has quit IRC
21:05:22 *** guak has quit IRC
21:23:10 <chris> easiest to define a static const auto zero = GncNumeric(0) at the top
22:23:23 *** fell has quit IRC
22:26:40 *** fell has joined #gnucash
22:26:40 *** ChanServ sets mode: +o fell
22:37:16 *** Ragnor has quit IRC
22:37:29 *** Ragnor has joined #gnucash
22:37:29 *** ChanServ sets mode: +v Ragnor
23:44:50 *** Ragnor has quit IRC
23:47:20 *** Ragnor has joined #gnucash
23:47:20 *** ChanServ sets mode: +v Ragnor
23:59:39 *** FH_thecat has joined #gnucash