small medium large xlarge

27 Jan 2010, 14:37
Glen Rubin (4 posts)

I am following along in the book on pg 34. The example shows doing a java backtrace as follows:

user=> (.printStackTrace *e) ) java.lang.ArithmeticException: Divide by zero | at clojure.lang.Compiler.eval( | at clojure.lang.Repl.main( | Caused by: java.lang.ArithmeticException: Divide by zero | at clojure.lang.Numbers.divide( | at user.eval__2677.invoke(Unknown Source) | at clojure.lang.Compiler.eval( | … 1 more

Attempting the same thing on my emacs-slime results in nil. If I echo the *e variable I get the following:

“java.lang.ArithmeticException: Divide by zero (NO_SOURCE_FILE:0)”

28 Jan 2010, 03:14
Stuart Halloway (76 posts)

When in doubt, step out of slime. Do you see the same behavior at at simple shell repl?

28 Jan 2010, 15:32
Glen Rubin (4 posts)

It works as described in the book when I try it on a simple shell repl. I guess it is a bug with the emac’s clojure mode?

  You must be logged in to comment