2017-12-25 GnuCash IRC logs

00:01:08 *** kus has quit IRC
00:39:57 *** User has joined #gnucash
00:52:27 *** User has quit IRC
01:34:10 *** fell has quit IRC
01:35:17 *** fell has joined #gnucash
01:46:21 <CDB-Away_> Merry Christmas to all at GNUcash!
02:08:53 *** Mechtilde has joined #gnucash
03:10:17 *** jotrago has joined #gnucash
03:19:52 *** jotrago has quit IRC
04:25:17 <chris> @tell gjanssens - from a pure scheme user I guess the scheme idiom should state gnc-localtime returns #f when an invalid input is given - this allows e.g. (define x (gnc-localtime something)) (if x do-something-with-x do-something-else)... I'm not entirely convinced chosing a default date 01-01-1970 is acceptable; at least if this behaviour is chosen there should be a (gnc:warn) confirming invalid input
04:25:17 <gncbot> chris: The operation succeeded.
04:37:12 <chris> @tell gjanssens if not #f there should be an exception exactly like running (+ 2 'not-a-number)
04:37:12 <gncbot> chris: The operation succeeded.
05:01:07 *** fabior has joined #gnucash
05:43:22 *** gjanssens has joined #gnucash
05:43:22 *** ChanServ sets mode: +o gjanssens
05:47:21 <gjanssens> .
05:47:21 <gncbot> gjanssens: Sent 1 hour and 22 minutes ago: <chris> - from a pure scheme user I guess the scheme idiom should state gnc-localtime returns #f when an invalid input is given - this allows e.g. (define x (gnc-localtime something)) (if x do-something-with-x do-something-else)... I'm not entirely convinced chosing a default date 01-01-1970 is acceptable; at least if this behaviour is chosen there should be a (gnc:warn) confirming invalid input
05:47:22 <gncbot> gjanssens: Sent 1 hour and 10 minutes ago: <chris> if not #f there should be an exception exactly like running (+ 2 'not-a-number)
05:57:54 *** kus has joined #gnucash
06:41:24 *** oozer has joined #gnucash
07:02:03 *** fabior has quit IRC
07:11:14 *** oozer has quit IRC
07:17:19 <chris> lmat still hacking on xmas day... gnc_pricedb_lookup_day
07:18:30 <chris> gnc_price_set_time as well
07:18:39 <chris> these could convert to accept t64 directly
07:55:02 *** kus has quit IRC
08:08:39 *** kus has joined #gnucash
08:17:18 *** kus has quit IRC
08:25:10 *** noah has joined #gnucash
08:55:06 *** Jimraehl1 has joined #gnucash
09:10:27 *** jotrago has joined #gnucash
09:49:57 *** chris has quit IRC
09:54:22 *** oozer has joined #gnucash
09:57:45 *** oozer has quit IRC
10:53:44 *** fabior has joined #gnucash
11:01:21 *** oozer has joined #gnucash
11:12:11 *** oozer has quit IRC
11:17:50 *** sborman has joined #gnucash
11:27:05 *** Robert has joined #gnucash
11:30:45 <Robert> Lately, when I start GnuCash on one of my computers that happens to be using 2.6.11 in Debian Linux, there is a pop-up that this account is read only. It is not for the account that is initially showing, but it prevents all activity until I notice that it is hiding under the register view.
11:31:07 <Robert> How can I figure out which account is the culprit
11:33:19 *** fabior has quit IRC
11:34:10 <Robert> Could that be worded more clearly or perhaps force the focus to the register view of possibly the first of several offending accounts?
11:34:40 *** Mechtilde has quit IRC
11:35:06 <Robert> In my case I think there is only one, but I am thinking about the general case
11:36:03 <gjanssens> Robert: that's a useful suggestion for improvement. Can you file an enhancement request for this in bugzilla ?
11:44:03 *** O01eg has quit IRC
11:50:43 *** O01eg has joined #gnucash
12:00:04 *** Mechtilde has joined #gnucash
12:05:39 *** storyjesse has joined #gnucash
12:57:09 *** kus has joined #gnucash
13:27:25 <Robert> I added a comment to "BugĀ 526095 - revised text for "account register is read only" dialog. " I don't think I have the authority to re-file it as an enhancement request.
13:27:51 *** Robert has left #gnucash
13:32:47 *** oozer has joined #gnucash
13:36:23 *** kus has quit IRC
13:39:04 *** oozer has quit IRC
13:54:02 *** kus has joined #gnucash
14:15:40 *** frakturfreak has joined #gnucash
14:45:20 *** storyjesse has quit IRC
14:48:15 *** Mechtilde has quit IRC
14:57:23 *** Mechtilde has joined #gnucash
15:42:12 *** gjanssens has quit IRC
15:54:03 <jralls> .
15:54:04 <gncbot> jralls: Sent 1 day, 10 hours, and 46 minutes ago: <gjanssens> How to handle the struct tm* typemap in basetypes.i depends on what we want the guile code's behaviour to be.
15:54:05 <gncbot> jralls: Sent 1 day, 10 hours, and 45 minutes ago: <gjanssens> If we want the scheme code to error out in case of an invalid time64 to start with, you could undefine the variable (or make it a vector of undefined's)
15:54:06 <gncbot> jralls: Sent 1 day, 10 hours, and 44 minutes ago: <gjanssens> that would require us to fix our scheme code to test for an undefined return value (I found gnc-localtime is used a lot, gnc-gmtime not at all) and decide what to present to the user in that case.
15:54:07 <gncbot> jralls: Sent 1 day, 10 hours, and 43 minutes ago: <gjanssens> if we miss one, I expect either a gnucash crash or a pretty cryptic guile backtrace (leading into the internals of the swig wrapper code)
15:54:08 <gncbot> jralls: Sent 1 day, 10 hours, and 42 minutes ago: <gjanssens> The alternative is to return a date we consider invalid but is still printable and representable in a struct tm*
15:54:09 <gncbot> jralls: Sent 1 day, 10 hours, and 41 minutes ago: <gjanssens> I believe we more or less chose 1970-01-01 00:00:00 to be such a date in the 2.6 series. Is there an equivalent we could use for 2.8 onwards ?
15:54:10 <gncbot> jralls: Sent 1 day, 10 hours, and 39 minutes ago: <gjanssens> As most of the gnc-localtime calls are used in combination with strftime to present the date to the user, the latter is slightly less intrusive to implement and avoids deep debugging in case a scheme coder forgets to check for an undefined result.
16:08:39 *** kus has quit IRC
16:12:16 *** kus has joined #gnucash
17:12:51 *** oozer has joined #gnucash
17:24:56 *** oozer has quit IRC
17:54:22 *** oozer has joined #gnucash
18:01:04 *** oozer has quit IRC
18:07:58 *** sefnot has quit IRC
18:14:20 *** Mechtilde has quit IRC
18:18:14 *** kus has quit IRC
18:29:34 *** oozer has joined #gnucash
18:47:44 <jralls> lmat: Just noticed a warning from your 9d7ec35, in qofinstance.cpp line 1250. You bracketed the "path" parameter to qof_instance_has_slot but it's still a char* in that function. Did you forget to change it?
18:59:10 *** kus has joined #gnucash
19:03:28 *** oozer has quit IRC
19:37:41 *** afwang has joined #gnucash
19:39:01 <afwang> Hi all. I just wanted to offer my gratitude for GnuCash. I absolutely love it!
19:50:17 <jralls> afwang: Thanks, and happy Saturnalia!
20:13:00 *** frakturfreak has quit IRC