2016-06-11 GnuCash IRC logs

00:11:50 *** mikee_ has joined #gnucash
00:13:40 *** mikee has quit IRC
00:13:41 *** mikee_ is now known as mikee
00:13:42 *** ChanServ sets mode: +o mikee
00:22:23 *** fell_ has quit IRC
02:07:38 *** goodvibes has joined #gnucash
02:14:42 *** Mechtilde has joined #gnucash
02:21:26 <goodvibes> Can some scheme guru pls help? See http://pastebin.com/Uw2XdGW5 I'm having trouble with line: (append monetary-list company-email). I just want to add the company email to the end of the row.
03:25:38 *** andy has quit IRC
03:50:50 *** Mechtilde has quit IRC
04:09:40 *** terjesc has joined #gnucash
04:10:51 *** gjanssens has joined #gnucash
04:10:51 *** ChanServ sets mode: +o gjanssens
04:21:27 *** rubdos has joined #gnucash
04:40:51 <goodvibes> I end up with (#[unknown] #[unknown] #[unknown] #[unknown] #[unknown] #[unknown] #[unknown] . testcust@testcust.com.au) in the first cell on the row and nothing in any other cell on the row.
05:36:12 *** fabior has joined #gnucash
05:39:26 *** mib_iu8tow has joined #gnucash
05:45:14 *** mib_iu8tow has quit IRC
05:53:28 *** frogaincia has joined #gnucash
05:54:45 *** fabior has quit IRC
05:58:04 *** frogaincia has quit IRC
06:05:21 *** fabior has joined #gnucash
06:07:46 *** Goodvibes2 has joined #gnucash
06:13:47 *** Goodvibes2 has quit IRC
06:21:38 *** Unhammer has joined #gnucash
06:22:46 *** Goodvibes2 has joined #gnucash
06:37:47 *** Goodvibes2 has quit IRC
07:00:16 *** mlncn has quit IRC
07:31:17 *** fabior has quit IRC
07:37:46 *** fell has joined #gnucash
08:05:16 *** andy has joined #gnucash
08:23:09 *** Goodvibes2 has joined #gnucash
08:31:38 *** Goodvibes2 has quit IRC
08:42:01 *** fabior has joined #gnucash
09:09:37 *** harski has joined #gnucash
09:12:17 <harski> The SSL certificate on https://gnucash.org has expired: where or to whom do you guys think it should be reported?
09:16:47 *** finster has joined #gnucash
09:21:25 *** mlncn has joined #gnucash
09:29:18 *** fabior has quit IRC
09:43:32 *** fabior has joined #gnucash
09:58:53 *** mlncn has quit IRC
10:16:44 *** jonas has quit IRC
10:16:53 *** jonas has joined #gnucash
12:25:09 <warlord> harski: we know. we've been trying to get ahold of the maintainer for over a week
12:35:28 *** fabior has quit IRC
12:49:11 *** mlncn has joined #gnucash
12:54:02 *** fabior has joined #gnucash
13:15:19 *** CDB-Man has quit IRC
13:17:50 *** finster has quit IRC
13:26:55 *** ArtGravity has joined #gnucash
13:46:49 *** andy has quit IRC
13:52:26 *** andy has joined #gnucash
13:52:29 *** CDB-Man has joined #gnucash
13:56:20 <harski> warlord: Ok, cool
14:50:10 *** fabior has quit IRC
15:03:50 *** uXuss has quit IRC
15:07:49 *** uXuss has joined #gnucash
15:26:00 *** Mechtilde has joined #gnucash
15:35:17 *** minot has joined #gnucash
15:56:25 <goodvibes> can anyone help with my question above pls?
15:59:16 *** Mechtilde has quit IRC
16:01:48 *** minot has quit IRC
16:24:36 <jralls> goodvibes: What report are you trying to modify and is that the only line you changed?
16:33:13 <goodvibes> jralls: The only file I've modified is scm/gnucash/report/aging.scm. I'm modifying the receivables.scm rpt to add address/email info to each line so users can copy/paste into spreadsheet to do mail merge.
16:34:29 <goodvibes> I've only added able column heading, get of company-email field. I can email you the file if you wish?
16:37:34 <jralls> goodvibes: Better to pastebin a git diff.
16:38:13 <goodvibes> jralls: shall do
16:52:38 *** aqua___ has joined #gnucash
16:53:16 <goodvibes> jralls: http://pastebin.com/UfSpsMwN I've changed more in that section than original pastebin but just aligning braces. My other mods re table column heading and getting email work as the generated rpt shows.
16:54:12 *** minot has joined #gnucash
16:55:49 *** aqua___ has quit IRC
16:56:12 <jralls> goodvibes: So the only changes that matter are the ones in lines 31-54?
16:57:49 <jralls> goodvibes: Looks like you've added an extra paren at line 53.
16:59:31 <goodvibes> jralls: http://wiki.gnucash.org/wiki/Custom_Reports#The_GnuCash_API re gnc:html-table-append-row! : Note that only simple lists are supported for this. If you use nested lists as input, then the whole list contents of the nested lists will be displayed.
17:00:16 <jralls> goodvibes: What has that got to do with anything?
17:00:44 <goodvibes> jralls: maybe I need to add cells 1 at a time seeing as how first cell is a list (anchor) ?
17:03:06 <goodvibes> jralls: 31-54 : yes
17:03:20 <jralls> goodvibes: Most important is to write valid code. You turned ...company-name)) monetary-list)) into ...company-name)) monetary-list) company-email)). See the extra ) ?
17:09:55 *** aqua___ has joined #gnucash
17:12:17 <goodvibes> jralls: Isn't that to match the append...
17:15:31 <jralls> goodvibes: No, count them, or better yet use a code editor that matches. The two after monetary-list in the original closed table and gnc:html-table-apppend-row. In your change the one after manetary-list closes table and the first one after company-email closes gnc:html-table-append-row. The new one closes... I haven't figured it out yet, but probably the lambda at line 623.
17:16:08 <jralls> No, I think the let* at line 626.
17:17:49 <jralls> Since owner is defined inside that let, the following call to gncOwnerFree will fail. Since it's not crashing it just leaks. But then the for-each is closed without an argument list so you get a single empty row.
17:21:34 *** Simon has quit IRC
17:23:05 *** Simon has joined #gnucash
17:28:57 <goodvibes> jralls: I am using a code editor that matches. (jEdit in scheme mode). I don't think we're looking at exactly the same code. 623 is not a let. I'm not getting a single empty row.
17:30:48 <goodvibes> jralls: I'm modifying maint - you?
17:32:56 <jralls> I was looking at master. In maint the let* is line 626. Have you made other changes to the function?
17:33:11 <goodvibes> No
17:33:43 <jralls> What does jEdit show the second ) after company-email closing?
17:35:44 <goodvibes> jralls: 627: (let* ((monetary-list (convert-to-monetary-list
17:36:36 <jralls> Ah, shifted down one because of your added line 12. OK, I'm right.
17:36:39 <goodvibes> jralls: it closes : ( gnc:html-table-append-row! table
17:38:52 <jralls> Ah, I didn't see that the (append in pastebin line 40 was added.
17:39:26 *** Simon has quit IRC
17:40:22 <goodvibes> thanks very much for helping BTW
17:40:27 *** Simon has joined #gnucash
17:43:11 *** aqua___ has quit IRC
17:53:01 <jralls> goodvibes: The problem may be that gnc:html-table-append-row! only accepts proper lists, i.e. those that list? reports as #t, and if the last argument to append isn't a list it returns an "improper list". Try changing comapny-email to (list company-email).
17:58:43 *** fell_ has joined #gnucash
18:00:37 *** fell has quit IRC
18:07:31 *** gjanssens has quit IRC
18:07:49 <goodvibes> jralls: Bingo! Thanks :-)
18:09:03 <jralls> goodvibes: You're welcome. As you can tell, I'm far from a Scheme guru.
18:10:17 <goodvibes> jralls: compared to me : Guru! So who are the scheme guru's?
18:12:33 <jralls> gjanssens is more comfortable with it than I, but he'd also disclaim guru-ness. warlord, Alex, and both Mikes seem pretty comfortable with it.
18:21:08 <goodvibes> jralls: 1 more question if you have time - tell me if you don't : If I uncomment : (gncOwnerFree addr) it crashes. I thought I should free addr. I remember reading about that somewhere but I cannot find where now.
18:24:48 <jralls> addr is probably an Address rather than an Owner, besides I don't think that Addresses are independently allocated; I think they all exist as members of other structs.
18:32:02 <goodvibes> Sounds fair. I tried (gncAddressFree addr) after I sent last msg but that also causes a crash so you must be right. Thanks again.
18:36:47 <jralls> goodvibes: You're welcome.
19:31:42 *** ArtGravity has left #gnucash
20:58:20 *** goodvibes has quit IRC
21:35:01 *** minot has quit IRC