Hi,

Am 03.01.2012 um 21:33 schrieb Larry Travis:

> David and Meikel:
> Thanks for your responses, but it appears to me that what you say applies 
> only to error messages referring to evaluation of defn expressions.  
> Constructing my function definitions in a file separate from the REPL and 
> then recompiling the entire file with a load-file whenever I make a change 
> results in the correct line number being given to me for errors detected by 
> the compiler -- but if an error occurs later when I am exercising the 
> compiled code, the line number given to me doesn't appear to refer to the 
> source file from which the compiling was done -- nor does the line number 
> given to me for an error occurring in evaluation of an expression entered in 
> the REPL refer to the REPL line within which the expression occurred.  To 
> wit, for my original example error message
> 
> java.lang.Exception: Unsupported binding form: (quote symb) 
> (NO_SOURCE_FILE:5045)

Of course you get only the line of trouble from your file when the exception is 
thrown in your function. This is obviously a compile time error. So it's either 
in the form you submitted to the repl or an error in the expansion of a macro 
in your code you submitted to the repl.

> 
> the REPL line which resulted in the error message was 15392, not 5045.
> 
> So where does the 5045 come from?

Line 5045 of input. Not line of interaction!

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to