r/Clojure • • Aug 11 '18

Error message improvements in Clojure 1.10

https://mobile.twitter.com/puredanger/status/1028103654241443840
89 Upvotes

41 comments sorted by

View all comments

Show parent comments

2

u/alexdmiller Aug 11 '18

I haven't done much yet with stack traces but considering some things (in particular with a way to focus on the cause stack rather than the whole chain). Clojure is inherently compiled to bytecode and implemented in Java. I don't think it's generally possible to have a Clojure-only stack trace (and a lot of times the actual error flows out of the Java parts of Clojure).

4

u/keymone Aug 11 '18

i see, thanks for your work, every improvement is very much appreciated!

14

u/wherethebuffaloroam Aug 11 '18

In CIDER you can hit p in the stacktrace popup to filter down to "Project only" stack frames. This option will stay on allowing you to quickly see just your part and then only a keypress away to see the full stack trace if you need to investigate further.

13

u/alexdmiller Aug 11 '18

I think this a good example where a tool has more context and can help you focus on whats more important.