2013-10-08 GnuCash IRC logs
00:30:27 *** Krzysiek_K has joined #gnucash
01:08:16 *** ErKa has joined #gnucash
01:51:11 *** ErKa has quit IRC
02:03:35 *** talso has quit IRC
02:03:38 *** talso has joined #gnucash
03:20:11 *** nomeata has joined #gnucash
03:24:34 *** Krzysiek_K has quit IRC
03:36:59 *** fuzzybunny69y has joined #gnucash
03:43:07 *** fuzzybunny69y has quit IRC
04:01:02 *** nomeata has quit IRC
04:10:01 *** john has quit IRC
04:20:20 *** aqua___ has joined #gnucash
04:46:52 *** gjanssens-afk is now known as gjanssens
05:11:39 *** gjanssens has quit IRC
05:26:08 *** nomeata has joined #gnucash
05:27:58 *** gjanssens has joined #gnucash
05:27:59 *** gncbot sets mode: +o gjanssens
05:28:14 *** aqua___ has quit IRC
05:30:51 <gjanssens> FTR 2.5.6 builds fine on Windows (locally at least), but crashes at startup
05:31:18 <gjanssens> Yet another multi-platform issue in Guile
05:31:32 <gjanssens> (Two actually)
05:31:49 <gjanssens> I'm currently testing a fix (waiting for the build to complete...)
05:32:16 <gjanssens> First issue: I assumed environment variable HOME exists on all platforms
05:32:28 <gjanssens> Wrong -> on Windows it's called USERPROFILE
05:33:32 <gjanssens> Second issue: some preferences store paths, which on Windows can have \
05:34:02 <gjanssens> When trying to copy these paths Guile complains the backslash is an invalid escape
05:34:33 <gjanssens> The paths are stored in GConf with single backslashes, not escaped ones
05:35:19 <gjanssens> Thank you guile...
05:35:36 <gjanssens> And Microsoft for being so supportive of POSIX...
05:37:12 <mikee> Hi Geert
05:37:31 <mikee> I'm also seeing .gnucash/config.user:1:1: Unbound variable: gnc:module-load
05:38:00 <mikee> when running. Not exactly sure if it's due to your updates though.
05:38:15 <mikee> 1: 0* (gnc:module-load "gnucash/plugins/bi_import" 0)
05:39:12 <mikee> I have to go out for a while. I'll have a better look when I get back.
05:39:32 <mikee> Have fun with quile.
05:41:46 <gjanssens> What content do you have in config.user ?
05:43:56 <mikee> It loads some modules.
05:44:01 <mikee> (gnc:module-load "gnucash/plugins/bi_import" 0)
05:44:07 <mikee> (gnc:module-load "gnucash/plugins/customer_import" 0)
05:49:09 <mikee> I'll checkout an earlier revision and test.
06:10:48 <mikee> Revision 23209, Sunday, doesn't have the issue.
06:13:36 *** Topcat has joined #gnucash
06:13:50 *** Topcat has quit IRC
06:14:34 *** Topcat has joined #gnucash
06:21:35 *** Topcat has quit IRC
06:21:57 *** Topcat has joined #gnucash
06:28:55 *** Topcat has quit IRC
06:29:18 *** Topcat has joined #gnucash
06:36:17 *** Topcat has quit IRC
06:36:39 *** Topcat has joined #gnucash
06:43:32 <gjanssens> mikee: ok, and how about r23272 ?
06:43:43 <gjanssens> That's the revision just before I implemented the migration
06:45:32 <gjanssens> (which it my first suspect for this breakage)
06:45:40 <gjanssens> s/it/is/
06:55:05 *** Topcat has quit IRC
07:01:18 *** Jimraehl1 has joined #gnucash
07:06:40 <mikee> Compiling && off to buy eggs.
07:23:36 <mikee> r23272 is good.
07:53:02 <gjanssens> Thanks
07:53:40 <gjanssens> So another issue to attribute to the migration code...
08:05:50 *** aqua___ has joined #gnucash
08:39:07 *** aqua___ has quit IRC
09:06:55 *** TradeBorG has joined #gnucash
09:10:28 *** aqua___ has joined #gnucash
09:19:14 *** aqua___ has quit IRC
09:27:41 *** fell has joined #gnucash
09:27:42 *** gncbot sets mode: +o fell
09:30:33 *** TradeBorG has quit IRC
09:47:31 <gjanssens> *#@&!
09:47:40 <gjanssens> How I hate the windows build :(
09:48:29 <gjanssens> I just want to add a small snippet of c code to replace \ with /
09:48:53 <gjanssens> Then manually run make && make install in src/app-utils (in the build dir)
09:49:16 <gjanssens> and copy the resulting dll file to the gnucash installed in program files
09:49:35 <gjanssens> The new code is totally ignored...
09:49:54 <gjanssens> Running another full install.sh && dist.sh cycle now...
09:50:06 <gjanssens> This wastes *hours* of time
09:52:34 *** john has joined #gnucash
09:52:35 *** gncbot sets mode: +o john
09:56:47 <gjanssens> john, you have just missed my rant on the windows build system by two minutes
09:57:12 <gjanssens> Long story short: the windows build is broken because of the settings migration
09:57:39 <gjanssens> (I should have started with "Good morning"...)
09:59:06 <gjanssens> Guile chokes on strings with single backslashes in it
09:59:37 <gjanssens> It gets such a string from the calling c code
09:59:59 <gjanssens> It passes the result of g_get_homedir() to the migration script
10:00:29 <gjanssens> And that string contains single backslashes (like c:\Documents and Settings\janssege)
10:01:09 <gjanssens> I have to prevent this on the C side, because guile aborts the moment it needs to read the string
10:01:16 <gjanssens> which is when the function is called
10:01:53 <gjanssens> I have added the necessary code for this, but my Windows test box has been working against me all day :(
10:02:28 <gjanssens> I'm waiting for another round of install.sh && dist.sh to finish to see if it will work this time
10:03:47 <gjanssens> (building app-utils now)
10:10:26 *** fell has quit IRC
10:21:57 <warlord> Always a fun morning in GnuCash-land..
10:22:10 <gjanssens> Heh, good morning warlord
10:22:37 <gjanssens> That's the advantage of running a couple of hours behind
10:22:47 <gjanssens> It gives me some time to create a scene :)
10:25:52 <john> Geert, I'm still doing tea and newspapers. I just fired up the desktop to make the intel bundle for the release.
10:26:17 *** aqua___ has joined #gnucash
10:26:29 <gjanssens> As I said, I should have started with "Good morning John" ;)
10:26:34 <gjanssens> Take your time
10:26:56 <gjanssens> We may need to re-release the windows build anyway
10:27:12 <john> Oh… what's wrong with it?
10:27:17 <gjanssens> What time is it in your place by the way ?
10:27:21 <warlord> I haven't even had my breakfast and tea, yet..
10:27:29 <warlord> It's 7:30am here
10:27:50 <gjanssens> The windows build will crash at startup
10:27:51 <warlord> john: windows is broken because of path string incompatibility.
10:27:52 <john> And Derek is here in the SF Bay Area with me.
10:28:07 <gjanssens> due to guile choking on a single backslash
10:28:40 *** ErKa has joined #gnucash
10:28:42 <john> Guile doesn't have a path-mangling routine?
10:28:55 <john> Or did you forget to use it?
10:28:56 <gjanssens> You can read more details on the irc log after you have finished your breakfast
10:29:12 <gjanssens> If it has one, it won't help here
10:29:42 <gjanssens> calling a guile function like this (some-function "string with \single backslash")
10:29:55 <gjanssens> will abort guile with "\s is an invalid escape"
10:30:14 <gjanssens> It's the c code passing that single backslash path to guile in this case
10:30:24 <gjanssens> So I have to fix it on the c side
10:30:41 <gjanssens> Have done so, but my windows machine is acting up
10:30:57 <gjanssens> So I'm still waiting for the next windows build to finish
10:31:05 <gjanssens> Before I can verify this actually works
10:31:30 <gjanssens> (it's currently installing core-utils...)
10:31:33 <john> But (assuming there's path mangling) you passed (guile-fn (mangle-path 'naughty string)), it wouldn't.
10:32:10 <john> I probably screwed up the quoting. I always do in lisp/scheme/guile.
10:32:37 <gjanssens> I think it does, because it still has to read the 'naughty string before mangle-path can work on it
10:32:43 <warlord> john: it depends ... it might still crash
10:32:46 <gjanssens> It goes wrong that early
10:33:18 <john> OIC.
10:34:19 <gjanssens> Thanks to mingw, I can get away with replacing all \ chars with /
10:34:34 <gjanssens> it will work then (already verified)
10:34:59 <gjanssens> So I added a snippet of code in the c source that does simply that
10:35:15 <gjanssens> modify the path right before passing it to guile
10:35:41 <gjanssens> so with my example path of c:\Documents and Settings\janssege
10:36:02 <gjanssens> I pass c:/Documents and Settings/janssege to guile
10:36:10 <gjanssens> which it happily accepts
10:36:22 <gjanssens> The spaces are not even an issue
10:36:43 <gjanssens> But still have to test to added code snippet
10:38:29 <gjanssens> SF Bay area is 11 hours behind Belgium/Brussels
10:38:48 <gjanssens> Gives me an idea how early it is where you are
10:38:55 *** Topcat has joined #gnucash
10:41:02 *** aqua___ has quit IRC
10:42:02 <john> 11 hours! Why are you on Eastern Europe Time? We're only 8 hours behind London.
10:43:07 <gjanssens> Huh ? Guess this website has it wrong then:
10:43:09 <gjanssens> http://www.timeanddate.com/worldclock/city.html?n=224
10:43:26 <gjanssens> It tells me it's 7:43 in San Francisco
10:44:13 <gjanssens> Oh no! My calculation is bad
10:44:40 <gjanssens> It's only 9 hours :-/
10:44:51 <gjanssens> Here it's 16:44
10:45:14 * gjanssens has seen too many numbers today already...
10:45:41 <gjanssens> Doing accounting today...
10:46:53 <john> Yeah, I've got to do my reconciles today, after I get the release done. Plus I have a doctor appointment in a couple of hours.
10:49:17 <john> BTW, I've pushed the changes to gnucash-on-osx and the patch for Glib, to fix the failure to install charset.alias, so you can do your mac build now. There's still a g_types_init in shared-mime-info to comment out. I'll get that patch in later, but you can work around it by hand.
10:51:01 <john> Back to the newspaper.
10:51:02 *** Qlaras has joined #gnucash
10:51:02 *** Topcat has quit IRC
10:52:39 <gjanssens> Ok running jhbuild now
11:06:33 <gjanssens> Got to go for an hour or so
11:06:42 <gjanssens> The windows build should be finished when I return
11:06:49 *** gjanssens is now known as gjanssens-afk
11:15:27 *** nomeata has quit IRC
11:25:23 * warlord is running off to the office.
11:25:26 <warlord> BIAB
11:25:35 *** warlord has quit IRC
11:27:26 *** benoitg has joined #gnucash
11:53:37 *** ErKa has quit IRC
12:03:03 *** Topcat has joined #gnucash
12:07:26 *** warlord has joined #gnucash
12:07:27 *** gncbot sets mode: +o warlord
12:17:19 *** Topcat has quit IRC
12:17:42 *** Topcat has joined #gnucash
12:21:39 *** gjanssens-afk is now known as gjanssens
12:22:09 <gjanssens> Ok, gnucash runs on Windows with my fix
12:22:26 <gjanssens> Migration doesn't work though (but no longer crashes)
12:23:03 <gjanssens> So on Windows, no settings are migrated yet
12:23:18 <gjanssens> I can live with that for now
12:30:00 <warlord> ok
12:32:25 <gjanssens> I have just pushed the change to svn (r23284)
12:34:44 *** Topcat has quit IRC
12:35:18 *** kim27 has joined #gnucash
12:55:58 *** jmd has joined #gnucash
13:08:27 *** ErKa has joined #gnucash
13:11:59 *** Krzysiek_K has joined #gnucash
13:16:22 *** TradeBorG has joined #gnucash
13:18:29 <gjanssens> This is just crazy...
13:18:39 <gjanssens> Now the OS X build core dumps
13:18:44 <gjanssens> <unnamed port>:1:30: In procedure migration-prepare in expression (migration-prepare "/Users/janssege"):
13:18:45 <gjanssens> <unnamed port>:1:30: Wrong number of arguments to #<procedure migration-prepare ()>
13:19:43 <gjanssens> And here is how migration-prepare is defined:
13:19:46 <gjanssens> (define (migration-prepare base-dir)
13:20:02 <gjanssens> How about that ?
13:28:04 *** Topcat has joined #gnucash
13:31:42 *** ErKa has quit IRC
13:34:07 *** rpg has joined #gnucash
13:36:38 *** Krzysiek_K has left #gnucash
13:39:17 *** ErKa has joined #gnucash
13:44:51 <gjanssens> phew, false alert
13:45:05 <gjanssens> I had an old scm file lingering in th cwd
13:45:23 <gjanssens> This apparently was found before the officially installed one
13:45:38 <warlord> Yay paths
13:45:44 <gjanssens> john, warlord, how do we proceed ?
13:46:02 <gjanssens> Should the tag be pulled to restart the release build process ?
13:46:20 <gjanssens> Or do we make a special build for Windows only ?
13:47:08 <warlord> Has the release been pushed anywhere? If nobody has pushed it then retagging just delays it..
13:51:02 <gjanssens> The windows installer is already available on code.gnucash.org
13:51:06 <gjanssens> I don't know if that counts
13:51:15 <john> The tar balls are up on source forge, but afaic nothing matters until the announcement, so I can retag.
13:51:25 <gjanssens> Ok
13:52:02 <john> OTOH, if we've got a valid windows build, we can just go with it. Does the version
13:52:13 <john> in the splash screen or about box look funny?
13:52:39 <gjanssens> you mean my local windows build ?
13:52:51 <gjanssens> The one on code.gnucash.org will result in a crash
13:53:10 <john> That's not a valid build, then.
13:53:55 <gjanssens> No, it needs the patch I only committed today
13:54:03 <john> Having it on code doesn't count as releasing. Only putting it on SF does.
13:54:08 <gjanssens> Ok
13:54:36 <john> If I redo the tag, can you fire off the build so that we don't have to wait until tomorrow morning?
13:55:02 <gjanssens> Ok
13:56:11 <john> Done. Next I'll regerate the tar balls.
13:56:46 <warlord> Thanks guys
14:03:11 *** rpg has quit IRC
14:08:41 <gjanssens> I've kicked the build
14:08:58 <gjanssens> Now we'll have to wait for it to finish
14:12:05 *** jmd has quit IRC
14:17:07 *** Topcat has quit IRC
14:17:40 *** Topcat has joined #gnucash
14:24:38 *** Topcat has quit IRC
14:25:11 *** Topcat has joined #gnucash
14:26:01 <gjanssens> Hmm, probably found why the migration isn't working on Windows
14:26:21 <gjanssens> There was one more location in my code that wrongly assumed the HOME env var exists on Windows
14:26:51 <gjanssens> (which was also part of the issues I fixed in my last patch for Windows)
14:27:13 <gjanssens> I'll test and commit it, but I don't think we should delay the release even more for this
14:27:34 <gjanssens> It will be there for 2.5.7 (and the next nightly build even)
14:30:40 *** aqua___ has joined #gnucash
14:35:03 <gjanssens> A guile question (I hope you can still stand it ;)
14:35:51 <gjanssens> It's related to the error mikee reported earlier this morning
14:35:58 <gjanssens> .gnucash/config.user:1:1: Unbound variable: gnc:module-load
14:36:36 <gjanssens> this error happens since the migration code is introduced
14:37:01 <gjanssens> Is there something I'm missing with loading guile modules ?
14:37:42 <gjanssens> At the start of inner_main, I call the migration code
14:38:10 <gjanssens> which at some point runs "(use-modules (migrate-prefs))..."
14:38:39 <gjanssens> Can this somehow mess up the guile environment ?
14:39:31 <gjanssens> In an earlier attempt I called the migration code inside the app-utils module loading code
14:40:04 <gjanssens> I had a similar issue when I called (use-modules (migrate-prefs)) there
14:40:36 <gjanssens> Later code would fail because other guile functions weren't found anymore
14:41:06 <gjanssens> But if I removed the (define-module ) statement from my migrate scm script
14:41:25 <gjanssens> and loaded the file like prefs.scm and friends in app-utils.scm
14:41:45 <gjanssens> and then exported the required functions in app-utils.scm
14:41:50 <gjanssens> Things worked fine
14:42:19 <gjanssens> well, barring the issues have solved since
14:42:38 <gjanssens> But I didn't run into the problem of other guile functions not being found anymore
14:43:20 <gjanssens> Can modules step on each other's toes or something ?
14:44:49 <john> Dunno. Warlord?
14:48:51 *** aqua___ has quit IRC
15:09:05 *** Topcat has quit IRC
15:09:36 *** Topcat has joined #gnucash
15:16:35 *** Topcat has quit IRC
15:17:06 *** Topcat has joined #gnucash
15:24:05 *** Topcat has quit IRC
15:24:38 *** Topcat has joined #gnucash
15:36:39 *** Topcat has quit IRC
15:37:12 *** Topcat has joined #gnucash
15:44:13 *** Topcat has quit IRC
15:44:46 *** Topcat has joined #gnucash
15:51:45 *** Topcat has quit IRC
15:52:17 *** Topcat has joined #gnucash
16:05:26 *** Topcat has quit IRC
16:26:24 <gjanssens> And yes, with commit r23287, migration now works fine on Windows as well. Yay !
16:26:40 <gjanssens> The weird guile issue I asked about still stands
16:27:34 *** TradeBorG has quit IRC
16:28:02 <gjanssens> The build server is working its way through the gnome step currently
16:28:12 <gjanssens> It will still take some time before it finishes
16:28:29 <gjanssens> By that time I'll be fast asleep :)
16:28:33 <gjanssens> Time to go
16:28:43 <gjanssens> See you tomorrow (or so)
16:30:35 *** gjanssens is now known as gjanssens-afk
16:39:45 *** nomeata has joined #gnucash
17:32:03 *** nomeata has quit IRC
17:57:56 *** mikee_ has joined #gnucash
17:59:24 *** mikee has quit IRC
18:17:45 *** fell has joined #gnucash
18:42:21 *** Jimraehl1 has quit IRC
18:56:03 *** benoitg has quit IRC
19:31:49 *** fell_ has joined #gnucash
19:39:31 *** warlord has quit IRC
19:40:07 *** fell has quit IRC
20:06:05 *** Jimraehl1 has joined #gnucash
20:20:23 *** benoitg has joined #gnucash
21:08:38 *** ErKa has quit IRC
21:28:40 *** ErKa has joined #gnucash
21:50:47 *** kpreid has quit IRC
21:51:22 *** kpreid has joined #gnucash
21:59:03 *** ErKa has quit IRC
23:12:08 *** warlord has joined #gnucash
23:12:09 *** gncbot sets mode: +o warlord
23:26:32 *** Mer|in_ has joined #GnuCash
23:30:48 *** Mer|in has quit IRC
23:45:03 *** Mer|in has joined #GnuCash
23:49:27 *** Mer|in_ has quit IRC