2020-03-30 GnuCash IRC logs

01:02:15 *** omnireq has joined #gnucash
01:04:22 *** omnireq has quit IRC
01:04:25 *** omnireq_ has joined #gnucash
01:14:55 *** Han has joined #gnucash
01:30:47 *** fell has quit IRC
01:32:06 *** fell has joined #gnucash
01:32:06 *** ChanServ sets mode: +o fell
01:41:22 *** sbluhm has joined #gnucash
01:41:22 *** ChanServ sets mode: +v sbluhm
02:01:13 *** omnireq_ has quit IRC
02:01:56 *** omnireq_ has joined #gnucash
02:20:55 *** Gerd has joined #gnucash
02:21:22 *** gjanssens has joined #gnucash
02:21:22 *** ChanServ sets mode: +o gjanssens
02:44:46 <gjanssens> Yay, the appdata fixes I did recently nicely reflect on the flathub page as of 3.9: https://flathub.org/apps/details/org.gnucash.GnuCash
02:44:46 <gncbot> gjanssens: Sent 11 hours and 10 minutes ago: <jralls> But the wiki says You can omit -c or -d if they are the same as -r, but always specify at least -r (as that will otherwise default to maint resulting in a development build or a tarball not found error). That certainly implies that the -r flag is what tells the build script that it should do a release build.
02:47:16 <gjanssens> jralls: I see the confusion. However what that was meant to imply was that the omission of '-r' would be equivalent to passing '-r maint'. And not specifying a tag but a branch will trigger a development build.
02:47:32 <gjanssens> I'll see how I can better formulate that.
03:06:17 *** Mechtilde has quit IRC
03:06:58 *** Mechtilde has joined #gnucash
03:16:31 *** jervin has joined #gnucash
03:17:23 *** jervin has quit IRC
03:49:13 *** omnireq_ has quit IRC
03:49:24 *** omnireq_ has joined #gnucash
03:58:32 *** Han_ has joined #gnucash
03:58:42 *** Han has quit IRC
04:05:44 <gjanssens> fell: my first new translatable string for 3.10 has been pushed. Hopefully this is soon enough ;-P
04:10:43 *** omnireq_ has quit IRC
04:10:54 *** omnireq_ has joined #gnucash
04:32:13 *** omnireq_ has quit IRC
04:32:24 *** omnireq_ has joined #gnucash
04:43:37 *** bertbob has quit IRC
04:46:52 *** Aussie_matt has quit IRC
04:56:00 *** JayC has quit IRC
04:56:24 *** JayC has joined #gnucash
04:56:24 *** ChanServ sets mode: +v JayC
05:06:47 <fell> Congrts, gjanssens. No new string, but an improvement from a translators view. But will it fit in the combo box?
05:12:20 <gjanssens> fell: it does. The combobox resizes as needed
05:22:39 *** bertbob has joined #gnucash
05:22:40 *** ChanServ sets mode: +v bertbob
05:47:50 *** Aussie_matt has joined #gnucash
05:49:06 *** fell has quit IRC
05:51:00 *** fell has joined #gnucash
05:51:00 *** ChanServ sets mode: +o fell
06:07:55 *** User has joined #gnucash
06:28:33 *** meudus has joined #gnucash
06:30:26 <meudus> Hello together, out of nowhere my GnuCash lost the import MT940 function, i couldnt find any update about it in the Update nodes. Is this something general or is it just my isntallation which seems to be messed up?
06:31:01 *** GnuCashUser1024 has joined #gnucash
06:31:42 *** GnuCashUser1024 has left #gnucash
06:35:44 *** ramontjunior has joined #gnucash
06:41:42 <fell> meudus, you would better ask on the mailing list I fear here are no MT9xx users.
06:43:24 <meudus> well i used it since years... its just missing in the menue... . My quetsion is simply is it just in my case or for evryone (version: Version: 3.8 Build ID: 3.8b+(2019-12-29) )
06:52:28 <fell> meudus, which distro?
06:54:29 <meudus> Manjaro so Arch-Linux Community repo
06:54:33 <fell> I heard recently, some distributions forgot to enable aqbanking support.
06:55:35 <meudus> oh i checked if it is installed but didn't check if it is enabled thx for the hint
06:55:45 <fell> https://bugs.archlinux.org/task/65294
06:59:33 <meudus> thx alot. That was the point :D sometimes its bad to be on top of upstream
07:03:52 <fell> Perhaps they should now ship gnucash3.9 with aqbanking 6.1.4, gwenhywfar-5.2.0 and libchipcard-5.1.5rc2
07:19:45 *** Agfarmer18 has joined #gnucash
07:24:06 *** Agfarmer18 has quit IRC
08:06:20 *** Aussie_matt has quit IRC
08:06:39 *** meudus has quit IRC
08:16:01 *** Gerd has quit IRC
08:39:50 *** lmat has quit IRC
08:40:55 *** lmat has joined #gnucash
09:02:02 <chris> anyone knows approximately when maint will be mothballed and master becomes the new maint?
09:13:27 *** Jimraehl1 has joined #gnucash
09:34:26 *** keiffer has joined #gnucash
09:51:14 *** lmat has quit IRC
09:54:13 *** omnireq_ has quit IRC
09:55:22 *** omnireq_ has joined #gnucash
09:59:20 *** lmat has joined #gnucash
10:10:37 *** sbluhm has quit IRC
10:16:13 *** omnireq_ has quit IRC
10:16:52 *** omnireq_ has joined #gnucash
10:27:18 *** lmat has quit IRC
10:27:56 *** lmat has joined #gnucash
10:53:14 <chris> warlord: would you mind explaining in simple terms the comment before gncOwner.c owner_from_lot "XXX: Yea, this is broken, but it should work fine for Queries. We're single-threaded, right?" -- is it still impossible to create a simple GncOwner* gncOwnerFromLot (lot) returning *gncOwner or NULL?
10:54:00 <warlord> chris, Give me a minute to look at the code and swap that back into RAM ;)
10:54:44 <chris> yeah untar as well :)
10:55:00 <warlord> LOL. Yeah.
10:55:09 <chris> simple: remember I am still not too clever with C's & and *
10:55:12 <warlord> Okay, so the issue is the "static GncOwner" that gets returned.
10:55:57 <warlord> So what's going on is that this function defines a static GncOwner object in the data portion of the application, and then it fills in the data and returns a pointer to the static object.
10:56:13 <warlord> If the function is called a second time, then the static object will be over-written.
10:56:34 <warlord> So if you're holding onto it, and then someone else calls the function, your data will be overwritten.
10:57:09 <warlord> This is why I say "we're single threaded", because in a single-threaded application you can call this API, then use the data, and you're safe.
10:57:20 *** Agfarmer18 has joined #gnucash
10:57:34 <chris> ok i got that (kinda) but whenever I tried to copycat it to create a gncOwner * gncOwnerFromLot (*lot), I can't do it
10:57:39 <warlord> BUt in a multi-threaded app, thread 1 could call this function, then thread 2 can call it (which will overwrite the data returned to thread 1) ... before thread 1 can use the results.
10:57:59 <warlord> What do you mean by "copycat it"?
10:58:18 *** jervin has joined #gnucash
10:58:34 <chris> i.e. create a simple function gncOwnerFromLot (lot) which returns NULL or gncOwner* - I always get a compilation error
10:59:23 <warlord> Why can't you use owner_from_lot() ?
10:59:54 <chris> well I want to expose it from guile; removing static means it doesn't compile
11:00:22 <chris> s/from/to
11:00:46 <warlord> Well, it wont compile if you remove the static because it's not declared in a .h file.
11:01:06 <warlord> What compilation error are you getting? You should literally be able to do:
11:01:38 <warlord> GncOwner* gncOwnerFromLot(GNCLot *lot) { return owner_from_lot(lot); }
11:01:48 <warlord> And declare gncOwnerFromLot in gncOwner.h
11:02:13 <warlord> NB that this has the same multi-threading issue that owner_from_lot has.
11:04:03 <chris> well, blow, it seems to work
11:05:06 <chris> maybe the next question is whether it's possible to fix it so that it doesn't return a static object? I guess the caller must then gncOwnerFree it afterwards?
11:05:14 <warlord> Correct
11:05:25 <warlord> You could do:
11:05:43 <warlord> GncOwner * owner = owner_from_lot(lot);
11:05:47 <warlord> if (owner) {
11:08:42 *** mauritslamers_ has joined #gnucash
11:08:42 *** ChanServ sets mode: +v mauritslamers_
11:08:47 *** ramontjunior has quit IRC
11:08:47 *** JayC has quit IRC
11:08:47 *** Mechtilde has quit IRC
11:08:47 *** chris has quit IRC
11:08:47 *** TownsendHardware has quit IRC
11:08:47 *** lagertonne has quit IRC
11:08:47 *** mauritslamers has quit IRC
11:08:47 *** jonas has quit IRC
11:08:47 *** ecdhe has quit IRC
11:08:47 *** warlord has quit IRC
11:08:47 *** waeking has quit IRC
11:08:47 *** Yotson has quit IRC
11:08:47 *** crossan007 has quit IRC
11:08:47 *** yyoshino has quit IRC
11:08:47 *** fiddlerwoaroof has quit IRC
11:08:47 *** Derperperd has quit IRC
11:08:47 *** mauritslamers_ is now known as mauritslamers
11:08:52 *** Simon has quit IRC
11:10:03 *** fiddlerwoaroof has joined #gnucash
11:10:16 *** ramontjunior has joined #gnucash
11:10:16 *** JayC has joined #gnucash
11:10:16 *** chris has joined #gnucash
11:10:16 *** TownsendHardware has joined #gnucash
11:10:16 *** ecdhe has joined #gnucash
11:10:16 *** warlord has joined #gnucash
11:10:16 *** waeking has joined #gnucash
11:10:16 *** Yotson has joined #gnucash
11:10:16 *** crossan007 has joined #gnucash
11:10:16 *** yyoshino has joined #gnucash
11:10:16 *** Derperperd has joined #gnucash
11:10:16 *** irc.gimp.ca sets mode: +vvv JayC chris waeking
11:11:10 *** jonas has joined #gnucash
11:11:15 *** Mechtilde has joined #gnucash
11:11:16 *** Simon has joined #gnucash
11:11:16 *** ChanServ sets mode: +v Simon
11:11:17 *** lagertonne has joined #gnucash
11:11:32 *** Agfarmer18 has quit IRC
11:11:51 <chris> thank you... next silly question: gncOwnerGetName returns a string. why does guile not need to g_free the returned string? is it handled by .i?
11:14:17 *** JayC has quit IRC
11:14:34 <chris> thank you... next silly question: gncOwnerGetName returns a string. why does guile not need to g_free the returned string? is it handled by .i?
11:14:36 <chris> opos
11:14:38 <chris> oops
11:14:51 *** JayC has joined #gnucash
11:14:51 *** ChanServ sets mode: +v JayC
11:22:40 <chris> thanks warlord your snippet works well.
11:23:32 *** jervin has quit IRC
11:26:09 <warlord> chris, I believe it is handled by .i
11:26:43 <chris> I'm quite tempted to push for this change... makes gncOwnerFromLot marginally more functional and removes a lot of gncOwnerFree in reports
11:28:31 <chris> engine.i has %typemap(newfree) gchar * "g_free($1);"
11:38:03 *** jonas has quit IRC
11:40:18 *** guak has joined #gnucash
11:45:32 *** calvinct has joined #gnucash
11:47:42 *** Agfarmer18 has joined #gnucash
11:52:32 *** jonas has joined #gnucash
11:54:28 *** jervin has joined #gnucash
11:58:28 *** Agfarmer18 has quit IRC
12:06:57 <gjanssens> warlord, chris: I believe the guile integration adds multi-threading to the table. So we have to be careful exposing static variables to that code
12:07:15 <gjanssens> The guile processes run in their own threads from what I can see
12:23:12 *** finster has quit IRC
12:23:32 *** Agfarmer18 has joined #gnucash
12:35:15 *** finster has joined #gnucash
12:35:15 *** ChanServ sets mode: +v finster
13:02:25 *** sbluhm has joined #gnucash
13:02:25 *** ChanServ sets mode: +v sbluhm
13:07:40 *** sbluhm has quit IRC
13:30:37 <jralls> chris, warlord, it would be safer to use gncOwnerGetOwnerFromLot(GncLot*, GncOwner*), which is already public and which owner_from_lot wraps. It's already available from swig. You need to call gncOwnerFree on owner when you're done with it; that's also already available to scheme.
13:42:01 *** chris has quit IRC
13:44:18 *** chris has joined #gnucash
13:44:18 *** ChanServ sets mode: +v chris
13:46:32 *** sbluhm has joined #gnucash
13:54:25 *** TownsendHardware has quit IRC
14:00:46 *** sbluhm has quit IRC
14:05:23 <jralls> chris, For 2.7 we created an unstable branch when we began testing so that we could begin work on 3.900 right away. I don't remember the details of that but the reality was that there were so many bugs that no work happened on master for over a year after releasing 3.0.
14:06:12 <jralls> We could do the same when we're ready to release 3.901 in 3-4 weeks.
14:08:42 *** frakturfreak has joined #gnucash
14:08:42 *** ChanServ sets mode: +v frakturfreak
14:08:45 <jralls> Or we could hold off until 3.0, when we'd release 3.10, merge master into maint, and release 3.0.
14:13:17 <warlord> jralls, do you mean 4.0?
14:13:47 <jralls> Yeah, sorry. It's a bit late to hold off until 3.0, isn't it?
14:16:36 *** calvinct has quit IRC
14:16:55 <jralls> gjanssens you might want to opine on that as well.
14:28:17 *** keiffer has quit IRC
14:28:44 <warlord> Just a tad
14:30:00 *** jervin has quit IRC
14:31:43 *** sbluhm has joined #gnucash
14:31:43 *** ChanServ sets mode: +v sbluhm
14:51:54 <gjanssens> I'll do so tomorrow. It's getting late here.
15:03:11 *** ramontjunior has quit IRC
15:03:19 *** ramontjunior has joined #gnucash
15:27:14 *** sbluhm has quit IRC
15:28:03 *** gjanssens has quit IRC
15:28:28 *** ECDHE_RSA_AES256 has joined #gnucash
15:29:09 *** ecdhe has quit IRC
15:31:14 *** lmat has quit IRC
15:33:25 *** lmat has joined #gnucash
15:40:55 *** calvinct has joined #gnucash
15:40:56 *** Agfarmer18 has joined #gnucash
15:42:56 *** Agfarmer18 has quit IRC
15:45:56 *** calvinct has quit IRC
15:56:15 *** ramontjunior has quit IRC
16:03:36 *** sbluhm has joined #gnucash
16:03:36 *** ChanServ sets mode: +v sbluhm
16:12:06 *** Han_ has quit IRC
16:18:44 *** lmat has quit IRC
16:19:31 *** lmat has joined #gnucash
16:23:56 *** jervin has joined #gnucash
16:25:05 *** Gerd has joined #gnucash
16:28:32 *** jervin has quit IRC
16:45:34 *** lmat has quit IRC
16:46:33 *** lmat has joined #gnucash
16:49:05 *** Mechtilde has quit IRC
16:57:36 *** sbluhm has quit IRC
17:00:07 *** lmat has quit IRC
17:03:07 *** User has quit IRC
17:03:07 *** lmat has joined #gnucash
17:07:09 *** frakturfreak has quit IRC
17:15:15 *** oozer has joined #gnucash
17:27:11 *** JayC has quit IRC
17:27:30 *** JayC has joined #gnucash
17:27:30 *** ChanServ sets mode: +v JayC
17:48:53 *** lmat has quit IRC
17:49:50 *** lmat has joined #gnucash
17:53:22 *** Gerd has quit IRC
18:03:13 *** lmat has quit IRC
18:04:12 *** lmat has joined #gnucash
18:15:32 *** lmat has quit IRC
18:18:20 *** lmat has joined #gnucash
18:37:48 *** lmat has quit IRC
18:38:35 *** lmat has joined #gnucash
18:59:10 <chris> jralls: gncOwnerGetOwnerFromLot is already in use by guile; I was hoping to find a way to make it functional, and avoid the need for gncOwnerFree completely - eg %typemap(out) gncOwner* "gncOwnerFree ($1);" - it would simplify code greatly
18:59:19 <chris> but this is low priority
19:11:02 *** Aussie_matt has joined #gnucash
19:22:28 *** lmat has quit IRC
19:23:17 *** lmat has joined #gnucash
19:29:42 *** guak has quit IRC
19:30:42 *** guak has joined #gnucash
19:32:35 *** lmat has quit IRC
19:33:17 *** guak1 has joined #gnucash
19:33:42 *** guak has quit IRC
19:33:42 *** guak1 is now known as guak
19:35:43 *** lmat has joined #gnucash
19:51:17 *** guak has quit IRC
19:59:07 *** tonysoar has joined #gnucash
20:00:26 *** tonysoar has quit IRC
20:01:31 *** chf has quit IRC
20:50:16 *** oozer has quit IRC
21:37:51 *** lmat has quit IRC
21:40:20 *** lmat has joined #gnucash
21:44:43 *** omnireq_ has quit IRC
21:45:08 *** omnireq_ has joined #gnucash
22:06:13 *** omnireq_ has quit IRC
22:07:22 *** omnireq_ has joined #gnucash
22:26:07 <fell> jralls: Shouldn't your astyle call from https://github.com/Gnucash/gnucash/pull/664#issuecomment-605503886 go into https://wiki.gnucash.org/wiki/CodingStandard?
22:47:32 *** n08l3J has joined #gnucash
22:48:48 *** n08l3J has joined #gnucash
22:48:55 <n08l3J> Hello
22:49:53 <n08l3J> I am new to Gnucash and learning it by using it. I have a business account that have A/R from some customers who have existing balance and some A/P accounts to vendors where I have balance to pay.
22:50:17 <n08l3J> Is there a way to set these customer/vendor accounts with account balances?
23:12:56 <fell> n08l3J: https://code.gnucash.org/docs/C/gnucash-guide/ch_import_bus_data.html
23:25:33 *** n08l3J has quit IRC
23:30:35 *** n08l3J has joined #gnucash
23:37:48 *** Gerd has joined #gnucash