Re: [Chicken-users] Interpreter Warnings w/ Line Numbers?

2010-07-31 Thread Felix
From: Taylor Venable 
Subject: [Chicken-users] Interpreter Warnings w/ Line Numbers?
Date: Thu, 29 Jul 2010 17:05:52 -0400

> Hi there, when loading bad code into the interpreter, I get warnings.
> Is it possible to have line numbers printed for where these warnings
> are triggered?  Sometimes a message like "reference to possibly
> unbound identifier: x" is hard to trace down if I use variable x a lot
> in the code.  Just to be complete in my question, here is an example
> of what I'm talking about:
> 

Sorry, line-number information is currently not available in that
context.


cheers,
felix

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Interpreter Warnings w/ Line Numbers?

2010-07-30 Thread Taylor Venable
Hi there, when loading bad code into the interpreter, I get warnings.
Is it possible to have line numbers printed for where these warnings
are triggered?  Sometimes a message like "reference to possibly
unbound identifier: x" is hard to trace down if I use variable x a lot
in the code.  Just to be complete in my question, here is an example
of what I'm talking about:

file test.scm:

(module foo
  (foo)

  (import scheme)

  (define (foo)
(+ x y))

  (define (bar)
(display "I am displaying something.")
(newline))
)

 5831 [ taylor @ zareason ] : ~ > csi -no-init

CHICKEN
(c)2008-2010 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.5.6
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2010-07-13 on zareason (Linux)

#;1> (load "test.scm")
; loading test.scm ...
; loading /opt/chicken/lib/chicken/5/scheme.import.so ...

Warning: reference to possibly unbound identifier: y

Warning: reference to possibly unbound identifier: x

Error: module unresolved: foo

Call history:

[foo] (##core#begin (+ x y))
[foo] (+ x y)
(define (bar) (display "I am
displaying something.") (newline))
(##core#set! bar (##core#lambda ()
(display "I am displaying something.") (newline)))
(##core#lambda () (display "I am
displaying something.") (newline))
[bar] (##core#begin (display "I am
displaying something.") (newline))
[bar] (display "I am displaying something.")
[bar] (newline) <--

-- 
Taylor C. Venable
http://metasyntax.net/

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users