27 Jan 2010, 14:37
Generic-user-small

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(Compiler.java:4094) | at clojure.lang.Repl.main(Repl.java:87) | Caused by: java.lang.ArithmeticException: Divide by zero | at clojure.lang.Numbers.divide(Numbers.java:142) | at user.eval__2677.invoke(Unknown Source) | at clojure.lang.Compiler.eval(Compiler.java:4083) | … 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
Stu-small_pragsmall

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
Generic-user-small

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