Hi, What happens is that when I enter the description, the autofill tries to find a match, but if it does not I am unable to continue typing the description I want. As Michael D Novack, says , I can end up fighting with GnuCash to get the description I want. Also, when I try to backspace and delete letter by letter, that does not seem to work either. It must be something unique to my installation, if it effects nobody else. The suggested trick of putting in a wrong starting character does not seem to work either, as then I cannot continue typing.
Thanks for any ideas. David Subject: Re: [GNC] Description input on a transaction difficulty Message-ID: <002c01d99d6a$3df6f7f0$b9e4e7d0$@usa.net> Content-Type: text/plain; charset="utf-8" I should have added that ignore the matcher matching and suggesting until you have typed in fully what you want. If that happens to match an entry than add a space or two to what you have typed in to make it unique which will make that stick in the description. The trick he mentions of entering an obvious wrong character -----Original Message----- From: Kalpesh Patel <kalpesh.pa...@usa.net> Sent: Monday, June 12, 2023 2:29 PM To: 'stepbystepf...@comcast.net' <stepbystepf...@comcast.net>; 'gnucash-user@gnucash.org' <gnucash-user@gnucash.org> Subject: RE: [GNC] Description input on a transaction difficulty Just continue to type out fully what you want in the description and if it doesn?t match anything that it has then it will retain what you have typed in exactly as-is. -----Original Message----- From: Michael or Penny Novack <stepbystepf...@comcast.net> Sent: Monday, June 12, 2023 9:12 AM To: gnucash-user@gnucash.org Subject: Re: [GNC] Description input on a transaction difficulty On 6/12/2023 12:06 AM, davidvernonl...@gmail.com wrote: > Hi, > When entering a description into a transaction, I think GnuCash is > trying to autofill, but it does not allow me to input the description I wish to enter. > Is it me, or is it a bug? > Thanks > David This is unlikely to be a bug. Bugs don't just affect you. However your description of the problem isn't clear enough for us to be of much help. Try again. When you try to type in the description that you do want, what prevents that? Because of "autofill" gnucash will try to enter a "match" from the past << a previous description that starts the same way >> I experience this. You might have to fight with gnucash a bit to get what you want entered. Assuming you want to have autofill working for other than the situation causing the problem, here is a trick you might find useful; Start entering the description that you do want (the one that is getting caught by autofill) with an obvious wrong starting character. I usually use "q" or "x:, etc. Once you have typed in the description that way (it won't get caught by autofill) you go back and delete that starting character. Of course this isn't a trick specific to gnucash. Michael D Novack -----Original Message----- From: gnucash-user <gnucash-user-bounces+davidvernonlong=gmail....@gnucash.org> On Behalf Of gnucash-user-requ...@gnucash.org Sent: Tuesday, June 13, 2023 7:38 AM To: gnucash-user@gnucash.org Subject: gnucash-user Digest, Vol 243, Issue 20 Send gnucash-user mailing list submissions to gnucash-user@gnucash.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.gnucash.org/mailman/listinfo/gnucash-user or, via email, send a message with subject or body 'help' to gnucash-user-requ...@gnucash.org You can reach the person managing the list at gnucash-user-ow...@gnucash.org When replying, please edit your Subject line so it is more specific than "Re: Contents of gnucash-user digest..." Today's Topics: 1. Hard-Copy Report Output (rsbrux) 2. Re: Hard-Copy Report Output (Vincent Dawans) 3. Re: Description input on a transaction difficulty (Kalpesh Patel) 4. Re: Hard-Copy Report Output (rsbrux) 5. Re: Description input on a transaction difficulty (Kalpesh Patel) 6. Re: Hard-Copy Report Output (Vincent Dawans) 7. Re: Hard-Copy Report Output (Vincent Dawans) 8. Re: Hard-Copy Report Output (John Ralls) ---------------------------------------------------------------------- Message: 1 Date: Mon, 12 Jun 2023 20:02:10 +0200 From: "rsbrux" <rsb...@yahoo.com> To: <gnucash-user@gnucash.org> Subject: [GNC] Hard-Copy Report Output Message-ID: <!&!AAAAAAAAAAAuAAAAAAAAAExfBJ/fSBxAqM7oRtz1TdsBAMO2jhD3dRHOtM0AqgC7tuYAAA AAAA4AABAAAAA3aynhDxomSqMN95BUlL2DAQAAAAA=@yahoo.com> Content-Type: text/plain; charset="UTF-8" > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone <adrien.montele...@lusfiber.net> wrote: >Is this a completely custom report or just a saved configuration? If completely custom, you may want to try the -dev list. This is a report I assembled from the options available in the GC GUI (like the pie chart you successfully tested). Unfortunately, I am not competent to use the programming facilities behind GC's report generation. > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: >It's most likely a javascript problem. Open the javascript console in your browser and see if there's an error finding Chart.bundle.min.js. >The correct location is <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> is where GnuCash is installed: /usr for a Linux package manager installation, /Applications/Gnucash.app/Contents/Resources for a macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc. > >You can fix the link by editing the html file in your favorite text editor. I have tried opening the exported HTML reports in Firefox on Ubuntu and in Edge and Firefox on Windows. Although the browser consoles show errors, I don't see any pertaining to " Chart.bundle.min.js", nor do I find any critical errors pertinent to the report content. The new HTML reports are looking for Chart.bundle.min.js in /app/share/gnucash/chartjs/, but no such directory exists on the Ubuntu system where GnuCash is installed. In fact, there isn't even an /app/ directory. Perhaps this is due to GC being installed as a flatpak. Chart.bundle.min.js does not seem to exist on either system, so I edited the HTML as you suggested, replacing the local path with "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" but this did not improve matters. However, my previously saved HTML reports from GC 2.xx also don't display correctly, even though they contain no references to Chart.bundle.min.js. This suggests a more fundamental problem and reveals my presumption that the HTML files could be used as archives as naive. I have a previously saved PDF file, which is, of course still usable. This will be my method going forward, although the lack of a "scale to fit" option in the GC print dialog requires a bit of trial and error to get a satisfactory PDF. Many thanks to both of you for your support! ------------------------------ Message: 2 Date: Mon, 12 Jun 2023 11:20:34 -0700 From: Vincent Dawans <dawa...@gmail.com> To: rsbrux <rsb...@yahoo.com> Cc: gnucash-user@gnucash.org Subject: Re: [GNC] Hard-Copy Report Output Message-ID: <calisao_cypdbazgeg7t3mgxdkosnxkj-ustmiq754xz5o+k...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Not that it might solve your underlying issue, but here is a reliable way to locate Chart.bundle.min.js assuming it was installed correctly with the rest of GC. This should work on any OS. 1. Open GC and go in menu Help - About 2. In that dialog window, look for the entry for GNC_DATA. It's the last one in the list. It should point to a directory path, for instance on Windows C:\Program Files (x86)\gnucash\share\gnucash but it will be different on ubuntu, etc. 3. Navigate to that directory using whatever means your OS gives you to do that (File Manager, console, etc). In that directory that GNC_DATA is pointing to, you should find a subdirectory called chartjs. That is where Chart.bundle.min.js should be located and if any html file is pointing to it that ia what the path should be. On Mon, Jun 12, 2023 at 11:03?AM rsbrux via gnucash-user < gnucash-user@gnucash.org> wrote: > > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone < > adrien.montele...@lusfiber.net> wrote: > >Is this a completely custom report or just a saved configuration? If > completely custom, you may want to try the -dev list. > > This is a report I assembled from the options available in the GC GUI > (like the pie chart you successfully tested). > Unfortunately, I am not competent to use the programming facilities > behind GC's report generation. > > > > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: > >It's most likely a javascript problem. Open the javascript console in > your browser and see if there's an error finding Chart.bundle.min.js. > >The correct location is > <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> is > where GnuCash is installed: /usr for a Linux package manager > installation, /Applications/Gnucash.app/Contents/Resources for a macOS > bundle, C:\Program Files (x86)\gnucash for Windows, etc. > > > >You can fix the link by editing the html file in your favorite text > editor. > > I have tried opening the exported HTML reports in Firefox on Ubuntu > and in Edge and Firefox on Windows. Although the browser consoles > show errors, I don't see any pertaining to " Chart.bundle.min.js", nor > do I find any critical errors pertinent to the report content. > The new HTML reports are looking for Chart.bundle.min.js in > /app/share/gnucash/chartjs/, but no such directory exists on the > Ubuntu system where GnuCash is installed. In fact, there isn't even > an /app/ directory. Perhaps this is due to GC being installed as a flatpak. > Chart.bundle.min.js does not seem to exist on either system, so I > edited the HTML as you suggested, replacing the local path with " > https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" > but this did not improve matters. > However, my previously saved HTML reports from GC 2.xx also don't > display correctly, even though they contain no references to Chart.bundle.min.js. > This suggests a more fundamental problem and reveals my presumption > that the HTML files could be used as archives as naive. > I have a previously saved PDF file, which is, of course still usable. > This will be my method going forward, although the lack of a "scale to fit" > option in the GC print dialog requires a bit of trial and error to get > a satisfactory PDF. > > Many thanks to both of you for your support! > > _______________________________________________ > gnucash-user mailing list > gnucash-user@gnucash.org > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. > ------------------------------ Message: 3 Date: Mon, 12 Jun 2023 14:29:24 -0400 From: "Kalpesh Patel" <kalpesh.pa...@usa.net> To: <stepbystepf...@comcast.net>, <gnucash-user@gnucash.org> Subject: Re: [GNC] Description input on a transaction difficulty Message-ID: <003e01d99d5b$d88463c0$898d2b40$@usa.net> Content-Type: text/plain; charset="utf-8" Just continue to type out fully what you want in the description and if it doesn?t match anything that it has then it will retain what you have typed in exactly as-is. -----Original Message----- From: Michael or Penny Novack <stepbystepf...@comcast.net> Sent: Monday, June 12, 2023 9:12 AM To: gnucash-user@gnucash.org Subject: Re: [GNC] Description input on a transaction difficulty On 6/12/2023 12:06 AM, davidvernonl...@gmail.com wrote: > Hi, > When entering a description into a transaction, I think GnuCash is > trying to autofill, but it does not allow me to input the description I wish to enter. > Is it me, or is it a bug? > Thanks > David This is unlikely to be a bug. Bugs don't just affect you. However your description of the problem isn't clear enough for us to be of much help. Try again. When you try to type in the description that you do want, what prevents that? Because of "autofill" gnucash will try to enter a "match" from the past << a previous description that starts the same way >> I experience this. You might have to fight with gnucash a bit to get what you want entered. Assuming you want to have autofill working for other than the situation causing the problem, here is a trick you might find useful; Start entering the description that you do want (the one that is getting caught by autofill) with an obvious wrong starting character. I usually use "q" or "x:, etc. Once you have typed in the description that way (it won't get caught by autofill) you go back and delete that starting character. Of course this isn't a trick specific to gnucash. Michael D Novack ------------------------------ Message: 4 Date: Mon, 12 Jun 2023 22:10:11 +0200 From: rsbrux <rsb...@yahoo.com> To: Vincent Dawans <dawa...@gmail.com> Cc: gnucash-user@gnucash.org Subject: Re: [GNC] Hard-Copy Report Output Message-ID: <f8566eba-0c2e-0919-143d-46844f4cf...@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Thanks for? the ti?p, Vincent, but these things don't add up in the flatpak installation. In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash", which is also the path used in the HTML file. However, clicking on the link leads to "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5 999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/" which does, in fact, contain a sudirectory "chartjs", which in turn contains both "Chart.bundle.min.js" and "Chart.bundle.js". Evidently the HTML generation doesn't take the possibility of a flatpak installation into account.? I suppose I should file a bug for this, but I wouldn't know where. Thnaks for your help! On 12.06.23 20:20, Vincent Dawans wrote: > Not that it might solve your underlying?issue, but here is a reliable > way to locate Chart.bundle.min.js assuming it was installed?correctly > with the rest of GC. This should work on any OS. > > 1. Open GC and go in menu Help - About 2. In that dialog?window, look > for the entry?for GNC_DATA. It's the last one in the list. It should > point to a directory path, for instance on Windows?C:\Program Files > (x86)\gnucash\share\gnucash but it will be different on ubuntu, etc. > 3. Navigate to that directory?using whatever means your OS gives you > to do that (File Manager, console, etc). In that directory that > GNC_DATA is pointing to, you should?find a subdirectory called > chartjs. That is where Chart.bundle.min.js should be located and if > any html file is pointing to it that ia what?the path should?be. > > On Mon, Jun 12, 2023 at 11:03?AM rsbrux via gnucash-user > <gnucash-user@gnucash.org> wrote: > > > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone > <adrien.montele...@lusfiber.net> wrote: > >Is this a completely custom report or just a saved configuration? > If completely custom, you may want to try the -dev list. > > This is a report I assembled from the options available in the GC > GUI (like the pie chart you successfully tested). > Unfortunately, I am not competent to use the programming > facilities behind GC's report generation. > > > > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: > >It's most likely a javascript problem. Open the javascript > console in your browser and see if there's an error finding > Chart.bundle.min.js. > >The correct location is > <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> > is where GnuCash is installed: /usr for a Linux package manager > installation, /Applications/Gnucash.app/Contents/Resources for a > macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc. > > > >You can fix the link by editing the html file in your favorite > text editor. > > I have tried opening the exported HTML reports in Firefox on > Ubuntu and in Edge and Firefox on Windows.? Although the browser > consoles show errors, I don't see any pertaining to " > Chart.bundle.min.js", nor do I find any critical errors pertinent > to the report content. > The new HTML reports are looking for Chart.bundle.min.js in > /app/share/gnucash/chartjs/, but no such directory exists on the > Ubuntu system where GnuCash is installed.? In fact, there isn't > even an /app/ directory.? Perhaps this is due to GC being > installed as a flatpak. > Chart.bundle.min.js does not seem to exist on either system, so I > edited the HTML as you suggested, replacing the local path with > "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" > but this did not improve matters. > However, my previously saved HTML reports from GC 2.xx also don't > display correctly, even though they contain no references to > Chart.bundle.min.js.? This suggests a more fundamental problem and > reveals my presumption that the HTML files could be used as > archives as naive. > I have a previously saved PDF file, which is, of course still > usable.? This will be my method going forward, although the lack > of a "scale to fit" option in the GC print dialog requires a bit > of trial and error to get a satisfactory PDF. > > Many thanks to both of you for your support! > > _______________________________________________ > gnucash-user mailing list > gnucash-user@gnucash.org > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. > ------------------------------ Message: 5 Date: Mon, 12 Jun 2023 16:12:40 -0400 From: "Kalpesh Patel" <kalpesh.pa...@usa.net> To: <stepbystepf...@comcast.net>, <gnucash-user@gnucash.org> Subject: Re: [GNC] Description input on a transaction difficulty Message-ID: <002c01d99d6a$3df6f7f0$b9e4e7d0$@usa.net> Content-Type: text/plain; charset="utf-8" I should have added that ignore the matcher matching and suggesting until you have typed in fully what you want. If that happens to match an entry than add a space or two to what you have typed in to make it unique which will make that stick in the description. -----Original Message----- From: Kalpesh Patel <kalpesh.pa...@usa.net> Sent: Monday, June 12, 2023 2:29 PM To: 'stepbystepf...@comcast.net' <stepbystepf...@comcast.net>; 'gnucash-user@gnucash.org' <gnucash-user@gnucash.org> Subject: RE: [GNC] Description input on a transaction difficulty Just continue to type out fully what you want in the description and if it doesn?t match anything that it has then it will retain what you have typed in exactly as-is. -----Original Message----- From: Michael or Penny Novack <stepbystepf...@comcast.net> Sent: Monday, June 12, 2023 9:12 AM To: gnucash-user@gnucash.org Subject: Re: [GNC] Description input on a transaction difficulty On 6/12/2023 12:06 AM, davidvernonl...@gmail.com wrote: > Hi, > When entering a description into a transaction, I think GnuCash is > trying to autofill, but it does not allow me to input the description I wish to enter. > Is it me, or is it a bug? > Thanks > David This is unlikely to be a bug. Bugs don't just affect you. However your description of the problem isn't clear enough for us to be of much help. Try again. When you try to type in the description that you do want, what prevents that? Because of "autofill" gnucash will try to enter a "match" from the past << a previous description that starts the same way >> I experience this. You might have to fight with gnucash a bit to get what you want entered. Assuming you want to have autofill working for other than the situation causing the problem, here is a trick you might find useful; Start entering the description that you do want (the one that is getting caught by autofill) with an obvious wrong starting character. I usually use "q" or "x:, etc. Once you have typed in the description that way (it won't get caught by autofill) you go back and delete that starting character. Of course this isn't a trick specific to gnucash. Michael D Novack ------------------------------ Message: 6 Date: Mon, 12 Jun 2023 13:42:19 -0700 From: Vincent Dawans <dawa...@gmail.com> To: rsbrux <rsb...@yahoo.com> Cc: gnucash-user@gnucash.org Subject: Re: [GNC] Hard-Copy Report Output Message-ID: <CALisao-ddeDO-+j=5oza4dbzjby3b3sj5+59vxuikrqtnqu...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Thanks rsbrux for testing that. It's not working on Flatpak, you are right. I just tested on flatpak and indeed the link in the html file is wrong. As soon as I update the html with the full path on my install then it works. I'll open a bug report on that if there isn't one yet. On Mon, Jun 12, 2023 at 1:10?PM rsbrux <rsb...@yahoo.com> wrote: > Thanks for the ti?p, Vincent, but these things don't add up in the > flatpak installation. > > In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash", > which is also the path used in the HTML file. > > However, clicking on the link leads to > "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5 999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/" > which does, in fact, contain a sudirectory "chartjs", which in turn > contains both "Chart.bundle.min.js" and "Chart.bundle.js". > > Evidently the HTML generation doesn't take the possibility of a > flatpak installation into account. I suppose I should file a bug for > this, but I wouldn't know where. > > Thnaks for your help! > On 12.06.23 20:20, Vincent Dawans wrote: > > Not that it might solve your underlying issue, but here is a reliable > way to locate Chart.bundle.min.js assuming it was installed correctly > with the rest of GC. This should work on any OS. > > 1. Open GC and go in menu Help - About 2. In that dialog window, look > for the entry for GNC_DATA. It's the last one in the list. It should > point to a directory path, for instance on Windows C:\Program Files > (x86)\gnucash\share\gnucash but it will be different on ubuntu, etc. > 3. Navigate to that directory using whatever means your OS gives you > to do that (File Manager, console, etc). In that directory that > GNC_DATA is pointing to, you should find a subdirectory called > chartjs. That is where Chart.bundle.min.js should be located and if > any html file is pointing to it that ia what the path should be. > > On Mon, Jun 12, 2023 at 11:03?AM rsbrux via gnucash-user < > gnucash-user@gnucash.org> wrote: > >> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone < >> adrien.montele...@lusfiber.net> wrote: >> >Is this a completely custom report or just a saved configuration? If >> completely custom, you may want to try the -dev list. >> >> This is a report I assembled from the options available in the GC GUI >> (like the pie chart you successfully tested). >> Unfortunately, I am not competent to use the programming facilities >> behind GC's report generation. >> >> >> > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: >> >It's most likely a javascript problem. Open the javascript console >> >in >> your browser and see if there's an error finding Chart.bundle.min.js. >> >The correct location is >> <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> is >> where GnuCash is installed: /usr for a Linux package manager >> installation, /Applications/Gnucash.app/Contents/Resources for a >> macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc. >> > >> >You can fix the link by editing the html file in your favorite text >> editor. >> >> I have tried opening the exported HTML reports in Firefox on Ubuntu >> and in Edge and Firefox on Windows. Although the browser consoles >> show errors, I don't see any pertaining to " Chart.bundle.min.js", >> nor do I find any critical errors pertinent to the report content. >> The new HTML reports are looking for Chart.bundle.min.js in >> /app/share/gnucash/chartjs/, but no such directory exists on the >> Ubuntu system where GnuCash is installed. In fact, there isn't even >> an /app/ directory. Perhaps this is due to GC being installed as a flatpak. >> Chart.bundle.min.js does not seem to exist on either system, so I >> edited the HTML as you suggested, replacing the local path with " >> https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" >> but this did not improve matters. >> However, my previously saved HTML reports from GC 2.xx also don't >> display correctly, even though they contain no references to Chart.bundle.min.js. >> This suggests a more fundamental problem and reveals my presumption >> that the HTML files could be used as archives as naive. >> I have a previously saved PDF file, which is, of course still usable. >> This will be my method going forward, although the lack of a "scale to fit" >> option in the GC print dialog requires a bit of trial and error to >> get a satisfactory PDF. >> >> Many thanks to both of you for your support! >> >> _______________________________________________ >> gnucash-user mailing list >> gnucash-user@gnucash.org >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. >> > ------------------------------ Message: 7 Date: Mon, 12 Jun 2023 13:55:06 -0700 From: Vincent Dawans <dawa...@gmail.com> To: rsbrux <rsb...@yahoo.com> Cc: gnucash-user@gnucash.org Subject: Re: [GNC] Hard-Copy Report Output Message-ID: <CALisao9riH-Z1mKQr_dnW-oBwskgLmK4WrXq7kkpaotFrM=o...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" For reference here is the bug report: 798956 ? On Flatpak, broken link to Chart.bundle.min.js in chart report html (gnucash.org) <https://bugs.gnucash.org/show_bug.cgi?id=798956> On Mon, Jun 12, 2023 at 1:42?PM Vincent Dawans <dawa...@gmail.com> wrote: > Thanks rsbrux for testing that. It's not working on Flatpak, you are > right. I just tested on flatpak and indeed the link in the html file > is wrong. As soon as I update the html with the full path on my > install then it works. I'll open a bug report on that if there isn't one yet. > > On Mon, Jun 12, 2023 at 1:10?PM rsbrux <rsb...@yahoo.com> wrote: > >> Thanks for the ti?p, Vincent, but these things don't add up in the >> flatpak installation. >> >> In the Help - About dialog, GNC_DATA is shown as >> "/app/share/gnucash", which is also the path used in the HTML file. >> >> However, clicking on the link leads to >> "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5 999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/" >> which does, in fact, contain a sudirectory "chartjs", which in turn >> contains both "Chart.bundle.min.js" and "Chart.bundle.js". >> >> Evidently the HTML generation doesn't take the possibility of a >> flatpak installation into account. I suppose I should file a bug for >> this, but I wouldn't know where. >> >> Thnaks for your help! >> On 12.06.23 20:20, Vincent Dawans wrote: >> >> Not that it might solve your underlying issue, but here is a reliable >> way to locate Chart.bundle.min.js assuming it was installed correctly >> with the rest of GC. This should work on any OS. >> >> 1. Open GC and go in menu Help - About 2. In that dialog window, look >> for the entry for GNC_DATA. It's the last one in the list. It should >> point to a directory path, for instance on Windows C:\Program Files >> (x86)\gnucash\share\gnucash but it will be different on ubuntu, etc. >> 3. Navigate to that directory using whatever means your OS gives you >> to do that (File Manager, console, etc). In that directory that >> GNC_DATA is pointing to, you should find a subdirectory called >> chartjs. That is where Chart.bundle.min.js should be located and if >> any html file is pointing to it that ia what the path should be. >> >> On Mon, Jun 12, 2023 at 11:03?AM rsbrux via gnucash-user < >> gnucash-user@gnucash.org> wrote: >> >>> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone < >>> adrien.montele...@lusfiber.net> wrote: >>> >Is this a completely custom report or just a saved configuration? >>> >If >>> completely custom, you may want to try the -dev list. >>> >>> This is a report I assembled from the options available in the GC >>> GUI (like the pie chart you successfully tested). >>> Unfortunately, I am not competent to use the programming facilities >>> behind GC's report generation. >>> >>> >>> > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: >>> >It's most likely a javascript problem. Open the javascript console >>> >in >>> your browser and see if there's an error finding Chart.bundle.min.js. >>> >The correct location is >>> <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> is >>> where GnuCash is installed: /usr for a Linux package manager >>> installation, /Applications/Gnucash.app/Contents/Resources for a >>> macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc. >>> > >>> >You can fix the link by editing the html file in your favorite text >>> editor. >>> >>> I have tried opening the exported HTML reports in Firefox on Ubuntu >>> and in Edge and Firefox on Windows. Although the browser consoles >>> show errors, I don't see any pertaining to " Chart.bundle.min.js", >>> nor do I find any critical errors pertinent to the report content. >>> The new HTML reports are looking for Chart.bundle.min.js in >>> /app/share/gnucash/chartjs/, but no such directory exists on the >>> Ubuntu system where GnuCash is installed. In fact, there isn't even >>> an /app/ directory. Perhaps this is due to GC being installed as a flatpak. >>> Chart.bundle.min.js does not seem to exist on either system, so I >>> edited the HTML as you suggested, replacing the local path with " >>> https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" >>> but this did not improve matters. >>> However, my previously saved HTML reports from GC 2.xx also don't >>> display correctly, even though they contain no references to >>> Chart.bundle.min.js. This suggests a more fundamental problem and >>> reveals my presumption that the HTML files could be used as archives as naive. >>> I have a previously saved PDF file, which is, of course still usable. >>> This will be my method going forward, although the lack of a "scale to fit" >>> option in the GC print dialog requires a bit of trial and error to >>> get a satisfactory PDF. >>> >>> Many thanks to both of you for your support! >>> >>> _______________________________________________ >>> gnucash-user mailing list >>> gnucash-user@gnucash.org >>> To update your subscription preferences or to unsubscribe: >>> https://lists.gnucash.org/mailman/listinfo/gnucash-user >>> ----- >>> Please remember to CC this list on all your replies. >>> You can do this by using Reply-To-List or Reply-All. >>> >> ------------------------------ Message: 8 Date: Mon, 12 Jun 2023 16:37:53 -0700 From: John Ralls <jra...@ceridwen.us> To: rsbrux <rsb...@yahoo.com> Cc: Vincent Dawans <dawa...@gmail.com>, gnucash-user@gnucash.org Subject: Re: [GNC] Hard-Copy Report Output Message-ID: <0da2153c-e2c1-4b89-a3b5-0745f587c...@ceridwen.us> Content-Type: text/plain; charset=utf-8 /app is an alias for that long path when you're running inside the flatpak shell, see https://wiki.gnucash.org/wiki/Flatpak#Using_Command_Line_Tools. Unless you also run a browser in the same flatpak shell--installing the browser with flatpak won't work, that will create a different container--the browser can't see the alias. I don't know offhand if there's a way for GnuCash to tell that it's running inside a flatpak or to get the outside-the-flatpak path to /app, but even if it could the URI would get invalidated the next time you update the GnuCash flatpak. Regards, John Ralls > On Jun 12, 2023, at 1:10 PM, rsbrux via gnucash-user <gnucash-user@gnucash.org> wrote: > > Thanks for the ti?p, Vincent, but these things don't add up in the flatpak installation. > > In the Help - About dialog, GNC_DATA is shown as "/app/share/gnucash", which is also the path used in the HTML file. > > However, clicking on the link leads to "/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/511cf18127561c55b5 999121c6b301ca1e90d6cc988a00701257606df7fae86f/files/share/gnucash/" which does, in fact, contain a sudirectory "chartjs", which in turn contains both "Chart.bundle.min.js" and "Chart.bundle.js". > > Evidently the HTML generation doesn't take the possibility of a flatpak installation into account. I suppose I should file a bug for this, but I wouldn't know where. > > Thnaks for your help! > > On 12.06.23 20:20, Vincent Dawans wrote: >> Not that it might solve your underlying issue, but here is a reliable way to locate Chart.bundle.min.js assuming it was installed correctly with the rest of GC. This should work on any OS. >> >> 1. Open GC and go in menu Help - About 2. In that dialog window, look >> for the entry for GNC_DATA. It's the last one in the list. It should point to a directory path, for instance on Windows C:\Program Files (x86)\gnucash\share\gnucash but it will be different on ubuntu, etc. >> 3. Navigate to that directory using whatever means your OS gives you to do that (File Manager, console, etc). In that directory that GNC_DATA is pointing to, you should find a subdirectory called chartjs. That is where Chart.bundle.min.js should be located and if any html file is pointing to it that ia what the path should be. >> >> On Mon, Jun 12, 2023 at 11:03?AM rsbrux via gnucash-user <gnucash-user@gnucash.org> wrote: >> >> > On Jun 11, 2023, at 9:56 AM, Adrien Monteleone >> <adrien.montele...@lusfiber.net> wrote: >> >Is this a completely custom report or just a saved configuration? >> If completely custom, you may want to try the -dev list. >> >> This is a report I assembled from the options available in the GC >> GUI (like the pie chart you successfully tested). >> Unfortunately, I am not competent to use the programming >> facilities behind GC's report generation. >> >> >> > On Jun 11, 2023, John Ralls <jra...@ceridwen.us> wrote: >> >It's most likely a javascript problem. Open the javascript >> console in your browser and see if there's an error finding >> Chart.bundle.min.js. >> >The correct location is >> <prefix>/share/gnucash/chartjs/Chart.bundle.min.js where <prefix> >> is where GnuCash is installed: /usr for a Linux package manager >> installation, /Applications/Gnucash.app/Contents/Resources for a >> macOS bundle, C:\Program Files (x86)\gnucash for Windows, etc. >> > >> >You can fix the link by editing the html file in your favorite >> text editor. >> >> I have tried opening the exported HTML reports in Firefox on >> Ubuntu and in Edge and Firefox on Windows. Although the browser >> consoles show errors, I don't see any pertaining to " >> Chart.bundle.min.js", nor do I find any critical errors pertinent >> to the report content. >> The new HTML reports are looking for Chart.bundle.min.js in >> /app/share/gnucash/chartjs/, but no such directory exists on the >> Ubuntu system where GnuCash is installed. In fact, there isn't >> even an /app/ directory. Perhaps this is due to GC being >> installed as a flatpak. >> Chart.bundle.min.js does not seem to exist on either system, so I >> edited the HTML as you suggested, replacing the local path with >> "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.3.0/chart.min.js" >> but this did not improve matters. >> However, my previously saved HTML reports from GC 2.xx also don't >> display correctly, even though they contain no references to >> Chart.bundle.min.js. This suggests a more fundamental problem and >> reveals my presumption that the HTML files could be used as >> archives as naive. >> I have a previously saved PDF file, which is, of course still >> usable. This will be my method going forward, although the lack >> of a "scale to fit" option in the GC print dialog requires a bit >> of trial and error to get a satisfactory PDF. >> >> Many thanks to both of you for your support! >> >> _______________________________________________ >> gnucash-user mailing list >> gnucash-user@gnucash.org >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. >> > _______________________________________________ > gnucash-user mailing list > gnucash-user@gnucash.org > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. ------------------------------ Subject: Digest Footer _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All. ------------------------------ End of gnucash-user Digest, Vol 243, Issue 20 ********************************************* _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.