Problem with eguile balance sheet

Phil Longstaff plongstaff at rogers.com
Wed Jul 1 19:19:47 EDT 2009


On July 1, 2009 05:20:50 am Chris Dennis wrote:
> Phil Longstaff wrote:
> >...
> >
> > I changed notespage to notes-page in 2 places. Now I get:
>  >...
> >
> > 133: 25* (sub-vicinity (user-vicinity) ".gnucash")
> > /opt/gnucash2-svn/share/gnucash/guile-modules/gnucash/report/balsheet-eg.
> >scm:133:19: In expression (sub-vicinity (user-vicinity) ".gnucash"):
> > /opt/gnucash2-svn/share/gnucash/guile-modules/gnucash/report/balsheet-eg.
> >scm:133:19: Unbound variable: sub-vicinity
> >
> > If I google "sub-vicinity", I see something in slib. Do I need to
> > configure something to make it available?
>
> balsheet-eg.scm needs
>
>     (use-modules (ice-9 slib))
>
> near the top.
>
> Clearly there's something about Guile and/or GnuCash that I don't
> understand going on.  Perhaps it's because I have taxinvoice.scm
> installed as well, and that uses slib, so that slib is still available
> when balsheet-eg.scm is loaded.  That would explain why balsheet-eg.scm
> works for me without that extra line.
>
> <goes away and does some more testing>
>
> Yes, if I remove the line from config.user that loads taxinvoice.scm,
> balsheet-eg.scm reveals that it needs these three:
>
>    (use-modules (gnucash report eguile-gnc))
>    (use-modules (ice-9 regex))
>    (use-modules (ice-9 slib))  ; for 'vicinity' functions
>
> I'll update the copy on the bug report.

OK.  You also need (use-modules (gnucash main)) to define gnc:debug.

Now, it complains about "string-prefix?"

Note that I added this report to src/report/standard-reports and standard-
reports.scm.

Phil


More information about the gnucash-devel mailing list