GNOME Bugzilla – Bug 639371
Welcome Sample Report reports wrong version and has a broken report
Last modified: 2018-06-29 22:51:50 UTC
I just ran the Welcome Sample Report in 2.4.0 due to some user interactions in email and noted a few issues: 1) The report says "Welcome to GnuCash 2.0" 2) I see the following in my terminal: ;;; WARNING (gnc:make-report-anchor: No such report: Income Over Time) ;;; WARNING (gnc:make-report-anchor: No such report: Expense Over Time)
The version number is fixed with r20076. Does the warning also mean some part of the report doesn't work?
(In reply to comment #1) > Does the warning also mean some part of the report doesn't work? I'm not sure, but I suspect that is the case. I don't regularly run the report. Clearly most people don't, otherwise this would've been reported a long time ago. But as we no longer have an "Income Over Time" or "Expense Over Time" report, I suspect there is missing functionality.
Those error messages are not coming from the welcome report but from a report it loads. This report is the "Income and Expenses Chart". I have tried to look at this but I am getting confused. This chart is stored in net-barchart.scm and the offending lines are like.. (gnc:make-report-anchor (if inc-exp? "Income Over Time" "Assets Over Time") .... (gnc:make-report-anchor (if inc-exp? "Expense Over Time" "Liabilities Over Time") These four entries are in category-barchart.scm and the 'Income/Expense' entries work but I can not see why the others do not work.
I noticed this while adapting the net-barchart.scm to net-linechart.scm, then promptly forgot to look into it further. From src/report/report-system/html-utilities: (define (gnc:make-report-anchor reportname src-report optionlist) ... Looking at account-piecherts.scm, the first param to gnc:make-report-anchor should be the report-guid rather then reportname it seems. > Does the warning also mean some part of the report doesn't work? It appears that this section ;; URLs for income/expense or asset/liabilities bars. is to add a stacked barchart option to the report. Not sure if this section does anything useful for the net-linechart.scm report.
Hi Derek, I tried to reproduce this in GnuCash 2.5.4. but did not succeed. Do you still see this? Or can this bug be closed?
As Mike correctly analysed, the warnings originate from the fact that make-report-anchor takes a report-guid instead of a report-name as first parameter. This is probably a left over from the switch once made in the whole report system to identify reports by guid instead of by name. The report anchors that are being generated are not used on the current code however. These in themselves are lonely witnesses from a time before we generated the reports with goffice (was that with guppy or something similar ?). In that era the charts allowed some drill-through from an overview chart to more detailed charts. This feature was lost with the introduction of goffice, but the report anchors are still made should the feature ever be restored (perhaps this is possible with the jqplot based reports). I believe there's another bug report for that though. For the current bug specifically I have done two things: 1. make the version number in the welcome report dynamic. Otherwise we'd have to update the report with each release. The version is now read from the build time version number. 2. fix the calls to make-report-anchor to use the proper guids instead of report names. As said before, the anchors are not used. That's the subject of another bug report. This will not be backported to 2.4 because some of the altered files are too different between these two branches.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=639371. Please update any external references or bookmarks.