2022-04-07 GnuCash IRC logs

00:24:59 *** chris has joined #gnucash
00:24:59 *** ChanServ sets mode: +v chris
00:24:59 *** gncbot sets mode: +o chris
01:06:15 *** Pegasus_RPG has quit IRC
01:13:04 *** frakturfreak1 has quit IRC
01:15:20 *** fell has quit IRC
01:16:39 *** fell has joined #gnucash
01:16:39 *** ChanServ sets mode: +o fell
01:16:44 *** Pegasus_RPG has joined #gnucash
01:26:00 *** sbluhm has joined #gnucash
01:27:44 *** frakturfreak1 has joined #gnucash
01:28:09 *** Pegasus_RPG has quit IRC
01:52:15 *** sbluhm has quit IRC
02:01:57 *** sbluhm has joined #gnucash
03:03:08 *** theofpa has joined #gnucash
03:09:33 *** Hamaryns has joined #gnucash
03:09:33 *** ChanServ sets mode: +v Hamaryns
03:16:57 *** osopolar has joined #gnucash
03:18:32 *** osopolar has quit IRC
03:41:24 *** jmdaemon has joined #gnucash
04:09:57 *** tomk_dk has joined #gnucash
04:13:32 *** theofpa has quit IRC
04:21:27 *** sbluhm has quit IRC
04:56:37 *** sbluhm has joined #gnucash
04:58:25 *** jmdaemon has quit IRC
05:02:04 *** jmdaemon has joined #gnucash
05:26:37 *** sbluhm has quit IRC
05:36:18 *** sbluhm has joined #gnucash
05:58:05 *** jmdaemon has quit IRC
05:59:53 *** storyjesse has joined #gnucash
06:06:56 *** Hamaryns has quit IRC
06:21:17 *** sbluhm has quit IRC
06:34:45 *** User has joined #gnucash
06:54:34 *** osopolar has joined #gnucash
07:04:40 *** sbluhm has joined #gnucash
07:04:44 *** osopolar has left #gnucash
07:22:51 *** theofpa has joined #gnucash
08:08:19 *** Brixnmorta has joined #gnucash
08:11:37 *** paul has joined #gnucash
08:40:39 *** sbluhm has quit IRC
08:50:30 *** sbluhm has joined #gnucash
08:53:16 *** Jimraehl1 has joined #gnucash
09:21:19 *** sbluhm has quit IRC
09:30:44 *** sbluhm has joined #gnucash
09:39:22 *** storyjesse1 has joined #gnucash
09:39:45 *** storyjesse has quit IRC
09:45:43 *** sbluhm has quit IRC
10:18:09 *** tomk_dk has quit IRC
10:33:42 *** theofpa has quit IRC
10:49:11 *** Pegasus_RPG has joined #gnucash
11:20:40 *** Pegasus_RPG has quit IRC
11:57:10 *** Pegasus_RPG has joined #gnucash
12:12:24 *** kyew has quit IRC
12:14:17 *** kyew has joined #gnucash
12:14:17 *** ChanServ sets mode: +v kyew
12:26:21 *** CDB-Man_ has joined #gnucash
12:26:21 *** ChanServ sets mode: +v CDB-Man_
12:28:38 *** CDB-Man has quit IRC
12:41:34 *** sbluhm has joined #gnucash
12:45:07 *** ArtGravity has joined #gnucash
12:45:08 *** ChanServ sets mode: +v ArtGravity
12:51:19 <ArtGravity> I have a question that came to me from a new user of GnuCash that I don't know the answer to. He asks how to change the data file location. I found the wiki page the describes the locations, but don't see anything that answers his question. I have been running my GnuCash on mysql for nearly a decade, so I haven't spent any time concerned with the data file location.
13:16:48 <jralls> ArtGravity: File>Save As then delete the old one or move the file using the OS's file management facilities and then GnuCash's File>Open to open it in the new location.
14:04:16 *** guak has joined #gnucash
14:06:11 *** jmdaemon has joined #gnucash
14:22:04 *** sbluhm has quit IRC
14:39:08 *** Piko has joined #gnucash
15:11:19 *** mydogsnameisrudy has joined #gnucash
15:40:38 *** mydogsnameisrudy has joined #gnucash
15:41:14 *** mydogsnameisrudy has quit IRC
17:17:12 *** User has quit IRC
17:23:45 *** Pegasus_RPG has quit IRC
17:29:26 *** field^Mop has joined #gnucash
17:35:26 *** field^Mop has quit IRC
17:57:17 *** jmdaemon has quit IRC
18:00:57 *** jmdaemon has joined #gnucash
18:03:27 *** David has quit IRC
18:03:37 *** David has joined #gnucash
18:27:06 <fell> jralls, I have a problem with your last commit:
18:27:08 <fell> /home/frank/git/gnucash/src/maint/gnucash/import-export/aqb/gnc-ab-utils.c:96:15: error: return type defaults to ‘int’ [-Werror=implicit-int]
18:27:10 <fell> 96 | static inline is_leap_year (int year)
18:27:11 <fell> | ^~~~~~~~~~~~
18:27:13 <fell> /home/frank/git/gnucash/src/maint/gnucash/import-export/aqb/gnc-ab-utils.c: In function ‘gnc_gwen_date_to_time64’:
18:27:14 <fell> /home/frank/git/gnucash/src/maint/gnucash/import-export/aqb/gnc-ab-utils.c:114:66: error: ‘?:’ using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Werror=int-in-bool-context]
18:27:16 <fell> 114 | if (month == 2 && day <= 30 && day > is_leap_year(year) ? 29 : 28)
18:27:17 <fell> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
18:30:16 *** Pegasus_RPG has joined #gnucash
18:39:53 <jralls> fell, yup, should be static inline gboolean is_leap_year (int year)
19:02:52 <jralls> fell, fixed.
19:03:17 <fell> thanks!
19:34:44 *** storyjesse has joined #gnucash
19:57:56 <chris> jralls: every reference says std:accumulate comes from <numeric>
19:58:10 <chris> iwyu shows a *lot* of errors in code
20:00:27 <chris> eg qofutil.h has include "qofutil.h"
20:01:55 <jralls> chris, OK, then include <numeric> instead of <algorithm>. Just don't rely on something else like gnc_numeric.h to include it.
20:02:07 <jralls> > eg qofutil.h has include "qofutil.h"
20:03:11 <jralls> Gotta love a recursive include! :-/ Anyway, I'm not surprised that there's a lot even without the dumb things like that.
20:05:05 <jralls> 25 years of doing things over yields lots of includes that aren't needed anymore but somehow never got cleaned up, and it used to be normal practice to rely on chains of includes.
20:05:34 <jralls> Then there are things like qof.h. No doubt iwyu doesn't like that one bit.
20:07:58 <jralls> > Gotta love a recursive include!
20:07:58 <jralls> Take out the include guards and see if the compiler runs out of stack and crashes. ;-)
20:15:41 <chris> iwyu still struggles because "gnc-vcs-info.h" is defined dynamically and it cannnot cope
20:24:10 *** gncbot has joined #gnucash
20:24:16 *** jralls sets mode: +o gncbot
20:24:31 *** David has joined #gnucash
20:28:03 <chris> re: qof-book-set/get-option i think hash-table<->KvpFrame and GLIST<->list is more elegant
20:32:12 *** gncbot has joined #gnucash
20:33:13 <jralls> Is one of those backwards? IOW do you mean SCM hash-table <-> KVPFrame and SCM list <-> KVPValue:GList?
20:33:19 *** jralls sets mode: +o gncbot
20:37:13 <jralls> s/KVPValue:GList/KvpValue<GList>/
20:50:48 *** guak has quit IRC
21:04:41 <chris> correct
21:08:35 <jralls> I get the SCM list ,-> KvpValue<GList>, that's an obvious mapping. But why do you like a hash-table better than an alist for a KVP Frame?
21:08:37 <chris> iow #1311 is done
21:09:09 <chris> better than KvpFrame==list-of-pairs and GLIST==vector
21:10:28 <jralls> I did wonder about the vector. But what's wrong with list-of-pairs, especially since you could have nested frames?
21:18:27 <chris> a hash-table offers guarantee that there are no duplicate keys
21:19:02 <chris> at the cost of more opaque structure from guile
21:19:28 <chris> the last commit #1311 does the modification.
21:19:30 <chris> anyway. GTG.
21:19:50 <jralls> OK, Bye.