kaocha

practicalli-johnny 2026-04-07T10:44:11.891559Z

[Issue Resolved with Portal 0.63.0 release] Anyone experiencing an issue running Kaocha tests when a Clojure project includes Portal and the wrap-portal nrepl middleware? I can run Kaocha on the command line successfully, but when running Kaocha via an editor connected REPL I get a Stack Overflow error

; run-all-tests
; (err) Execution error (StackOverflowError) at portal.nrepl/eval8190$fn (nrepl.clj:127).
; (err) null
I do not experience this issue with clojure.test library, only using kaocha. Alias used to start the Clojure REPL
:repl/inspect
  {:extra-deps
   {nrepl/nrepl       {:mvn/version "1.5.1"}
    cider/cider-nrepl {:mvn/version "0.58.0"}
    lambdaisland/kaocha {:mvn/version "1.91.1392"}
    djblue/portal     {:mvn/version "0.62.0"}}
   :main-opts ["--main" "nrepl.cmdline"
               "--middleware"
               "[cider.nrepl/cider-middleware,portal.nrepl/wrap-portal]"]}
Kaocha and Portal wrap-portal were working happy together previously, although it has been a while since I tested. I will check the version history of Kaocha and Portal (wrap-portal) and nrepl and see if there is an earlier version combination that will work okay. If anyone has this working currently, please share your versions of libraries to help me narrow this down. Thank you.

✅ 1
practicalli-johnny 2026-04-07T15:13:19.289939Z

Portal 0.58.5 works correctly. Portal 0.59.0 works, although test report has changed significantly and doesnt look right Portal 0.59.1 fails with Stack Overflow on portal.nrepl I'll reach out to the Portal project and see if they can advise.

plexus 2026-04-07T10:49:09.707279Z

First I hear of this, @jr0cket. Kaocha hasn't had a new release since 2024, so I'm guessing something changed re. portal or nrepl.

👍 1
✅ 1