kaocha

jyn 2025-09-27T16:29:10.196429Z

is there a way to set a custom exception handler in Kaocha? right now it prints 60 of so lines of backtrace every time something panics, and it makes it tedious to find the error

jyn 2025-09-27T16:41:04.892819Z

oh huh i just discovered kaocha.stacktrace/*stacktrace-stop-list*

👍 1
jyn 2025-09-27T23:19:12.145379Z

hm that crashes though:

[watch] Fatal error in test run #error {
 :cause Cannot read field "dynamic" because "v" is null
 :via
 [{:type java.lang.NullPointerException
   :message Cannot read field "dynamic" because "v" is null
   :at [clojure.lang.Var pushThreadBindings Var.java 326]}]
 :trace
 [[clojure.lang.Var pushThreadBindings Var.java 326]
  [clojure.core$push_thread_bindings invokeStatic core.clj 1946]
  [clojure.core$with_bindings_STAR_ invokeStatic core.clj 1990]
  [clojure.core$with_bindings_STAR_ doInvoke core.clj 1990]
  [clojure.lang.RestFn invoke RestFn.java 428]
  [kaocha.api$run invokeStatic api.clj 99]
  [kaocha.api$run invoke api.clj 86]
  [kaocha.watch$try_run$fn__6414 invoke watch.clj 55]
  [kaocha.watch$try_run invokeStatic watch.clj 54]

jyn 2025-09-27T23:22:43.228819Z

oh i had an old version of kaocha installed oops