This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-26
Channels
- # announcements (19)
- # babashka (27)
- # beginners (24)
- # calva (14)
- # clerk (5)
- # clj-commons (21)
- # clojure (51)
- # clojure-europe (14)
- # clojure-madison (1)
- # clojure-nl (1)
- # clojure-norway (9)
- # clojure-uk (4)
- # clojuredesign-podcast (32)
- # core-async (14)
- # datomic (7)
- # events (1)
- # honeysql (3)
- # hyperfiddle (14)
- # introduce-yourself (2)
- # kaocha (7)
- # malli (21)
- # off-topic (50)
- # portal (2)
- # reagent (41)
- # reitit (41)
- # releases (1)
- # scittle (6)
- # shadow-cljs (90)
- # tools-deps (10)
- # xtdb (1)
- # yamlscript (1)
I switch back and forth between clojure.test and kaocha when working at the repl. sometimes, if i first load the test suite with clojure and then try to run a given test file with kaocha later, it fails to load, throwing an error at testable/-load :kaocha.type/ns
, saying
ERROR in all (load.clj:47)
Failed loading tests:
Exception: java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null
at java.util.concurrent.ConcurrentHashMap.get (ConcurrentHashMap.java:936)
clojure.lang.Namespace.find (Namespace.java:188)
clojure.core$find_ns.invokeStatic (core.clj:4131)
clojure.core$the_ns.invokeStatic (core.clj:4161)
clojure.core$ns_interns.invokeStatic (core.clj:4208)
clojure.core$ns_interns.invoke (core.clj:4208)
kaocha.type.ns$eval123123$fn__123124.invoke (ns.clj:37)
...
is there a way to reset kaocha when it gets to this state without restarting the repl?
is there a way to skip loading the whole namespace every time?
Not sure what's happening but this sounds fixable @UEENNMX0T . Any chance you can put together a minimal reproduction with steps?
Next time I run into it, I’ll see if I can get something together