Custom Reports?

Catscrash catscrash at catscrash.de
Mon Jan 16 09:36:50 EST 2017


I tried running gnucash with:

gnucash --debug --log gnc.scm=debug

to find why the report was not loaded properly. In the
/tmp/gnucash.trace file I then found the following

this is btw. gnucash 2.6.15


[...]
* 15:33:40  INFO <gnc.backend.dbi> [gnc_module_init_backend_dbi]
GNC_DBD_DIR not set: using libdbi built-in default
* 15:33:41 MESSG <gnc.bin> loading system configuration
* 15:33:41 MESSG <gnc.bin> loading user configuration
* 15:33:41  WARN <gnc.app-utils> ERROR: In procedure apply-smob/1:
ERROR: Wrong type to apply: #<syntax-transformer N_>
In ice-9/boot-9.scm:
 157: 16 [catch #t #<catch-closure 5639c36a6a40> ...]
In unknown file:
   ?: 15 [apply-smob/1 #<catch-closure 5639c36a6a40>]
In ice-9/boot-9.scm:
 157: 14 [catch #t #<catch-closure 5639c46ca1a0> #<catch-closure
5639c46ca180> #f]
In unknown file:
   ?: 13 [apply-smob/1 #<catch-closure 5639c46ca1a0>]
In ice-9/boot-9.scm:
 171: 12 [with-throw-handler #t #<catch-closure 5639c46ca0c0> ...]
In unknown file:
   ?: 11 [apply-smob/1 #<catch-closure 5639c46ca0c0>]
   ?: 10 [call-with-input-string "(load (gnc-build-dotgnucash-path
\"reports/ytd-budget.scm\"))\n" ...]
In ice-9/boot-9.scm:
2401: 9 [save-module-excursion #<procedure 5639c47680c0 at
ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
  44: 8 [read-and-eval #<input: string 5639c44550d0> #:lang ...]
  37: 7 [lp (load (gnc-build-dotgnucash-path "reports/ytd-budget.scm"))]
In ice-9/boot-9.scm:
2401: 6 [save-module-excursion #<procedure 5639c41e6d80 at
ice-9/boot-9.scm:4045:3 ()>]
4050: 5 [#<procedure 5639c41e6d80 at ice-9/boot-9.scm:4045:3 ()>]
In unknown file:
   ?: 4 [load-compiled/vm
"/home/catscrash/.cache/guile/ccache/2.0-LE-8-2.0/home/catscrash/.gnucash/reports/ytd-budget.scm.go"]
In /home/catscrash/.gnucash/reports/ytd-budget.scm:
  46: 3 [#<procedure 5639c46dbae0 ()>]
In unknown file:
   ?: 2 [#<syntax-transformer N_> "YTD Budget Report"]
In ice-9/boot-9.scm:
 102: 1 [#<procedure 5639c41e6e80 at ice-9/boot-9.scm:97:6 (thrown-k .
args)> wrong-type-arg ...]
In unknown file:
   ?: 0 [apply-smob/1 #<catch-closure 5639c46ca0a0> wrong-type-arg ...]
* 15:33:41 MESSG <gnc.bin> loading auto configuration
* 15:33:41 MESSG <gnc.bin> loading saved reports
[...]



Am 16.01.2017 um 14:28 schrieb Catscrash:
> Hi,
>
> I have the same problem.
>
> I know, that gnucash sees the report, because when I change something
> like the report-guid (created with gnucash-make-guid) I see in the
> console the following:
>
> ;;; note: source file /home/catscrash/.gnucash/reports/ytd-budget.scm
> ;;;       newer than compiled
> /home/catscrash/.cache/guile/ccache/2.0-LE-8-2.0/home/catscrash/.gnucash/reports/ytd-budget.scm.go
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;       or pass the --no-auto-compile argument to disable.
> ;;; compiling /home/catscrash/.gnucash/reports/ytd-budget.scm
> ;;; compiled
> /home/catscrash/.cache/guile/ccache/2.0-LE-8-2.0/home/catscrash/.gnucash/reports/ytd-budget.scm.go
> Found Finance::Quote version 1.38
> [...]
>
> But I still can't find it anywhere in the menu. This is very confusing.
>
> In the report it says  'menu-path (list gnc:menuname-budget) but in
> Reports -> Budget, there's no "YTD Budget Report".
>
> Can this have something to do with the fact that I'm using a localized
> version? GnuCash is german here.
>
> best regards
>
>
>
> Am 16.01.2017 um 06:34 schrieb David T. via gnucash-user:
>>> On Jan 16, 2017, at 10:07 AM, David J. Bakeman <dbakeman at comcast.net> wrote:
>>> I use gnucash 2.6.6 on fedora 21.  I have 3 custom reports I use.  I
>>> have each on a line in HOME/.gnucash/config.user
>>>
>>> (load "/users/home/.gnucash/myreport.scm")
>>>
>>> Try the debug settings in the wiki to see more console output. (Not at
>>> my gnucash computer at the moment).  Make sure you change the
>>> (gnc:define-report stuff I think it's at the end of the report and it
>>> needs a guid as I recall there is a console program that comes with
>>> gnucash to generate the guid.
>> David,
>>
>> Thanks. I honestly don’t know what the problem is here; I am trying to load Phil L.’s std budget report, which he provided several years ago and also just recently. I have attempted to load both the earlier one (named psl-budget.scm) and the more recent one (ytd-budget.scm) without success. Phil has clearly got it running on his machine, using the same config.user mumbo-jumbo, so I have to assume that the report is correctly-formed. However, I and at least one other user on the list has been unable to get the report to appear on the menus. I clearly haven’t been making the correct sacrifices to the Scheme gods…
>>
>> David T.
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> 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 at gnucash.org
> 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.




More information about the gnucash-user mailing list