2018-06-11 GnuCash IRC logs

00:26:38 *** storyjesse has joined #gnucash
00:30:12 *** fell has joined #gnucash
00:46:32 *** Mechtilde has joined #gnucash
01:26:31 *** ArtGravity has quit IRC
01:28:33 *** chris has joined #gnucash
01:48:18 *** Mechtilde has quit IRC
01:57:30 *** fell_laptop has joined #gnucash
01:58:31 *** fell_afk has quit IRC
01:59:17 *** fell has quit IRC
01:59:36 *** fell_afk has joined #gnucash
02:01:22 *** frakturfreak1 has quit IRC
02:11:51 *** fell_laptop has quit IRC
02:15:45 *** frakturfreak1 has joined #gnucash
02:18:35 *** storyjesse has quit IRC
02:19:32 *** jotrago has joined #gnucash
02:38:55 *** gour has joined #gnucash
02:47:36 *** fabior has joined #gnucash
02:54:11 *** fekepp has joined #gnucash
03:13:06 *** fekepp1 has joined #gnucash
03:14:11 *** fekepp has quit IRC
03:14:12 *** fekepp1 is now known as fekepp
03:29:41 *** gjanssens has joined #gnucash
03:29:41 *** ChanServ sets mode: +o gjanssens
03:31:28 <gjanssens> .
03:36:43 *** hoijui has quit IRC
03:39:28 *** frakturfreak1 has quit IRC
03:54:27 *** ncv_ has joined #gnucash
04:03:40 <chris> gjanssens: is making test-stylesheet-plain.scm on the cards? :-)
04:04:08 *** gjanssens has quit IRC
04:04:26 <chris> oops
04:15:39 *** bertbob has quit IRC
04:18:52 *** bertbob has joined #gnucash
05:06:19 *** hoijui has joined #gnucash
05:13:29 *** gour has quit IRC
05:25:37 *** gjanssens has joined #gnucash
05:25:38 *** ChanServ sets mode: +o gjanssens
05:25:50 *** gour has joined #gnucash
05:48:37 *** fabior has quit IRC
05:48:53 *** hoijui has quit IRC
05:52:27 *** Sebastian has joined #gnucash
06:07:49 *** fabior has joined #gnucash
06:13:01 *** ncv__ has joined #gnucash
06:14:48 *** ncv_ has quit IRC
06:22:20 *** Sebastian has quit IRC
06:31:28 *** gjanssens has quit IRC
06:34:17 *** Sebastian_ has joined #gnucash
06:35:28 *** User__ has joined #gnucash
06:35:56 *** gjanssens has joined #gnucash
06:35:56 *** ChanServ sets mode: +o gjanssens
06:36:54 *** Sebastian_ has quit IRC
06:37:44 *** Sebastian_ has joined #gnucash
06:38:39 *** User__ has quit IRC
06:42:00 <gjanssens> .
06:47:25 *** Sebastian_ has quit IRC
06:48:48 *** Sebastian_ has joined #gnucash
06:49:24 *** hoijui has joined #gnucash
06:49:48 *** fabior has quit IRC
06:51:53 *** Sebastian_ has quit IRC
06:53:28 *** jotrago has quit IRC
06:54:14 *** sbluhm has joined #gnucash
07:12:49 *** Sebastian_ has joined #gnucash
07:16:53 *** Sebastian_ has quit IRC
07:17:49 *** Sebastian_ has joined #gnucash
07:21:30 *** hoijui has quit IRC
07:42:07 *** Sebastian_ has quit IRC
07:42:22 *** Sebastian has joined #gnucash
07:46:30 *** Sebastian has quit IRC
07:47:11 *** Sebastian has joined #gnucash
07:47:20 *** boldstripe has joined #gnucash
07:57:51 *** Mechtilde has joined #gnucash
08:11:50 *** hoijui has joined #gnucash
08:43:20 *** fekepp has quit IRC
08:45:09 *** fekepp has joined #gnucash
08:46:20 *** Mechtilde has quit IRC
08:48:41 *** Mechtilde has joined #gnucash
08:50:58 *** fekepp has quit IRC
08:51:53 *** Mechtilde has quit IRC
08:54:58 *** Mechtilde has joined #gnucash
09:06:41 *** Mechtilde has quit IRC
09:14:49 *** fabior has joined #gnucash
09:17:33 <chris> Ok I can create test-stylesheets.scm but don't really know if it's worth it tbh
09:20:15 *** kael has joined #gnucash
09:25:30 *** fekepp has joined #gnucash
09:28:28 <gjanssens> chris: probably not. I think stylesheets.scm should die
09:28:31 *** fekepp has quit IRC
09:42:52 *** User__ has joined #gnucash
09:47:41 *** User__ has quit IRC
09:49:55 *** lmat has quit IRC
09:51:25 <chris> Good...
09:51:59 *** Sebastian has quit IRC
09:53:02 *** Sebastian has joined #gnucash
09:53:31 *** oozer has joined #gnucash
09:54:14 *** fekepp has joined #gnucash
09:56:39 *** Sebastian has quit IRC
09:57:19 *** Sebastian has joined #gnucash
09:57:35 *** kael has quit IRC
09:59:02 *** Mechtilde has joined #gnucash
10:02:36 <chris> perhaps I can help by designing a null-stylesheet.scm, copying defaults from plain-stylesheet.scm and presenting NO options. then someone else will remove the UI associated, and the default stylesheet selector in options.
10:03:19 *** fekepp has quit IRC
10:04:22 <chris> (also will remove default 'attributes and design from CSS instead)
10:07:38 *** oozer has quit IRC
10:09:37 *** jotrago has joined #gnucash
10:16:40 *** Sebastian has quit IRC
10:17:36 *** Sebastian has joined #gnucash
10:21:29 *** Sebastian has quit IRC
10:23:04 *** Sebastian has joined #gnucash
10:26:22 *** jotrago has quit IRC
10:26:35 *** jotrago has joined #gnucash
10:30:17 *** ncv__ has quit IRC
10:31:12 *** ncv has joined #gnucash
10:57:10 *** Sebastian has quit IRC
11:02:24 *** Sebastian has joined #gnucash
11:06:50 *** hoijui has quit IRC
11:10:12 *** ArtGravity has joined #gnucash
11:23:48 *** jotrago1 has joined #gnucash
11:24:19 *** jotrago has quit IRC
11:24:20 *** jotrago1 is now known as jotrago
11:26:39 *** Mechtilde has quit IRC
11:49:22 *** ncv has quit IRC
11:49:28 *** ncv has joined #gnucash
11:53:12 *** ncv has quit IRC
11:56:57 *** ncv has joined #gnucash
11:59:43 *** ncv has quit IRC
11:59:57 *** ncv has joined #gnucash
12:01:45 *** jotrago has quit IRC
12:03:15 *** ncv has quit IRC
12:05:03 *** oozer has joined #gnucash
12:06:46 *** Sebastian has quit IRC
12:08:33 *** Sebastian has joined #gnucash
12:10:10 *** ncv has joined #gnucash
12:11:32 *** Sebastian has quit IRC
12:12:30 *** Sebastian has joined #gnucash
12:14:30 *** ncv_ has joined #gnucash
12:15:42 *** ncv has quit IRC
12:19:48 *** ncv_ has quit IRC
12:19:57 *** ncv_ has joined #gnucash
12:22:48 *** hoijui has joined #gnucash
12:29:39 *** mipesom has quit IRC
12:32:21 *** ncv_ has quit IRC
12:37:15 *** jralls has quit IRC
12:37:41 *** mdforbis_ has joined #gnucash
12:37:42 *** jralls has joined #gnucash
12:37:42 *** ChanServ sets mode: +o jralls
12:39:18 *** mdforbis has quit IRC
12:40:10 *** ncv has joined #gnucash
12:41:21 *** ncv has quit IRC
12:41:36 *** ncv has joined #gnucash
12:42:06 *** Sebastian has quit IRC
12:44:36 *** Sebastian has joined #gnucash
12:45:52 *** mipesom has joined #gnucash
12:45:57 *** ncv has quit IRC
12:46:07 *** ncv has joined #gnucash
12:47:11 *** oozer has quit IRC
12:49:53 *** oozer has joined #gnucash
12:53:56 *** ncv has quit IRC
12:54:07 *** ncv has joined #gnucash
12:57:21 *** ncv has quit IRC
12:57:43 *** ncv has joined #gnucash
13:42:43 *** ncv has quit IRC
13:43:56 *** ncv has joined #gnucash
13:45:22 <jralls> gjanssens: I'm looking at https://bugzilla.gnome.org/show_bug.cgi?id=796484. The problem is that his file has LF line endings. If I change them to CRLF it doesn't throw.
13:45:31 *** ncv has quit IRC
13:45:46 *** ncv has joined #gnucash
13:47:07 *** ncv has quit IRC
13:47:17 *** ncv has joined #gnucash
13:54:33 *** Sebastian has quit IRC
13:55:51 *** Sebastian has joined #gnucash
13:58:35 <gjanssens> jralls: that's ugly :( So boost::tokenizer is sensitive to line endings...
13:59:41 *** fabior has quit IRC
13:59:46 <jralls> Is that from boost::tokenizer? The exception looks like it's from iostreams.
13:59:50 <gjanssens> Or at least our file parser is. Don't know if it's really in the tokenizing step
14:00:20 <gjanssens> Crossed your reply...
14:00:34 <gjanssens> Do you have a stack trace of the throw ?
14:00:45 <gjanssens> To know exactly which line throws
14:01:26 <gjanssens> If not, I can run it myself...
14:01:27 <jralls> Not yet, but I can make one. I was headed towards setting up a bundle with symbols.
14:01:51 <jralls> But I have an open debug session, give me a moment...
14:02:00 <gjanssens> Ok.
14:02:32 <gjanssens> Didn't we change the defaults on Windows to build with debug symbols for the gnucash-git module ?
14:07:15 <jralls> Dammit, gdb won't intercept the frigging throw.
14:09:11 <jralls> Don't remember, but that's not what I have installed in Program Files (x86) atm. Gdb works much better in Powershell, but that means that it only works on the installed GC. Hmm... Maybe...
14:11:20 <gjanssens> Yeah, and obviously it works fine on linux, so it really has to be debugged on Windows
14:11:51 <gjanssens> Unfortunately I don't have my Windows box available for some time to come.
14:12:54 <gjanssens> It has been retrofitted to temporarily serve as freepbx server as our old pbx died two weeks back (trixbox based)
14:13:22 <gjanssens> While I'm waiting for new hardware to arrive it won't be available for gnucash dev work
14:13:50 <jralls> Bummer. Isn't your regular dev box hefty enough to run VMs?
14:16:46 *** hoijui has quit IRC
14:17:41 <gjanssens> It probably is, but I'm used having my vm's on a server so I never took time to set my dev box up for VMs
14:18:04 <gjanssens> The SSD may be a little tight to add them.
14:19:01 <gjanssens> And for Gnucash on Win I salvaged a PC with a real Win7 Pro licence. Saved me from buying a licence for the VM
14:19:31 <jralls> ;-)
14:21:54 * gjanssens has had several hardware issues in a row :(
14:22:16 <gjanssens> I spent the better part of yesterday and today recovering from a failing pfSense firewall
14:22:38 <gjanssens> The hardware seems to have died.
14:22:46 <jralls> That's a pain. Is the hardware getting old?
14:22:51 <gjanssens> Luckily I have backed up the configuration.
14:23:00 <jralls> In general, that is, not just the firewall.
14:23:06 <gjanssens> No IMO this was premature. It was barely two years old
14:23:44 <gjanssens> The PBX on the other hand was due for replacement: that server had run for 15 years!
14:24:12 <gjanssens> Unfortunately it went a few weeks too soon. I was in the process of looking for new hardware :(
14:24:19 *** ncv_ has joined #gnucash
14:25:23 <gjanssens> And I think my main server is up next to be replaced as well, but that's less urgent.
14:25:31 *** ncv has quit IRC
14:25:52 <jralls> At least you hope it is. :-/
14:26:07 <gjanssens> :D
14:26:40 <gjanssens> Yeah, it's been going for 10 years now. But most harddrives have been replaced several times already and I have good backups.
14:27:29 <gjanssens> I plan this for the end of the summer.
14:27:37 <jralls> OK, I got gdb to do my bidding, just needed to set some enviroment variables.
14:27:54 <gjanssens> Good
14:28:59 <jralls> The exception is in the third try to run GncTokenizer::load_file, at line 49, ```in.open(m_imp_file_str.c_str(), std::ios::in | std::ios::binary);```
14:32:28 *** harshitaneja has joined #gnucash
14:33:28 <gjanssens> Hmm, no idea
14:33:40 <gjanssens> Let's figure out what the error means exactly
14:34:01 <warlord> Third try's the charm?
14:36:38 <jralls> warlord: Turns out the first two are calls with an empty path string so they just return.
14:37:34 <warlord> Ah. Lol. Okay.
14:37:41 <warlord> And third has a non-empty path?
14:39:27 <jralls> Yes, though asking to see it in the debugger produces garbage.
14:39:48 <gjanssens> Perhaps we shouldn't try to read in binary mode ?
14:41:23 <jralls> I'd think that would be safer.
14:41:42 <jralls> It should turn off text interpretation, right?
14:42:05 <gjanssens> That's how I understand it.
14:42:30 <gjanssens> Though the interpretation is mostly to do with line endings, exactly the bit that's biting us now
14:42:33 *** User__ has joined #gnucash
14:44:26 <warlord> Reading as binary is going to not translate.. REading as text will allow "getline()" to work.
14:44:33 <warlord> (or readline() -- or whatever it is)
14:45:35 <jralls> warlord: This is C++ iostreams. std::ios::binary turns off interpretation of LF/CRLF in the file.
14:45:52 <warlord> jralls: right,isn't that what I said?
14:45:56 <gjanssens> Well, the code is reading the full csv file in memory in one go
14:46:25 <gjanssens> Using a "read"
14:46:39 <gjanssens> However the failure happens when *opening* the file which I find odd
14:46:49 <gjanssens> In binary mode that is
14:46:54 <jralls> Right.
14:47:44 *** shymega has left #gnucash
14:48:46 *** User__ has quit IRC
14:50:05 <jralls> Oh, snap, I think maybe it's not the line endings but the file name. Hang on...
14:50:35 <gjanssens> That would be more in line with previous issues we had to fix...
14:52:50 <jralls> Yup. The filename is CSVfürGNU.csv. If I change that to CSVFuerGNU.csv it works.
14:53:16 <warlord> Oooh, Filename encoding issue...
14:54:09 <gjanssens> Yay :-(
14:55:17 <jralls> No, I think Yay :-). It's an easy fix and an easy workaround in the meantime.
14:56:00 <jralls> But it also suggests a need to look at every place where we get a string from Windows. That will be a bit of work.
15:00:58 *** Sebastian has quit IRC
15:01:30 *** Sebastian has joined #gnucash
15:03:27 *** Sebastian has quit IRC
15:04:20 *** Sebastian has joined #gnucash
15:07:14 <gjanssens> Yeah that part was what I meant with :-(
15:08:18 <gjanssens> Could we centralize this somehow such that there's only one place in the source we have to deal with encoding conversions ?
15:08:29 <gjanssens> Just dreaming...
15:08:49 *** Sebastian has quit IRC
15:09:25 *** Sebastian has joined #gnucash
15:10:15 <jralls> Two, I think: anything involving file paths and anything involving environment variables.
15:11:48 <jralls> We should probably have a single gnome_utils/gnc_filechooser rather than directly calling GtkFileChooser from every place we use one.
15:12:49 <gjanssens> Ok, reasonable
15:13:16 <jralls> Environment variables are probably a non-problem, I think in general we load them from etc/gnucash/environment rather than asking Windows for them.
15:15:23 <gjanssens> Not exactly. The mechanism is we *set* Windows environment variables as defined in etc/gnucash/environment
15:15:38 <gjanssens> Other parts of gnucash will the read the environment is it sees fit
15:16:01 <gjanssens> But users can equally set global environment variables in Windows to the same effect.
15:16:12 <gjanssens> So there may be enconding issues there as well
15:17:20 <jralls> OK. I think as long as we always use g_getenv() and g_setenv() GLib will take care of us, but we should test that to make sure.
15:17:35 <gjanssens> True
15:20:26 <jralls> Heh, we've already got the common filechooser: https://github.com/Gnucash/gnucash/blob/maint/gnucash/gnome-utils/dialog-file-access.c.
15:24:20 *** redarrow has quit IRC
15:24:28 <gjanssens> Right. The csv importer is kind of an odd case in that it embeds the file chooser in the assistant. I'm not sure what the HIG says about the proper way to combine an assistant with a file chooser...
15:25:01 <gjanssens> Whether the assistant should pop up the file chooser or whether embedding is better.
15:26:00 *** hoijui has joined #gnucash
15:27:35 <warlord> I always thought it was another popup -- because the user *could* theoretically type in the file name directly.
15:31:53 <jralls> Not in the CSV assistant.
15:40:41 *** fabior has joined #gnucash
15:53:33 *** Sebastian has quit IRC
15:54:20 *** Sebastian has joined #gnucash
16:05:07 *** hoijui has quit IRC
16:05:55 *** harshitaneja has quit IRC
16:10:57 *** ArtGravity has quit IRC
16:13:52 *** redarrow has joined #gnucash
16:20:06 *** gour has quit IRC
16:21:25 *** gjanssens has quit IRC
16:33:01 *** ncv_ has quit IRC
16:46:35 *** warlord has quit IRC
16:50:27 *** fabior has quit IRC
16:58:57 *** Sebastian has quit IRC
17:00:39 *** Sebastian has joined #gnucash
17:04:01 *** Sebastian has quit IRC
17:05:30 *** Sebastian has joined #gnucash
17:18:31 *** Sebastian has quit IRC
17:21:08 *** Sebastian has joined #gnucash
17:46:19 *** Sebastian has quit IRC
18:05:25 *** Sebastian has joined #gnucash
18:07:18 *** Sebastian has quit IRC
18:08:25 *** Sebastian has joined #gnucash
18:10:07 *** Sebastian has quit IRC
18:10:57 *** Sebastian has joined #gnucash
18:14:39 *** Sebastian has quit IRC
18:15:18 *** Sebastian has joined #gnucash
18:22:54 *** oozer has quit IRC
18:23:45 *** oozer has joined #gnucash
18:42:26 *** pilotauto has joined #gnucash
18:45:48 *** ArtGravity has joined #gnucash
19:14:49 *** Sebastian has quit IRC
19:15:38 *** Sebastian has joined #gnucash
19:19:38 *** Sebastian has quit IRC
19:20:17 *** Sebastian has joined #gnucash
20:17:59 <jralls> @tell gjanssens Well, there's a problem with unicode strings: https://stackoverflow.com/questions/821873/how-to-open-an-stdfstream-ofstream-or-ifstream-with-a-unicode-filename.
20:17:59 <gncbot> jralls: The operation succeeded.
20:34:52 *** Sebastian has quit IRC
20:59:29 *** Dee has joined #gnucash
21:04:07 *** Dee has quit IRC
21:21:34 *** ArtGravity has quit IRC
21:22:53 <jralls> @tell gjanssens But you probably knew that, which is why you used boost::filesystem. I'm still wrestling with the best way to divide up the work between gnc_filepath_utils and GncTxImport.
21:22:53 <gncbot> jralls: The operation succeeded.
21:39:33 *** oozer has quit IRC
21:43:55 *** Dee has joined #gnucash
21:48:57 *** pilotauto has quit IRC
21:59:23 *** Dee has quit IRC
22:49:45 *** pilotauto has joined #gnucash