[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Interpreter Warnings w/ Line Numbers?
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:
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:
<syntax> [foo] (##core#begin (+ x y))
<syntax> [foo] (+ x y)
<syntax> (define (bar) (display "I am
displaying something.") (newline))
<syntax> (##core#set! bar (##core#lambda ()
(display "I am displaying something.") (newline)))
<syntax> (##core#lambda () (display "I am
displaying something.") (newline))
<syntax> [bar] (##core#begin (display "I am
displaying something.") (newline))
<syntax> [bar] (display "I am displaying something.")
<syntax> [bar] (newline) <--
--
Taylor C. Venable
http://metasyntax.net/
- [Chicken-users] Interpreter Warnings w/ Line Numbers?,
Taylor Venable <=