2020-10-22 GnuCash IRC logs
00:16:39 *** gnucrash has joined #gnucash
00:21:28 <gnucrash> I don't have experience building software but I want the latest GnuCash. The ones in the distribution's repositories are quite outdated. I tried going through the installation documentation but it doesn't make sense to me. Can someone help? Is there like a tutorial somewhere?
00:30:46 *** jervin has quit IRC
00:39:55 *** jervin has joined #gnucash
00:40:48 *** jervin has quit IRC
00:48:30 *** jervin has joined #gnucash
00:49:54 *** suukim has joined #gnucash
00:50:11 <fell> gnucrash, which distro?
00:51:35 <gnucrash> ElementaryOS
01:08:20 <fell> gnucrash, the most recent versions in debian based distributions are usually in backports.
01:09:04 <fell> Or you can try https://wiki.gnucash.org/wiki/Flatpak
01:26:35 *** bertbob has quit IRC
01:30:56 <gnucrash> I added the backport rep. But then I get an error
01:30:57 <gnucrash> The following packages have unmet dependencies:
01:30:57 <gnucrash> gnucash : Depends: libaqbanking44 (>= 5.99.43) but it is not going to be installed
01:30:57 <gnucrash> Depends: libboost-date-time1.67.0 but it is not installable
01:30:57 <gnucrash> Depends: libboost-filesystem1.67.0 but it is not installable
01:30:57 <gnucrash> Depends: libboost-locale1.67.0 but it is not installable
01:30:57 <gnucrash> Depends: libboost-program-options1.67.0 but it is not installable
01:30:57 <gnucrash> Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not installable
01:30:58 <gnucrash> Depends: libboost-system1.67.0 but it is not installable
01:30:59 <gnucrash> Depends: libgwengui-gtk3-79 (>= 5.4.0~) but it is not going to be installed
01:31:01 <gnucrash> Depends: libgwenhywfar79 (>= 4.1.0) but it is not going to be installed
01:31:03 <gnucrash> Depends: libicu63 (>= 63.1-1~) but it is not installable
01:31:04 <gnucrash> Depends: libofx7 (>= 1:0.9.14) but it is not going to be installed
01:31:06 <gnucrash> Depends: libwebkit2gtk-4.0-37 (>= 2.30.1~) but 2.28.4-0ubuntu0.18.04.1 is to be installed
01:31:08 <gnucrash> Recommends: gnucash-docs but it is not going to be installed
01:31:09 <gnucrash> Recommends: python3-gnucash but it is not going to be installed
01:31:11 <gnucrash> Recommends: yelp but it is not going to be installed
01:31:12 <gnucrash> E: Unable to correct problems, you have held broken packages.
01:32:47 *** bertbob has joined #gnucash
01:32:47 *** ChanServ sets mode: +v bertbob
01:35:40 <fell> That means, you would have the libboost-* and libicu before you can successful build gnucash.
01:38:04 <fell> … to build … the libboost-*
01:38:40 <gnucrash> fell: I guess it'd be easier to just change the disto.
01:39:24 <fell> or try the flatpak?
01:40:24 <fell> Best distris for developement are IMHO that with a rolling release.
01:40:24 *** sbluhm has joined #gnucash
01:40:24 *** ChanServ sets mode: +v sbluhm
01:41:00 *** frakturfreak has quit IRC
01:46:02 *** jervin has quit IRC
01:52:21 <gnucrash> fell: Yep... Gonna try flatpak too.
01:55:02 *** o01eg has quit IRC
01:55:05 *** fell has quit IRC
01:55:43 *** frakturfreak has joined #gnucash
01:55:43 *** ChanServ sets mode: +v frakturfreak
01:56:24 *** fell has joined #gnucash
01:56:24 *** ChanServ sets mode: +o fell
01:58:07 <gnucrash> flatpak run org.gnucash.GnuCash
01:58:08 <gnucrash> ldconfig: /app/lib/libguile-2.2.so.1.3.0-gdb.scm is not an ELF file - it has the wrong magic bytes at the start.
01:58:08 <gnucrash> Gtk-Message: 11:26:40.681: Failed to load module "pantheon-filechooser-module"
01:58:08 <gnucrash> Found Finance::Quote version 1.49.
01:58:08 <gnucrash> Gtk-Message: 11:27:04.504: Failed to load module "pantheon-filechooser-module"
01:58:08 <gnucrash> Gtk-Message: 11:27:07.880: Failed to load module "pantheon-filechooser-module"
01:58:16 <gnucrash> Are these expected problems in flatpak?
02:00:51 *** giuseppef_ has joined #gnucash
02:01:29 <giuseppef_> Hi all, I have updated Italian translation. I need help with github to push my commit. Thanks
02:06:24 *** vuamw has joined #gnucash
02:07:11 <fell> gnucrash, no idea1 See https://www.google.com/search?channel=trow2&client=firefox-b-d&q=pantheon-filechooser
02:08:25 <fell> giuseppef_, where is the problem?
02:08:52 <giuseppef_> I don't remember how to do it
02:09:26 <giuseppef_> my fork is not updated with master, and I think this is the first problem
02:09:37 <gnucrash> fell: I guess the configuration in flatpak is leading to it. Gnucash did boot without any issues so if I remove Pantheon from the flatpak, it should solve it.
02:10:08 <gnucrash> Don't know about ldconfig however.
02:11:25 *** vuamw has quit IRC
02:11:58 <fell> giuseppef_, which component do you want to update? program, docs, website?
02:12:21 <giuseppef_> (program) just po/it.po
02:12:49 <fell> are you mociaF on github?
02:13:24 <giuseppef_> mocioF
02:13:40 <fell> right!
02:15:17 <fell> Our working branch is usually maint.
02:16:09 <fell> Only short befor a major release we use master or unstable
02:17:16 <fell> please describe me your setup.
02:17:59 <fell> did you install git?
02:18:31 <fell> … and work locally
02:19:43 <giuseppef_> Yes I have installed git
02:21:39 <gnucrash> Anyway, since I've very limited time, I've decided to just switch my distro. Did my quick research on repology and found a distro with the latest GnuCash. Thanks guys. :)
02:21:58 <giuseppef_> I have a copy of Gnucash/gnucash now (and I think this is not what it should be)
02:22:47 <fell> you should fetch from github.com/Gnucash/gnucash, (work locally, ) and push to MocioF/gnucash
02:23:15 <giuseppef_> $ git remote show origin
02:23:30 <giuseppef_> * remoto origin
02:23:30 <giuseppef_> URL recupero: https://github.com/Gnucash/gnucash
02:23:30 <giuseppef_> URL push: https://github.com/Gnucash/gnucash
02:23:30 <giuseppef_> branch HEAD: maint
02:23:30 <giuseppef_> Branch remoti:
02:23:30 <giuseppef_> ...
02:23:42 <fell> Welcome, gnucrash.
02:24:13 *** vuamw has joined #gnucash
02:24:13 *** gnucrash has quit IRC
02:26:18 <fell> giuseppef_ is there another remote defined? git remote -v
02:26:43 <giuseppef_> origin https://github.com/Gnucash/gnucash (fetch)
02:26:43 <giuseppef_> origin https://github.com/Gnucash/gnucash (push)
02:26:43 <giuseppef_> upstream https://github.com/Gnucash/gnucash (fetch)
02:26:43 <giuseppef_> upstream https://github.com/Gnucash/gnucash (push)
02:27:34 <fell> git fetch origin
02:28:00 <fell> on which branch are you?
02:28:43 <giuseppef_> i did fetch origin
02:29:17 <giuseppef_> branch should be maint
02:30:15 <giuseppef_> git fetch origin
02:30:15 <giuseppef_> Da https://github.com/Gnucash/gnucash
02:30:15 <giuseppef_> 22a7b3571..94a68dca7 maint -> origin/maint
02:30:15 <giuseppef_> 1d97f2634..415f625be master -> origin/master
02:30:39 <giuseppef_> git remote -v
02:30:40 <giuseppef_> origin https://github.com/Gnucash/gnucash (fetch)
02:30:40 <giuseppef_> origin https://github.com/Gnucash/gnucash (push)
02:30:40 <giuseppef_> upstream https://github.com/Gnucash/gnucash (fetch)
02:30:40 <giuseppef_> upstream https://github.com/Gnucash/gnucash (push)
02:33:18 <fell> I have receently commited https://github.com/Gnucash/gnucash/commit/99c333718914bbd223ea19d83b206bf6433f5802#diff-15b3c8931fed1524ca3c16709564c6149ceea8a52daac0c0f4b0da14100108c5
02:33:58 <fell> Is your work based on it?
02:36:31 <giuseppef_> I hope so. I just made "git pull upstream maint"; then generated the pot files, and then updated my it.po
02:38:06 <fell> did you also a 'rebase'?
02:38:45 <giuseppef_> not sure
02:39:09 <giuseppef_> I can do it all the stuff from zero, if you can help me
02:39:31 <giuseppef_> $ git rebase
02:39:31 <giuseppef_> Il branch corrente maint è aggiornato.
02:40:01 <fell> save your current wok in an new branch
02:42:26 <giuseppef_> I can clear all in local. I have a copy of the file outside of git directory
02:43:43 <fell> that is usuall not required
02:46:40 *** suukim has quit IRC
02:46:46 <fell> just create a branch it.po-update or similar and cheery-pick your commits.
02:47:21 <fell> then push it upstream.
03:17:45 <giuseppef_> Hi fell, please check what I did. Thanks
03:21:25 *** fell has quit IRC
03:21:45 *** fell has joined #gnucash
03:21:45 *** ChanServ sets mode: +o fell
03:23:28 <fell> giuseppef_, the beginning of the changes looks good, create a PR,p lease.
03:24:24 *** vuamw has quit IRC
03:24:44 <giuseppef_> I did it
03:25:00 <fell> I have to leavesoon and will do the full review in the evening.
03:25:20 <giuseppef_> Ok, see you later. Bye
03:25:24 *** giuseppef_ has quit IRC
03:26:01 <fell> Ciao!
03:32:48 *** vuamw has joined #gnucash
03:37:27 *** gjanssens has joined #gnucash
03:37:27 *** ChanServ sets mode: +o gjanssens
03:58:57 *** bertbob has quit IRC
04:01:26 *** bertbob has joined #gnucash
04:01:26 *** ChanServ sets mode: +v bertbob
04:04:29 *** bertbob has quit IRC
04:12:02 *** bertbob has joined #gnucash
04:12:02 *** ChanServ sets mode: +v bertbob
04:23:05 *** Aussie_matt has quit IRC
05:09:53 *** User_ has joined #gnucash
05:12:19 *** Mechtilde has joined #gnucash
05:57:43 *** o01eg has joined #gnucash
06:02:01 *** User_ has quit IRC
06:08:02 *** fell has quit IRC
06:08:24 *** fell has joined #gnucash
06:08:24 *** ChanServ sets mode: +o fell
06:08:43 *** ramontjunior has joined #gnucash
06:49:01 *** joe7 has quit IRC
06:49:02 *** joe7 has joined #gnucash
06:49:04 *** joe7 has quit IRC
06:49:14 *** joe7 has joined #gnucash
06:51:24 *** joe7 has quit IRC
06:51:55 *** joe7 has joined #gnucash
07:05:06 *** Herbert has joined #gnucash
07:05:12 *** Herbert has quit IRC
08:09:24 <warlord> fell, If you can see the changes via view-source on www.gnucash.org that means they are there, but for whatever reason not displaying to you?
08:14:12 *** hussam has quit IRC
08:47:28 *** joe7 has quit IRC
09:07:32 *** Jimraehl1 has joined #gnucash
09:08:28 *** Jimraehl1 has quit IRC
09:12:12 *** Robert847 has joined #gnucash
09:15:32 *** ChanServ sets mode: +v Robert847
09:18:26 *** joe7 has joined #gnucash
09:30:51 <Robert847> Hi. I am having GnuCash 2.6.19 fail to start in Ubuntu 18.04 for the first time in months. After crashing twice I looked for the trace file and found it empty, so I tried starting it in terminal with gnucash --debug --logto=stderr --nofile. That time it started normally, but when I selected the data file it ran up to trying to open a report, then after INFO <qof.query> [qof_query_run_internal] matching objects=0x555715b34f80 c
09:30:52 <Robert847> 5
09:30:52 <Robert847> " it ceased to run with several open threads but no cpu time according to htop
09:38:49 <Robert847> I am having issues with the hard drive filling up so I tried using bleachbit to remove some temporary files before rebooting this morning
09:40:18 <Robert847> perhaps I shot myself in the foot.
09:40:40 <Robert847> If so I need some help to recover
09:41:09 <warlord> Check your data file sizes and ensure the did didn't fill when you saved?
09:41:34 <warlord> It's certainly possible some data (or meta data) got corrupted if the disk filled.
09:42:04 <warlord> If it's just bad metadata, you can delete the metadata (.gcm) file safely. But if your DATA got corrupted, you will need to revert to a backup and re-enter any changes.
09:47:26 <Robert847> OK, I will look at those possibilities. The data file seems to be about the right size, and it appears to have choked on a report. I will try opening a data backup first, but if it is the gcm I think I have a slightly stale backup of that too.
09:50:10 <Robert847> The windows are frozen open. I have never tried killing processses. Is that the eaasiest way to clean up before restarting GnuCash?
09:50:42 <Robert847> I could reboot
09:51:27 <Robert847> I don't have anything else important running on that machine
09:53:07 <Robert847> Thinking out loud, I will reboot
10:03:10 <warlord> If GnuCash is open, you will have to "open anyways" because it will hold a lock file.
10:09:53 <Robert847> yep, the lock file is there
10:11:16 <Robert847> just for grins I am trying open read only. this is only a test
10:15:35 <warlord> Doesn't matter. If you rebooted it is perfectly save to Open Anyways
10:15:45 <Robert847> Aha! this time it crashed with this error! * 09:12:54 INFO <qof.query> [qof_query_run_internal] matching objects=0x55c65a900080 count=59
10:15:46 <Robert847> ERROR: In procedure read:
10:15:46 <Robert847> ERROR: In procedure scm_i_lreadparen: #<unknown port>:1:16051: end of file
10:15:46 <Robert847> is that a GCM problem?
10:17:14 <warlord> It certainly sounds like it's a metadata problem. Could be GCM, or saved-reports.
10:23:41 *** Agfarmer18 has joined #gnucash
10:48:31 <Robert847> The gcm ended in the middle of page 123 so I tried deleting that page from a copy and re-opening the file. Now there is a group of warnings about the key file missing pages 123 through 133. Can I save the data file then just expect those pages to be lost, otherwise be good.
10:48:54 <Robert847> The data file seems to be complete
10:50:49 <warlord> Just try running without the GCM. It's about your open pages and other settings.
10:53:12 <Robert847> That worked on the last backup. I want to try to recover as much of the gcm as possible
10:55:09 <Robert847> I have a whole boatload of column widths that I am too lazy to recreate
10:57:47 <warlord> LOL. OKay.
10:58:42 *** Mechtilde has quit IRC
11:00:09 <Robert847> I see an entry in the gcm window 1 description showing page count 133 and page order ... I could try editing that to remove those last ten pages
11:00:59 <Robert847> Today I have time to play...
11:02:52 <warlord> Sure. You could try it.
11:02:54 <warlord> I
11:03:04 <warlord> I've honestly never looked at my GCM file
11:04:21 <warlord> How many tabs do you leave open?!?
11:04:40 <warlord> My gcm file is like 11KB
11:05:07 <Robert847> According to that file there are supposed to be 133, but the last ten went missing
11:06:16 *** bertbob has quit IRC
11:06:21 <warlord> Do you have 133 tabs open?!?
11:07:52 <Robert847> The corrupted GCM s 233kB, and my truncated copy is 217 kB
11:09:43 <Robert847> Yesterday there apparently were 133 tabs but I never counted
11:10:44 *** bertbob has joined #gnucash
11:10:44 *** ChanServ sets mode: +v bertbob
11:10:51 <Robert847> of course that was not counting the SLR windows
11:12:03 <warlord> WOW...
11:12:35 <Robert847> It was working, just rather sslowly
11:15:22 <Robert847> the updated gcm now shows 122 pages, so I think it is ok
11:17:36 <warlord> Still, thats a TON of open tabs. I mean, I usually have like 5 or 6..
11:17:46 <warlord> My main data file has 3
11:18:28 <fell> warlord, the other way, view-source still shows the state of last month.
11:19:20 <Robert847> GnuCash is very accommodating as long as we follow the rules!!!!!
11:19:46 <fell> most changes were on metadata.
11:23:57 <fell> The only visible, which I recall, in https://www.gnucash.org/develdocs.phtml?lang=de_DE I fixed in line 2 Documentation to Dokumentation.
11:24:28 <warlord> fell: was there any error on commit? You should see if the website pulled the updates.
11:25:46 <fell> I will watch the next commits. At first i had suspected my browser cache.
11:28:08 <warlord> I don't know what to try. Let me try tickling www and see if it pulls.
11:29:01 <warlord> It did, but it pulled.. beta?
11:29:24 <warlord> ./update-website
11:29:24 <warlord> From code.gnucash.org:gnucash-htdocs
11:29:24 <warlord> c940ae2..5e6c9e3 beta -> origin/beta
11:29:24 <warlord> Ncat: Connection reset by peer.
11:31:37 <fell> beta seems fixed now.
11:32:22 <warlord> maybe there was a network glitch when you last committed?
11:32:33 <warlord> You should see that output at the end of your push
11:39:21 <fell> I will watch it next time closer.
11:46:42 *** joe7 has quit IRC
11:54:23 <warlord> ok
12:06:14 *** Mechtilde has joined #gnucash
12:17:07 *** guak has joined #gnucash
12:21:39 *** sbluhm has quit IRC
12:48:55 *** Mechtilde has quit IRC
12:49:44 *** jervin has joined #gnucash
12:52:31 *** Mechtilde has joined #gnucash
13:09:04 *** giuseppef has joined #gnucash
13:14:09 *** sbluhm has joined #gnucash
13:14:09 *** ChanServ sets mode: +v sbluhm
13:19:51 *** storyjesse has quit IRC
13:32:22 *** hussam has joined #gnucash
13:32:22 *** ChanServ sets mode: +v hussam
13:33:09 *** hussam has quit IRC
13:33:59 *** hussam has joined #gnucash
13:33:59 *** ChanServ sets mode: +v hussam
13:43:05 *** Agfarmer18 has quit IRC
13:50:56 *** jervin has quit IRC
14:04:52 *** guiu has joined #gnucash
14:09:08 *** giuseppef has quit IRC
14:09:12 *** giuseppef has joined #gnucash
14:09:49 *** ArtGravity has joined #gnucash
14:09:49 *** ChanServ sets mode: +v ArtGravity
14:14:44 <guiu> I have an account tree set up, and i have two bank accounts there. When I generate the Expense Chart, for example, I can see all the expenses from both accounts. Is it possible to have a expense report, only for expenses in one of the accounts ? In accounts tab I tried to select only the account i want to generate the report for, but it resets to all the expenses accounts.
14:28:30 *** jervin has joined #gnucash
14:42:38 <jralls> guiu: The expense chart looks at expense accounts, not asset accounts. I don't think that we have a chart report that will show expesnses for a single asset account. The simplest way to get what you want would be to run a transaction account for the account and period you want to cover, paste the results into a spreadsheet, and do a pivot table.
14:50:54 <guiu> @jralls Then, the chart report does not have that functionality built in. So what you are basically saying is to export the data, and generate the desired graph in a spreadsheet.
14:50:54 <gncbot> guiu: Error: "jralls" is not a valid command.
14:51:06 <guiu> #jnralls
14:51:18 <jralls> Correct.
14:52:22 <guiu> ok, thanks. Do you think this functionality is not built in for some reason, or is it because nobody took the time to implement it ? I think it would be an interesting thing to have.
14:52:51 <guiu> maybe there is some conceptual reason not to have that, and i am missing it.
14:56:44 <jralls> Dunno why not. It may well be that whoever wrote that report didn't think of adding a filter for asset accounts. Patches welcome.
15:01:16 *** angel has joined #gnucash
15:05:33 <guiu> jralls: I might give it a look at the code, and see how easy it would be to implement.
15:05:55 <jralls> OK.
15:07:33 *** David has joined #gnucash
15:08:38 <jralls> BTW, you asked if there's a conceptual reason: There is. From an accounting viewpoint it doesn't matter at all what asset account you used to pay an expense. In accrual accounting the expense may not even have been payed yet.
15:39:43 *** JayC has quit IRC
15:42:36 *** JayC has joined #gnucash
15:42:36 *** ChanServ sets mode: +v JayC
15:43:05 *** halipaul has quit IRC
15:55:07 *** halipaul has joined #gnucash
16:06:20 *** ramontjunior has quit IRC
16:06:23 *** Mechtilde has quit IRC
16:08:53 *** David has quit IRC
16:09:06 *** David has joined #gnucash
16:09:13 *** bertbob has quit IRC
16:12:54 *** gjanssens has quit IRC
16:12:58 *** angel has quit IRC
16:15:51 *** bertbob has joined #gnucash
16:15:51 *** ChanServ sets mode: +v bertbob
16:30:15 *** giuseppef has quit IRC
16:30:18 *** giuseppef has joined #gnucash
16:30:18 *** ChanServ sets mode: +v giuseppef
16:47:09 <guiu> jralls: In that case, imagine we have two different departments, and we want to have reports on what are the expenses for each department divided by spend type. How would you do that ? I understand that a bank account, does not have to correspond to any "department", and i believe this might be the conceptual mistake.
16:48:20 <guiu> AFAIK, there is no way to add "categories", or "tags", to transactions.
16:49:25 <jralls> guiu, There are several free-text fields on transactions and splits, but since the expense chart report doesn't have any filters that doesn't matter.
16:50:29 <giuseppef> guiu, usually, in those cases usually you have to build an account tree with duplicated accounts. This is what is usually done in a company with many departments
16:50:43 <jralls> You can create separate per-department expense accounts, but as a general statement if your company is big enough to have departments it's not likely that GnuCash is a suitable choice for you.
16:52:16 <giuseppef> Hi fellen, I just received commit notice. Thanks. I will do what asked soon
16:53:25 <fell> Buona sera, giuseppef, grazie!
16:54:27 <guiu> jralls: Actually, it was an example to try explain the idea, i am not using it for managing a company. When you talk about duplicated accounts, you mean duplicated Expense Accounts, so i can then assign the expense to "CategoryA:Beer", or "CategoryB:Beer". Then I can select the expense accounts only from the parent CategoryA, or CategoryB
16:54:48 <jralls> Exactly.
16:56:53 <jralls> Though that can get painful when you want to look at the big picture: You can easily roll that up to categoryA and CategoryB, but it's harder to roll it up to Beer.
16:57:38 <jralls> Depending on your needs then you might prefer Beer:CategoryA and Beer:CategoryB.
16:58:53 <fell> It must not be a duplication. You can also at the first level be: 1. type of cost, 2. place of cost, 3. cost carrier. Then you can have in 1 Beer and later Party or Sale.
17:00:39 *** sbluhm has quit IRC
17:04:26 <fell> And with the cash flow report on 2 you see the full graph.
17:06:59 *** giuseppef_ has joined #gnucash
17:07:37 <giuseppef_> Hi fell, can I talk in private with you?
17:10:07 *** David has quit IRC
17:10:20 *** David has joined #gnucash
17:57:29 *** Agfarmer18 has joined #gnucash
18:07:02 <warlord> jralls, do you have time to answer a stupid git question (stupid for me, probably easy for you)?
18:07:12 <jralls> Sure.
18:07:55 <warlord> Let's say I forked a repo, and I have a dev branch in my fork that tracks the dev branch of the upstream. I've added a bunch of local commits to the dev branch on my fork, and I've merged in upstream/dev to keep it in track (so I'm ahead, and not behind).
18:08:24 <warlord> Now I want to make a new branch off upstream/dev, into (say) origin/NewFeature, so I can (independently) make a new PR against upstream.
18:08:39 <warlord> These new changes are not dependent upon the current work in my "dev" branch.
18:08:40 <fell> N.A.: "A small step for a man, …"
18:09:17 <warlord> So... how do I create this new branch off upstream/dev into origin/NewFeature so I can make a PR with the (one-line) change?
18:09:23 <warlord> (NB: not gnucash related, but...)
18:09:57 <jralls> git checkout -b NewFeature upstream/dev
18:11:15 <jralls> And BTW it's better to rebase origin/dev on upstream/dev instead of merging. If you merge you get merge commits which make your PRs ugly and difficult for upstream to merge.
18:11:41 <warlord> So git fetch upstream; git rebase upstream/dev ?
18:11:52 <jralls> Yeah.
18:12:59 <warlord> Okay.
18:13:27 <warlord> If I do that git checkout -- will that do a "clean"? What about any, say, stashed items?
18:14:38 <jralls> To make your life easier consider never making commits directly to your local dev branch. Always make a feature branch to work in and only update your local dev branch by pulling from upstream.
18:15:53 <warlord> yeah... next time. ;)
18:17:37 <jralls> If you have a dirty tree git might reject the checkout and tell you to commit or stash your changes first. Stashes are fake commits on the stash list and nothing you do in the working tree affects them.
18:19:20 <jralls> next time... Meaning that when your current PR on origin/dev is merged you git fetch upstream; git reset --hard upstream/dev; git push -f origin dev.
18:19:51 <jralls> And always use feature branches after that.
18:22:13 <jralls> Dirty trees aside git checkout -b NewFeature upstream/dev will create a new branch whose HEAD and history are upstream/dev's. If the uncommitted changes apply cleanly then git will happily create the branch for you.
18:36:52 <warlord> Thanks.
18:38:25 <warlord> jralls, hmm:
18:38:27 <warlord> git checkout -b template_macros upstream/dev
18:38:28 <warlord> fatal: 'upstream/dev' is not a commit and a branch 'template_macros' cannot be created from it
18:39:05 <jralls> Does git branch -r show upstream/dev?
18:47:38 <warlord> No.. because I F*d up my config and set both origin and upstream to track to refs/origin/
18:47:44 <warlord> Fixed that, and now it works.
18:47:52 <warlord> But of course my main dev branch is F'd.
18:48:18 <warlord> I reset it, so I'm okay for now, but hopefully don't need to make more changes or rebase that branch. ;)
18:50:26 <warlord> Okay, next problem:
18:50:27 <warlord> git push origin/template_macros
18:50:27 <warlord> fatal: You are pushing to remote 'origin/template_macros', which is not the upstream of
18:50:27 <warlord> your current branch 'template_macros', without telling me what to push
18:50:27 <warlord> to update which remote branch.
18:50:29 <jralls> You can checkout -b old-dev <commit> to revive it.
18:51:01 <jralls> git push origin template_macros, not origin/template_macros.
18:51:54 <warlord> ! [rejected] template_macros -> dev (non-fast-forward)
18:51:54 <warlord> error: failed to push some refs to 'git@github.com:derekatkins/core.git'
18:51:54 <warlord> hint: Updates were rejected because a pushed branch tip is behind its remote
18:51:54 <warlord> hint: counterpart. Check out this branch and integrate the remote changes
18:51:54 <warlord> hint: (e.g. 'git pull ...') before pushing again.
18:51:55 <warlord> hint: See the 'Note about fast-forwards' in 'git push --help' for details.
18:52:07 <jralls> If you want to give it a different name on the remote then you say git push origin template_macros:other_name
18:52:32 <warlord> Why is it trying to push to origin/dev?
18:53:03 <jralls> Probably because it thinks that dev is its remote name.
18:53:27 <warlord> So git push origin branch:branch ?
18:54:49 <warlord> When I created that branch I got this in the .git/config file:
18:54:50 <warlord> [branch "template_macros"]
18:54:50 <warlord> remote = upstream
18:54:50 <warlord> merge = refs/heads/dev
18:55:21 <jralls> Right. You want to edit that to merge = refs/heads/template_macros
18:55:28 <warlord> I suspect that is the problem. If I change remote from upstream to origin and ... that.
18:56:06 <jralls> Then you'll be able to just git push...
18:56:08 <warlord> That seems to have worked.
18:56:13 <warlord> Well, I did the full command.
18:57:10 <jralls> But you do want to edit the config file so you don't have to keep typing template_macros:template_macros.
18:57:37 <warlord> Right.
18:57:40 <warlord> I did that.
19:06:40 *** Agfarmer18 has quit IRC
19:09:26 *** giuseppef_ has quit IRC
19:19:40 <warlord> Thanks, jralls .. PR created (for a 1-line change). I spent more time fighting git and filling out the PR than I did on the code!
19:21:29 <jralls> Well, you'd dug yourself a little bit of a hole.
19:23:14 <jralls> Did you recover your previous dev branch? I hope you haven't force-pushed the fixed one, that will erase the PR...
19:24:00 <warlord> No, I didn't force-push anything.
19:24:24 <warlord> And I'm sure if I "git checkout dev" it will get me back to my branch..
19:24:54 <warlord> I just wanted to make sure the new PR passed all CI tests first.
19:25:01 <warlord> (which it just did)
19:26:29 <jralls> OK. You'd said you'd borked it when you straightened out the upstream tracking.
19:26:47 <warlord> I thought I had, but a 'git reset' seems to have fixed that problem.
19:26:57 <warlord> git reset --hard dev
19:27:35 <warlord> Anyways, thank you again. At least I know I can make new feature branches easily now.
19:27:57 <jralls> NP. Shall I plug Chacon's book again?
19:30:12 <jralls> New subject, the MacPorts folks got WebKit2 working with GnuCash and I've pinched their patches for gtk-osx. I needed only a couple of others to get it to build, and it works in GnuCash.
19:30:25 *** chris has joined #gnucash
19:30:25 *** ChanServ sets mode: +v chris
19:30:28 *** gncbot sets mode: +o chris
20:02:56 <chris> jralls: do you think it'd make sense from a design view to keep only Views and Controller in gnucash, and move Model in libgnucash? I'm thinking things like "Apply Payment" etc
20:03:23 <chris> autoclear would be the first to be cleaned up in this way
20:03:33 <jralls> chris, yes, that's the ultimate goal.
20:04:47 <chris> then we can start by defining some rules about filenames etc in app-utils or wherever?
20:05:06 <chris> app-utils/model-autoclear.c
20:05:19 <chris> gnucash/gnome/window-autoclear.c
20:05:35 <chris> maybe into wiki
20:05:42 <chris> maybe rules into wiki
20:06:10 *** giuseppef has quit IRC
20:06:23 *** giuseppef has joined #gnucash
20:06:23 *** ChanServ sets mode: +v giuseppef
20:06:24 <jralls> Strictly the *model* code should be in libgnucash/engine.
20:07:09 <chris> if you remember some wannabe hacker wanted to add a grid-like UI for data-entry -- (s)he could take example from it in their own fork
20:07:45 <chris> ok. autoclear is one utility-type function which uses engine. where does it live?
20:07:57 <jralls> But remember that another goal is to move to SQL, so think about parts of the algo would be accomplished with a SQL query.
20:08:35 <chris> I guess autoclear can be done with SQL
20:10:11 <jralls> I don't think so. One can get the list of uncleared splits and the balances with SQL queries, but solving the knapsack problem has to be in C/C++.
20:11:23 <chris> still: where does it live? gnc-ui-balances.c is the closest I've found
20:11:52 *** joe7 has joined #gnucash
20:11:59 <chris> ditto: gjanssens' payment algorithms
20:12:58 <chris> ditto: gjanssens' payment algorithms <-- oops ignore. it's rather clean.
20:14:42 <jralls> For now gnc-ui-balances is as good a place as any. Consider though libgnucash/engine/capgains.[ch] as a possible naming model for code that does stuff.
20:15:29 <jralls> (Not for a model of how to write it though, capgains is pretty awful code!)
20:16:10 <warlord> jralls, awesome!!
20:16:58 <jralls> One of the problems we have for understanding code is that we have done a poor job of separating out what classes like Account, Transaction, and Split should do and what should be free code that operates on them.
20:17:35 <jralls> And an even poorer job of naming functions to make the distinction clear.
20:25:07 <chris> agreed
20:26:15 * chris still doesn't uses gnc for stock... leave it to broker
20:30:47 <jralls> GnuCash doesn't do what a broker does anyway. It's OK for keeping track of how much your investments are worth but useless for how well they perform compared to your goals for them.
20:34:03 <chris> on another note, I trust you found the warning gnc_numeric whereby 'never round' is found ... any stock register with fractional prices will show it.
20:34:27 <chris> ^ show warnings whenever you navigate the register
20:34:51 <chris> moreover I think #800 is clean enough and I'll review and merge and await cristi's tests
20:34:52 <jralls> No, I've been working on other stuff today. I told warlord just before you signed in that I've got webkit2 building and mostly working on MacOS.
20:35:25 <chris> Oooh much more important stuff :D
20:36:50 * chris has idea for piechart: it should show expanded concentric circles whereby outer circles are subaccounts
20:37:00 *** Aussie_matt has joined #gnucash
20:37:01 <jralls> And Michael Hendry noticed some odd styling behavior that I've been looking at... On macOS changing the font family in a stylesheet doesn't do anything.
20:38:06 <chris> ah yes privately this chap told me him (retired) and his son share the same profession as me; and the son shared the same uni 1yr apart too
20:38:06 <jralls> You mean like a genealogy fan chart? http://www.ancestryprinting.com/blank-genealogy-charts.html
20:38:46 *** warlord has quit IRC
20:38:49 <chris> piechart: yes similar. 1stlevel=expenses 2nd-level=gas/water/etc
20:38:51 <jralls> Where's *your* MBE? ;-)
20:39:40 <chris> piechart: the behaviour when accounts have unexpected signs is undefined (eg expense-amount = negative) - currently they're ignored
20:40:04 <chris> I'm spending too much time hacking to earn any honours in main job
20:42:08 <chris> guiu could use the cash-flow chart originating from asset-account, then (in libwebkit2) click on wanted accounts in chartjs chart to hide them
20:42:10 <jralls> I guess the fan chart would only have two or three rings, but a low-expenditure account with several subaccounts could get ugly.
20:48:51 *** ArtGravity has quit IRC
21:04:19 *** warlord has joined #gnucash
21:04:19 *** gncbot sets mode: +o warlord
21:04:36 *** jervin has quit IRC
21:05:42 *** jervin has joined #gnucash
21:09:02 *** jervin has quit IRC
21:15:20 *** guak has quit IRC
21:31:23 *** chris has quit IRC
21:59:35 *** chris has joined #gnucash
21:59:35 *** ChanServ sets mode: +v chris
21:59:38 *** gncbot sets mode: +o chris
22:49:37 <CDB-Man_> [12:04:23] <@9d54b3chris> (Hmm maybe this is not possible... e.g. USD -> GBP as well and suddenly there are two possible hops)
22:49:37 <CDB-Man_> [12:05:17] <@9d54b3chris> (chris is definitely *not* pinging CDB-Man_)
22:50:27 <CDB-Man_> The only "reasonable" way to to this is for the user to define currency pairs that F::Q should always run each time you press update quotes
22:51:21 <CDB-Man_> Eg I have a list that says always run and pull the following currency pairs: cadusd, cadjpy, cadhkd, usdeur, cadeur
22:51:58 <CDB-Man_> Ping @ warlord I guess, since you chimed in when Chris was discussing
22:56:31 *** CDB-Work has joined #gnucash
22:56:31 *** ChanServ sets mode: +v CDB-Work