sci

jyn 2025-09-15T04:23:29.028779Z

does anyone have an example of printing SCI traces using clj-commons.format.exceptions? print-exception is easy enough to use, but :sci/stacktrace isn't in the format it expects and i'm having trouble converting it

jyn 2025-09-15T04:24:16.975529Z

i tried doing something like this:

(exc/format-exception* [{:message "hiii", :stack-trace (exc/format-stack-frame {:name "" :file "x.clj" :line 34 :names ["" "def"] :is-clojure? true})}] {})
but it gets real mad and prints "key must be integer" without any more info

jyn 2025-09-15T05:21:01.301169Z

ok i gave up on format.exceptions and used format.ansi directly and it works great

👍 1