After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795067 - Custom reports are not loaded in GC 3.0
Custom reports are not loaded in GC 3.0
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
3.0
Other Windows
: Normal normal
: future
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2018-04-08 09:01 UTC by Marco
Modified: 2018-06-30 00:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
config.user file for "custom-invoice.scm" (60 bytes, text/plain)
2018-04-08 09:10 UTC, Marco
Details
custom-invoice report files (10.32 KB, application/x-zip-compressed)
2018-04-08 09:11 UTC, Marco
Details

Description Marco 2018-04-08 09:01:00 UTC
In GnuCash 2.6.19 I had a working custom report and in 3.0 I cannot get it to load / display in the report menu anymore. It is basically a slightly adapted version of the taxinvoice.scm report.

I do not know if the "config.user" is not read anymore or if the load command is working differently with 3.0. No error in the trace file visible either.

Please note that with the move from 2.6.19 to 3.0 the handling of paths changed. Therefore I moved my custom report and the config.user into the new location.

Release notes for 3.0: Data file directories are now located appropriately to the operating system's conventions by default:
    Windows: CSIDL_APPDATA/Gnucash
    MacOS: $HOME/Application Support/Gnucash
    Linux: $XDG_CONFIG_HOME/gnucash (or the default $HOME/.config/gnucash)

Concrete for Windows:
    old = C:\Users\marco\.gnucash
    new since version 3.0 = C:\Users\marco\AppData\Roaming\GnuCash

Environment
OS: Windows 10
GnuCash: 3.0
command used "gnucash.exe --debug --log gnc.scm=debug" to generate the trace file
Comment 1 Marco 2018-04-08 09:10:55 UTC
Created attachment 370649 [details]
config.user file for "custom-invoice.scm"
Comment 2 Marco 2018-04-08 09:11:57 UTC
Created attachment 370651 [details]
custom-invoice report files
Comment 3 Marco 2018-04-08 10:28:51 UTC
Please note that the attached config.user uses the "display" command as suggested by fell, but even with the original "load" command, it does not work.
Comment 4 Bob 2018-04-09 12:11:07 UTC
Try this...

Copy all files to path indicated above for version 3.0
Rename config.user to config-user.scm
Change contents to this...

(load (gnc-build-userdata-path "custom-invoice.scm"))

Bob
Comment 5 Marco 2018-04-09 18:47:34 UTC
@Bob: it works like a charm - thanks! First quick test was successful, I will try with a more customized report.
Comment 6 Marco 2018-04-09 20:34:37 UTC
Proposed solution/fix by Bob works. Many thanks.

Now what remains to do is to edit/adapt the wiki page https://wiki.gnucash.org/wiki/Custom_Reports to reflect these changes. Should I do this?
Comment 7 Geert Janssens 2018-04-10 18:55:53 UTC
Sure, please do!
Comment 8 Marco 2018-04-10 20:58:19 UTC
Done, page updated. Thanks for your help.
Comment 9 Geert Janssens 2018-04-10 21:02:26 UTC
Thanks!
Comment 10 John Ralls 2018-06-30 00:07:39 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=795067. Please update any external references or bookmarks.