Re: Unbound variable warning/exception

2020-12-21 Thread Jérémy Korwin-Zmijowski
ood 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 a

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

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:

Re: Unbound variable warning/exception

2020-12-19 Thread Massimiliano Gubinelli
her Lam wrote: > > 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 > <h

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, w

Re: Unbound variable warning/exception

2020-12-19 Thread Massimiliano Gubinelli
: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.

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 > g

Unbound variable warning/exception

2020-12-18 Thread Christopher Lam
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 unbound-var warnings than in 3.0.2 -- wouldn't it be a u

"possibly unbound variable" with auto compile, but not without or with compile

2020-05-05 Thread Alexis Fouilhé
Hi list! I am using Guile to test a C program and I get "possibly unbound variable" warnings about functions defined in C, when running my Guile script with auto-compile on (the default). But I don't get these warnings when compiling with "guild compile", nor when run

Re: Request for assistance: (assertion-violation) unbound variable

2017-06-10 Thread Alex Vong
is empty"))) > > When I run the code (which I have checked with the answer given in the > book), I am presented with the following output: "In procedure module- > lookup: Unbound variable: assertion-violation." > > So far I have found no pointers to a solution in the

Re: Request for assistance: (assertion-violation) unbound variable

2017-06-08 Thread Peter Silcock
Many thanks for your assistance. Peter.

Request for assistance: (assertion-violation) unbound variable

2017-06-08 Thread Peter Silcock
hecked with the answer given in the book), I am presented with the following output: "In procedure module- lookup: Unbound variable: assertion-violation." So far I have found no pointers to a solution in the reference manual or on the web. My assumption is that I am missing a module

Re: primitive eval with module => Unbound variable?

2017-05-22 Thread Jan Nieuwenhuizen
Andy Wingo writes: > current-module is dynamically scoped. Consider: > > (define-module (qux) > #:use-module (foo)) > > (baz) > > In this case the current module for the baz invocation is (qux). Ah, yes! Thanks, now that helps making sense of it. Why didn't I consider this option :-

Re: primitive eval with module => Unbound variable?

2017-05-22 Thread Andy Wingo
More concretely... you think in your examples that because you see (current-module) in the (foo) module that (current-module) will be (foo). That is a lexical assumption. It's usually what you want. But current-module isn't lexically scoped -- it's dynamically scoped. Its value comes from the c

Re: primitive eval with module => Unbound variable?

2017-05-22 Thread Andy Wingo
On Thu 18 May 2017 06:54, Jan Nieuwenhuizen writes: >> This is the right thing: >> >> (define-module (foo) #:export (baz)) >> (define eval-module (current-module)) >> (define bar 42) >> (define (baz) (eval 'bar eval-module)) > > Thanks!...this works. I'm very happy with this, it means th

Re: primitive eval with module => Unbound variable?

2017-05-17 Thread Jan Nieuwenhuizen
Andy Wingo writes: > On Tue 16 May 2017 23:59, Jan Nieuwenhuizen writes: > >> This code works when not put in a module; make it a module and I get >> >> => ERROR: Unbound variable: bar > > I assume you mean that this doesn't work: > > (define-mod

Re: primitive eval with module => Unbound variable?

2017-05-17 Thread Andy Wingo
On Tue 16 May 2017 23:59, Jan Nieuwenhuizen writes: > This code works when not put in a module; make it a module and I get > > => ERROR: Unbound variable: bar I assume you mean that this doesn't work: (define-module (foo) #:export (baz)) (define bar 42) (define (baz

Re: primitive eval with module => Unbound variable?

2017-05-17 Thread Vladimir Zhbanov
ess (+ (data-offset > "s:scaffold/mesmes" g) d))) > ... > > and primitive-eval and run them later However, when I do this, > i386:push-global-address is an Unbound variable. Here's a small test > that demonstrates my problem > > --8<

primitive eval with module => Unbound variable?

2017-05-16 Thread Jan Nieuwenhuizen
184 0 0 0 0)) (lambda (f g ta t d) (list 80)) (lambda (f g ta t d) (i386:push-global-address (+ (data-offset "s:scaffold/mesmes" g) d))) ... and primitive-eval and run them later However, when I do this, i386:push-global-address is an Unbound variable. Here's a smal

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-p

Unbound variable: cond-expand-provide

2012-05-03 Thread Sunjoong Lee
Hello, I thought cond-expand-provide be available in everywhere but saw a compile error, "ERROR: In procedure module-lookup: Unbound variable: cond-expand-provide". I don't know why this is happening; do you have any idea or comments? Thanks in advance. test-load in attatched ar

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 &g

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
t; >> 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 expr

Re: "unbound variable"

2011-06-26 Thread nalaginrut
ression (get-map wg name): > | mapdisplay.scm:36:12: Unbound variable: get-map > | ABORT: (unbound-variable) > | guile> get-map > | # > | guile> > > Any ideas what is happening here? How can I debug it? > > /Tomas > > > I think you need to import thi

"unbound variable"

2011-06-26 Thread Tomas By
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): | mapdispl

Re: [r6rs] abusive request for help on "unbound variable" error

2010-11-21 Thread Andreas Rottmann
Andreas Rottmann writes: > Indeed `assert' is missing from Guile ATM, but I've submitted a patch a > while ago that fixes that (among other things): > > > Uh, sorry, that one doesn't apply anymore -- here's the refreshed one:

Re: [r6rs] abusive request for help on "unbound variable" error

2010-11-21 Thread Andreas Rottmann
-gnu I get the following error: >> >> Glad you found your problem in other mails. > > I have not. I was wrong regarding bindings not being > re-exported (I forgot what my local scripting infrastructure > did); but I still get the "unbound variable" err

Re: [r6rs] abusive request for help on "unbound variable" error

2010-11-20 Thread Marco Maggi
u found your problem in other mails. I have not. I was wrong regarding bindings not being re-exported (I forgot what my local scripting infrastructure did); but I still get the "unbound variable" error from Guile. The only thing I can guess (after trying to

Re: [r6rs] abusive request for help on "unbound variable" error

2010-11-20 Thread Andy Wingo
On Thu 18 Nov 2010 22:25, Marco Maggi writes: > With Guile's master branch checkout > 8d10ccae79ff46f0ebea92ba36acfaebafba8d86onan > i686-pc-linux-gnu I get the following error: Glad you found your problem in other mails. FYI though, I think you will fin

Re: [r6rs] abusive request for help on "unbound variable" error

2010-11-19 Thread Marco Maggi
"Marco Maggi" wrote: > This is wrong; it is the "guile-r6rs" executable that, > when used interactively, does not import the R6RS bindings > by default as I expected. This is my own script, it does not come with Guile... -- Marco Maggi

Re: [r6rs] abusive request for help on "unbound variable" error

2010-11-19 Thread Marco Maggi
"Marco Maggi" wrote: > P.S. It appears that some or all the bindings from the > R6RS libraries: > > (rnrs arithmetic fixnums) > (rnrs arithmetic flonums) > > are not re-exported by (rnrs). This is wrong; it is the "guile-r6rs" executable that, when used interactively, does not import the

[r6rs] abusive request for help on "unbound variable" error

2010-11-18 Thread Marco Maggi
onal.sps failed: ;;; key vm-error, throw_args (vm-run "VM: Unbound variable: ~s" (#>)) guile: uncaught throw to vm-error: (vm-run "VM: Unbound variable: ~s" (#>)) it is cryptic to say the least; commenting out all the tests from the "test-functional.sps" file th

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/

Unbound variable: quote

2010-09-23 Thread Joel James Adamson
ed*) (else #)) 36: 35 (begin (process-use-modules (list (list #))) *unspecified*) In unknown file: ?: 36* [process-use-modules ... ?: 37* [list ... ?: 38* [list ... ?: 39* (quote (ice-9 popen)) : In expression (quote (ice-9 popen)): : Unbound variable: quote ABORT: (unbound-variabl

Re: Bug: Unbound variable:

2008-12-14 Thread Neil Jerram
2008/12/14 Neil Jerram : > > There are two places that call > error_unbound_variables, ... s/variables/variable/ Neil

Re: Bug: Unbound variable:

2008-12-14 Thread Neil Jerram
) ...) > 14: 5* [ldj-process] > 2: 6 [for-each # (#)] > ?: 7* [ldj-process-document #] > 2: 8* [for-each # ... > 2: 9* [document-get-sentences #] > 2: 10 (cog-get-reference doco) > > :2:9: In expression (cog-get-reference doco): > :2:9: Unbound variable: cog

Re: Bug: Unbound variable:

2008-12-13 Thread Linas Vepstas
on verge >> of swapping to disk) will suddenly get an 'Unbound variable' >> error on a variable that is heavily in use (dozens or maybe >> thousands of calls per second). This system has only *one* >> thread in guile mode. > > Are you able to get a meanin

Re: Bug: Unbound variable:

2008-12-13 Thread Ludovic Courtès
Hi, "Linas Vepstas" writes: > In guile-1.8.5 (haven't yet tried 1.8.6) I'm seeing a strange bug: > a program that has been running a while (12-24 hours) and > approaching an out-of-memory condition (system on verge > of swapping to disk) will suddenly get an

Bug: Unbound variable:

2008-12-13 Thread Linas Vepstas
Hi, In guile-1.8.5 (haven't yet tried 1.8.6) I'm seeing a strange bug: a program that has been running a while (12-24 hours) and approaching an out-of-memory condition (system on verge of swapping to disk) will suddenly get an 'Unbound variable' error on a variable that is he

Re: problem with drawing triangle:(Unbound-variable)

2006-01-07 Thread R. Mattes
below > > > > guile>(define test-bb (filled-triangle 0 1 0 -1 1 -1)) > > standard input:10:4: In expession (filled-triangle 0 1 ...): > > standard input:10:4: Unbound variable: filled-triangle > > ABORT: (Unbound-variable) > > guile> > > >

Re: problem with drawing triangle:(Unbound-variable)

2006-01-07 Thread Julian Graham
angle 0 1 0 -1 1 -1)) > standard input:10:4: In expession (filled-triangle 0 1 ...): > standard input:10:4: Unbound variable: filled-triangle > ABORT: (Unbound-variable) > guile> > > my system is debian. > > -- > Huazhong Wang > > Graduate > Department of Electric

problem with drawing triangle:(Unbound-variable)

2006-01-07 Thread Huazhong Wang
Hi, I am learning guile and scheme. I want to draw a triangle, but the machine always responsed me a warning. see below guile>(define test-bb(filled-triangle 0 1 0 -1 1 -1)) standard input:10:4: In expession (filled-triangle 0 1 ...): standard input:10:4: Unbound variable: filled-trian