Here's an error I just got that could be improved upon. It shows an error in a file core.clj, but my current project uses many libraries and there are multiple files named core.clj. How about putting the full path to the file somewhere so we can jump straight to it?
Thanks, Jeff --------------------------- user=> (use 'clojure.stacktrace) nil user=> (require 'session.inst) #<CompilerException java.lang.Exception: EOF while reading (core.clj: 651)> user=> (e) java.lang.Exception: EOF while reading at clojure.lang.LispReader.readDelimitedList (LispReader.java:1043) clojure.lang.LispReader$ListReader.invoke (LispReader.java:900) clojure.lang.LispReader.readDelimitedList (LispReader.java:1051) clojure.lang.LispReader$ListReader.invoke (LispReader.java:900) clojure.lang.LispReader.readDelimitedList (LispReader.java:1051) clojure.lang.LispReader$ListReader.invoke (LispReader.java:900) clojure.lang.LispReader.read (LispReader.java:145) clojure.lang.Compiler.load (Compiler.java:5854) nil user=> On Feb 8, 3:01 pm, Stuart Halloway <stuart.hallo...@gmail.com> wrote: > This conversation began on Twitter [1] but I want to continue it on the > mailing list as it may be of broader interest. > > The core team is very interested in improving error messages, and relatively > less interested in more code to manipulate stack traces, for the following > reasons: > > (1) The language sits at the bottom, and must solve the problems nobody > higher up can solve. Error messages are created at the point of an error, and > if the language gets it wrong you may not have the information to fix it > later. OTOH, any old library code can reduce a stacktrace. > > (2) Better error messages are easy to implement [2]. Most oddball errors are > in macroexpansion, so there is no runtime cost to doing extra work to improve > error messages. These can be implemented as pure functions, so even a > relative beginner could contribute a patch. > > (3) The clojure.repl/pst macro in 1.3 already provides better control of > stack trace spewage at the REPL. > > Please let us know when you get a misleading error message from a > macroexpansion, so we can make it better. Or contribute a patch along the > lines of [2]. > > Thanks, > Stu > > Stuart Halloway > Clojure/corehttp://clojure.com > > [1]http://twitter.com/marick/statuses/33760838540070912 > [2]https://github.com/clojure/clojure/commit/d694d6d45fb46195ae4de01aab9... -- 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