Re: Getting line numbers in stack traces

2010-05-14 Thread LordGeoffrey
As a newbie, this is the biggest frustration i have with clojure. Coming from a scheme background i regularly type (defn (func a b v) .. ) That produces a completely non-specific and non-locatable error message. I occasionally resort to cutting my files in halves until i locate the offending li

Re: Getting line numbers in stack traces

2010-05-14 Thread Meikel Brandmeyer
Hi, On Thu, May 13, 2010 at 09:17:54PM -0700, MarkSwanson wrote: > If there are problems, just switch buffers, edit, \ef, switch back to > the REPL and call (higher-up 12) again. rinse, repeat... Just some gotchas: * With \ef the file buffer will be evaluated. That means the line numbers are

Re: Getting line numbers in stack traces

2010-05-13 Thread MarkSwanson
On May 13, 4:32 pm, Brian Watkins wrote: > Okay, I can get that stack trace, but there's no line for clojure.core/ > divide in your trace.  How would I know which function threw the > exception?  "eval" isn't very useful.  Ideally I'd like a line number, > too. Right. It's strange I've never ev

Re: Getting line numbers in stack traces

2010-05-13 Thread Brian Watkins
Okay, I can get that stack trace, but there's no line for clojure.core/ divide in your trace. How would I know which function threw the exception? "eval" isn't very useful. Ideally I'd like a line number, too. If I have a function, (defn process [sequence] (map some-function sequence)) And

Re: Getting line numbers in stack traces

2010-05-13 Thread MarkSwanson
On May 13, 6:11 am, Brian Watkins wrote: > What is the method that gets line numbers and function names into > stack traces?  I know I can't get them in the Repl (because there > aren't any), but I tried loading my file with load-file and that > doesn't help either. It's there; Clojure binds th

Getting line numbers in stack traces

2010-05-13 Thread Brian Watkins
What is the method that gets line numbers and function names into stack traces? I know I can't get them in the Repl (because there aren't any), but I tried loading my file with load-file and that doesn't help either. -- You received this message because you are subscribed to the Google Groups "C