2021-09-29 GnuCash IRC logs

00:04:25 *** Jeanl has joined #gnucash
00:06:28 *** PhotoMan has quit IRC
00:06:43 *** PhotoMan has joined #gnucash
00:06:43 *** ChanServ sets mode: +v PhotoMan
00:07:26 *** Jeanl has quit IRC
00:23:06 *** PhotoMan has quit IRC
00:23:20 *** PhotoMan has joined #gnucash
00:23:20 *** ChanServ sets mode: +v PhotoMan
00:33:55 <jralls> chris, It depends on how your test logic will work. If you want to test e.g. `if (negative_allowed && zero_allowed)` then the best way is something like https://gist.github.com/jralls/bc55c0604355dd2b0663b47d9cec6418.
00:39:24 <jralls> OTOH if you envision 8 operations then it's clearer to use a plain enum with suitable names corresponding to the operations. (It looks like it's really 7 categories, I don't see any instances of N101.
00:42:16 <jralls> You could also mix the approaches because you can always use binary operations to test the enum. You might use a macro `#define NEGATIVE_ALLOWED(x) x & 0x4`
00:49:20 *** Mechtilde has joined #gnucash
00:54:37 *** PhotoMan has quit IRC
00:54:54 *** PhotoMan has joined #gnucash
00:54:54 *** ChanServ sets mode: +v PhotoMan
00:57:29 *** PhotoMan has quit IRC
00:57:44 *** PhotoMan has joined #gnucash
00:57:44 *** ChanServ sets mode: +v PhotoMan
01:02:28 *** PhotoMan has quit IRC
01:03:47 *** PhotoMan has joined #gnucash
01:03:47 *** ChanServ sets mode: +v PhotoMan
01:07:31 *** Mechtilde has quit IRC
01:16:13 *** sbluhm has joined #gnucash
01:21:47 *** fell has quit IRC
01:23:05 *** fell has joined #gnucash
01:23:06 *** ChanServ sets mode: +o fell
01:24:04 *** frakturfreak1 has quit IRC
01:30:34 *** Jeanl has joined #gnucash
01:38:34 *** frakturfreak1 has joined #gnucash
01:44:17 *** o01eg has quit IRC
02:32:52 *** Jeanl has quit IRC
02:41:13 *** kcin has joined #gnucash
02:42:46 *** Mechtilde has joined #gnucash
02:53:45 *** Mechtilde has quit IRC
03:01:01 *** hptina has joined #gnucash
03:01:03 *** ChanServ sets mode: +v hptina
03:42:13 *** gjanssens has joined #gnucash
03:42:14 *** ChanServ sets mode: +o gjanssens
03:42:19 <gjanssens> .
03:44:11 *** Mechtilde has joined #gnucash
04:13:36 *** Mechtilde has quit IRC
04:32:33 *** Mechtilde has joined #gnucash
04:59:53 *** User has joined #gnucash
05:40:06 *** fell has quit IRC
05:44:26 *** fell has joined #gnucash
05:44:27 *** ChanServ sets mode: +o fell
05:45:37 *** Aussie_matt has joined #gnucash
06:05:49 *** Mechtilde has quit IRC
06:06:56 *** fell has quit IRC
06:07:47 *** fell has joined #gnucash
06:07:48 *** ChanServ sets mode: +o fell
06:13:47 *** fell has quit IRC
06:16:26 *** fell has joined #gnucash
06:16:27 *** ChanServ sets mode: +o fell
06:33:55 *** Jeanl has joined #gnucash
06:36:57 *** Jeanl has quit IRC
06:52:35 *** chf has quit IRC
06:59:24 *** chf has joined #gnucash
07:03:34 *** Mechtilde has joined #gnucash
07:05:54 *** jwp has joined #gnucash
07:11:56 *** chf has quit IRC
07:16:42 *** hptina has quit IRC
07:26:14 *** usamimikamen_sk has joined #gnucash
07:26:15 *** ChanServ sets mode: +v usamimikamen_sk
07:53:45 *** hptina has joined #gnucash
07:53:47 *** ChanServ sets mode: +v hptina
08:08:56 *** fell has quit IRC
08:09:47 *** fell has joined #gnucash
08:09:48 *** ChanServ sets mode: +o fell
08:19:12 *** hptina has quit IRC
08:42:29 *** usamimikamen_sk has quit IRC
08:43:35 *** Mechtilde has quit IRC
08:47:30 *** Jimraehl1 has joined #gnucash
08:48:12 *** Mechtilde has joined #gnucash
09:09:28 *** sbluhm has quit IRC
09:15:58 *** usamimikamen_sk has joined #gnucash
09:15:59 *** ChanServ sets mode: +v usamimikamen_sk
09:18:02 <usamimikamen_sk> gnucash-docs:maint has not merged into master for 4.8yet
09:18:42 <warlord> Do we even use master on -docs?
09:18:52 <warlord> The nightly builds certainly do not.
09:21:10 <usamimikamen_sk> We don't use the master directory, but they are merged every release.
09:22:03 <usamimikamen_sk> See the branch history of gnucash-docs:master.
09:23:23 <usamimikamen_sk> I think developers forgot to merge them.
09:23:30 <warlord> Well, most likely there were no changes in the past 2 days between 4.7 and 4.8 -- was 4.7 merged?
09:23:52 <warlord> That's also possible -- again, we don't use docs master for anything.
09:24:58 <usamimikamen_sk> gnucash-docs/CMakeLists.txt is changed.
09:26:21 <usamimikamen_sk> I think a policy exists for master.
09:31:56 <chris> jwp: register with nickserv
09:34:25 *** ChanServ sets mode: +v jwp
09:36:24 <jwp> Hi! I'm having trouble compiling gnucash 4.8 in Ubuntu: cmake error. Is there someone who could assist me?
09:37:16 *** Aussie_matt has quit IRC
09:39:54 <chris> jwp:paste your error into pastebin.com
10:00:05 <jwp> https://pastebin.com/anNKZXHJ
10:02:01 <chris> if it's a schema issue maybe jralls (in 1-2 hour or so) or gjanssens (maybe later) will be able to assist
10:02:24 <chris> the CMake + ninja build system is more understood
10:08:39 *** jralls_laptop has joined #gnucash
10:09:15 <jwp> this was introduced in 4.8, 4.7 was working fine
10:09:33 *** ChanServ sets mode: +o jralls_laptop
10:11:10 *** ArtGravity has joined #gnucash
10:11:10 *** ChanServ sets mode: +v ArtGravity
10:11:46 <jralls_laptop> jwp The cat command wasn't introduced to cmake until 3.18 and most distros don't have that. The workaround is simple, just edit gnucash/gschemas/CMakeLists.txt and remove `$(CMAKE_EXECUTABLE) -E from that line.
10:16:12 *** chf has joined #gnucash
10:21:26 <jwp> Just to be clear, this line: COMMAND ${CMAKE_COMMAND} -E cat ${gschema_migration_files} > ${DATADIR_BUILD}/${PROJECT_NAME}/migratable-prefs.xml
10:22:00 <jwp> becomes: COMMAND cat ${gschema_migration_files} > ${DATADIR_BUILD}/${PROJECT_NAME}/migratable-prefs.xml
10:28:11 <gjanssens> warlord, usamimikamen_sk: we currently have nothing in particular on gnucash-docs master as we don't have anything to document that exists solely on master.
10:29:26 <gjanssens> The merge after release is just a convenience, not a hard rule. We can do it at any time, and it should be done before we start making releases from gnucash-docs. That will be at the earliest shortly before the 5.0 release cycle.
10:30:39 <gjanssens> On gnucash we merge more frequently to avoid merge conflicts with much history as that makes them harder to resolve. But even there, there's not much on master that's not in maint so the merges are mostly for convenience.
10:31:54 <jralls_laptop> jwp, Yes.
10:32:37 <usamimikamen_sk> gjanssens: I see. Thank you for describing the background.
10:48:51 <jwp> jralls_laptop: the patch works! Thank you!
10:49:01 *** usamimikamen_sk has quit IRC
10:49:28 *** PhotoMan has quit IRC
10:49:40 *** PhotoMan has joined #gnucash
10:49:40 *** ChanServ sets mode: +v PhotoMan
10:49:51 <gjanssens> Well, cmake's built-in cat command being so recent was a surprise me :(
10:49:51 <jwp> I will publish the new version in my PPAs: https:xtradeb.net
10:50:01 <gjanssens> jwp: cool!
10:51:39 *** chris has quit IRC
10:59:42 *** PhotoMan has quit IRC
10:59:57 *** PhotoMan has joined #gnucash
10:59:57 *** ChanServ sets mode: +v PhotoMan
11:03:17 *** chris has joined #gnucash
11:03:17 *** ChanServ sets mode: +v chris
11:03:17 *** gncbot sets mode: +o chris
11:28:12 *** jervin has quit IRC
11:35:06 *** guak has joined #gnucash
11:39:34 *** Mechtilde has quit IRC
11:51:01 *** Mechtilde has joined #gnucash
11:54:03 *** jwp has quit IRC
11:54:14 *** jwp has joined #gnucash
11:56:31 *** jralls_laptop has quit IRC
12:14:54 *** Mechtilde has quit IRC
12:23:32 *** ChanServ sets mode: +v jwp
13:02:39 <jralls> gjanssens, what do you think of making the work-around the fix?
13:08:48 *** sbluhm has joined #gnucash
13:30:48 <gjanssens> jralls: please do. There are too many distros still with older cmake versions
13:31:02 <jralls> OK.
13:32:11 *** Hamaryns has joined #gnucash
13:32:11 *** ChanServ sets mode: +v Hamaryns
13:32:48 *** sbluhm has quit IRC
13:36:14 <jralls> Done.
13:38:13 *** Hamaryns has quit IRC
13:39:02 *** Hamaryns has joined #gnucash
13:39:02 *** ChanServ sets mode: +v Hamaryns
13:52:58 *** sbluhm has joined #gnucash
13:56:09 *** jervin has joined #gnucash
13:57:55 *** KipITOne has quit IRC
13:58:32 *** KipITOne has joined #gnucash
13:58:33 *** ChanServ sets mode: +v KipITOne
14:49:59 *** sbluhm has quit IRC
15:09:29 *** Jeanl has joined #gnucash
15:28:10 *** Mechtilde has joined #gnucash
15:41:28 *** sbluhm has joined #gnucash
15:45:02 *** Mechtilde has quit IRC
15:46:19 *** tomk_dk has joined #gnucash
15:57:56 *** Hamaryns has quit IRC
16:07:43 *** sbluhm has quit IRC
16:15:16 *** ldir has quit IRC
16:15:29 *** KevinDB has joined #gnucash
16:15:29 *** ChanServ sets mode: +v KevinDB
16:16:01 *** TownsendHardware has joined #gnucash
16:24:59 *** User has quit IRC
17:07:45 *** frakturfreak1 has quit IRC
17:18:19 *** gjanssens has quit IRC
17:21:39 *** tomk_dk has quit IRC
18:12:10 *** jwp has quit IRC
18:54:19 *** storyjesse has joined #gnucash
19:04:51 *** ArtGravity has quit IRC
19:05:54 *** storyjesse has quit IRC
20:25:41 *** guak has quit IRC
21:35:30 <chris> CDB-Man in one of your datafiles the 02/05/20 BUY txn is weird... cash-amt is valued as CA$ -47500 but the USD register shows $0.00; this throws the txn autodetect