On Tue, Jan 3, 2012 at 12:09 PM, Larry Travis <tra...@cs.wisc.edu> wrote:

> I have been solving Clojure problems now for many months and can no longer
> exactly be considered a Clojure NOOB, but I still have an awful lot to
> learn about Clojure.  One thing that has caused difficulties from the
> beginning is that I don't know Java and don't know how to exploit the Java
> eco-structure -- and thus I can't figure out how to use all the inter-op
> potential, and I have a hard time interpreting Java-oriented error messages.
>
> For example, on doing a particular load-file I get this very useful error
> message:
>
> java.lang.Exception: Unmatched delimiter: ] (source-file:323)
>
>
> But my error messages are more likely to look like this:
>
> java.lang.Exception: Unsupported binding form: (quote symb)
> (NO_SOURCE_FILE:5045)
>
>
> Where does the 5045 come from and what does it mean?  Is there some way I
> could manage and load my defn files, or manage my evaluations of defn
> expressions in the REPL, so that such error messages would always give me a
> useful line number like the 323 in the first example?
>
> Thanks for your help.
>  --Larry


If you want accurate error locations make sure to recompile the whole file
instead of evaluating expressions one at a time. The tools could of course
improve here by setting the line number explicitly when evaluating
expressions one at a time.

David

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