Re: Unbound variable warning/exception

2020-12-21 Thread Jérémy Korwin-Zmijowski
Hello ! Looking in the all of core Guile could save time! I can see already an emacs geiser trick to add it automatically haha. Auto-completion + auto-use-module = Awesome! Cheers, Jérémy Le 21 décembre 2020 00:11:38 GMT+01:00, Christopher Lam a écrit : >The exception printer would be a good

Re: Unbound variable warning/exception

2020-12-20 Thread Christopher Lam
The exception printer would be a good one to upgrade. The dilemma is whether to search available modules in the current repository, or in the whole of core guile. Do we want to show e.g. "Unbound variable: vector-for-each. Did you forget (use-modules (srfi srfi-43))" ? On Sun, 20 Dec 2020 at 21:3

Re: Unbound variable warning/exception

2020-12-20 Thread Ludovic Courtès
Hi, Aleix Conchillo Flaqué skribis: > On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam > wrote: >> >> Hi guilers, I saw in guix the incredibly useful unbound-variable exception >> printer written by Ludovic. I've adapted for use in gnucash as >> https://github.com/Gnucash/gnucash/commit/6f951784

Re: Unbound variable warning/exception

2020-12-19 Thread Massimiliano Gubinelli
Thanks, there is indeed some interesting and useful code there. However I would prefer not to make large changes in this moment. I removed most of the warnings by proper use of modules but we still have some circular dependencies among modules and these are sources of some warning which for th

Re: Unbound variable warning/exception

2020-12-19 Thread Christopher Lam
You can remove these "possibly unbound variable" warning by using modules appropriately. It's not easy and tedious but necessary to achieve better module hygiene. See changes in https://github.com/Gnucash/gnucash/pull/831 On Sat, 19 Dec 2020, 6:08 pm Massimiliano Gubinelli, wrote: > Hi all, > >

Re: Unbound variable warning/exception

2020-12-19 Thread Massimiliano Gubinelli
Hi all, nice piece of code! About these "possible unbounded variable" warnings, I have for GNU TeXmacs the opposite need: how can I turn them off? :) I was also curious to ask: which are currently the major applications of GNU Guile (as extension language)? For example, in TeXmacs we have ~110

Re: Unbound variable warning/exception

2020-12-18 Thread Aleix Conchillo Flaqué
On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam wrote: > > Hi guilers, I saw in guix the incredibly useful unbound-variable exception > printer written by Ludovic. I've adapted for use in gnucash as > https://github.com/Gnucash/gnucash/commit/6f951784 -- there are now in > guile 3.0.4 many more un

Re: Unbound variable: cond-expand-provide

2012-05-03 Thread Sunjoong Lee
I found the cause of "ERROR: In procedure module-lookup: Unbound variable: cond-expand-provide" but don't know how to resolve it yet. srfi-64.scm is a portable code and it use cond-expand; I had used cond-expand-provide in cond-expand like this: (cond-expand (guile (cond-expand-provide (current-

Re: "unbound variable"

2012-01-08 Thread Andy Wingo
Hi, You probably figured this one out, many moons ago, but: On Sun 26 Jun 2011 10:00, "Tomas By" writes: > | mapdisplay.scm:36:12: In expression (get-map wg name): > | mapdisplay.scm:36:12: Unbound variable: get-map > | ABORT: (unbound-variable) > | guile> get-map > | # > | guile> later you sa

Re: "unbound variable"

2011-06-27 Thread Tomas By
On Mon, June 27, 2011 23:44, Linas Vepstas wrote: > Not sure what the bug is, though ... does get-map work > if you don't use it within the module? Can you verify it works > in some simple way? yes it works fine, except from inside the module.

Re: "unbound variable"

2011-06-27 Thread Linas Vepstas
On 27 June 2011 04:41, Peter Brett wrote: > "Tomas By" writes: > >> I have an extended Guile interpreter with a C function "get-map", >> defined by "scm_c_define_gsubr", that I then try to use in the >> (pure Scheme) module "mapdisplay", with the following result: >> >> [snip] >> >> Any ideas wha

Re: "unbound variable"

2011-06-27 Thread Peter Brett
"Tomas By" writes: > I have an extended Guile interpreter with a C function "get-map", > defined by "scm_c_define_gsubr", that I then try to use in the > (pure Scheme) module "mapdisplay", with the following result: > > [snip] > > Any ideas what is happening here? How can I debug it? Having read

Re: "unbound variable"

2011-06-27 Thread nalaginrut
> Hi again, > > Thanks for the help so far. > > On Mon, June 27, 2011 10:38, nalaginrut wrote: > > I can't give accurate answer because you provided less information. So I > > just give a guess: > > If you have wrapped a module in mapdisplay.scm, you'd have imported some > > symbols out of this m

Re: "unbound variable"

2011-06-27 Thread Tomas By
Hi again, Thanks for the help so far. On Mon, June 27, 2011 10:38, nalaginrut wrote: > I can't give accurate answer because you provided less information. So I > just give a guess: > If you have wrapped a module in mapdisplay.scm, you'd have imported some > symbols out of this module. I know you

Re: "unbound variable"

2011-06-27 Thread nalaginrut
> On Mon, June 27, 2011 05:40, nalaginrut wrote: > > I think you need to import this symbol in your module, in this case, I > > think it's mapdisplay.scm. If get-map's not within a module, you'd need > > to get this symbol with "dynamic-link" and it's friends. > > It's in the top-level module. >

Re: "unbound variable"

2011-06-27 Thread Tomas By
On Mon, June 27, 2011 05:40, nalaginrut wrote: > I think you need to import this symbol in your module, in this case, I > think it's mapdisplay.scm. If get-map's not within a module, you'd need > to get this symbol with "dynamic-link" and it's friends. It's in the top-level module. | guile> (apro

Re: "unbound variable"

2011-06-26 Thread nalaginrut
> Hi all, > > I have an extended Guile interpreter with a C function "get-map", > defined by "scm_c_define_gsubr", that I then try to use in the > (pure Scheme) module "mapdisplay", with the following result: > > | mapdisplay.scm:36:12: In expression (get-map wg name): > | mapdisplay.scm:36:12: U

Re: Unbound variable: quote

2010-09-25 Thread Andy Wingo
On Fri 24 Sep 2010 19:16, Joel James Adamson writes: > Andy Wingo writes: > >> On Thu 23 Sep 2010 18:19, Joel James Adamson writes: >> >>> Why would `quote' be redefined? What's going on here and how can I fix it? >> >> Perhaps the module that you are calling use-modules in has no binding >> f

Re: Unbound variable: quote

2010-09-24 Thread Joel James Adamson
Andy Wingo writes: > On Thu 23 Sep 2010 18:19, Joel James Adamson writes: > >> Why would `quote' be redefined? What's going on here and how can I fix it? > > Perhaps the module that you are calling use-modules in has no binding > for `quote'. Is there anything I can do about that? Would I hav

Re: Unbound variable: quote

2010-09-24 Thread Andy Wingo
On Thu 23 Sep 2010 18:19, Joel James Adamson writes: > Why would `quote' be redefined? What's going on here and how can I fix it? Perhaps the module that you are calling use-modules in has no binding for `quote'. This problem is fixed in 1.9, FWIW. Andy -- http://wingolog.org/