This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-17
Channels
- # ai (1)
- # announcements (1)
- # aws (38)
- # babashka (25)
- # beginners (84)
- # biff (11)
- # calva (58)
- # clerk (14)
- # clj-kondo (14)
- # cljdoc (9)
- # cljs-dev (2)
- # clojars (2)
- # clojure (93)
- # clojure-czech (2)
- # clojure-dev (13)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-spec (13)
- # clojure-uk (2)
- # clojurescript (6)
- # conjure (1)
- # core-async (9)
- # cursive (12)
- # data-science (7)
- # datahike (47)
- # datalevin (10)
- # datalog (3)
- # datomic (35)
- # emacs (3)
- # events (4)
- # fulcro (49)
- # gratitude (7)
- # humbleui (1)
- # hyperfiddle (42)
- # jobs-discuss (19)
- # kaocha (5)
- # lsp (20)
- # malli (3)
- # meander (2)
- # membrane (2)
- # off-topic (22)
- # pathom (2)
- # polylith (14)
- # practicalli (1)
- # rdf (3)
- # reitit (2)
- # shadow-cljs (11)
- # squint (3)
- # tools-deps (32)
- # vim (9)
- # xtdb (16)
Hi! I generally run kaocha with --watch, do some development, and when I’m done, type CTRL-C (sending SIGINT, I believe). Starting with release vhttps://github.com/lambdaisland/kaocha/releases/tag/v1.79.1270 I’ve started to see the following stacktrace when I exit:
^CException in exit (SIGINT/ShutDown) handler
#error {
:cause "java.io.OutputStreamWriter cannot be cast to java.io.PrintStream"
:via
[{:type java.lang.ClassCastException
:message "java.io.OutputStreamWriter cannot be cast to java.io.PrintStream"
:at [kaocha.api$run$fn__3265$fn__3269$fn__3270$on_exit__3271 invoke "api.clj" 125]}]
:trace
[[kaocha.api$run$fn__3265$fn__3269$fn__3270$on_exit__3271 invoke "api.clj" 125]
[kaocha.api$run$fn__3265$fn__3269$fn__3270$fn__3273$fn__3274$fn__3275 invoke "api.clj" 141]
[kaocha.api$run$fn__3265$fn__3269$fn__3270$fn__3273$fn__3274 invoke "api.clj" 140]
[kaocha.api.proxy$java.lang.Object$SignalHandler$d8c00ec7 handle nil -1]
[sun.misc.Signal$1 run "Signal.java" 212]
[java.lang.Thread run "Thread.java" 750]]}
This doesn’t occur with the release just prior (vhttps://github.com/lambdaisland/kaocha/releases/tag/v1.78.1249). It looks like it might be due to this commit? https://github.com/lambdaisland/kaocha/commit/09eccdbfb3eef69f1f35bfe2b421187acf78b6f7Thanks @grzm for spotting this, it would be really helpful if you could file this through the issue tracker.
One github issue, just for you! https://github.com/lambdaisland/kaocha/issues/416 ❤️
@eugen.stan I believe there's documentation for creating a new test types. See https://cljdoc.org/d/lambdaisland/kaocha/1.83.1314/doc/9-extending Not saying it's exhaustive but it should get you started. It would be helpful to look at the implementation of existing types as well.