Fork me on GitHub
#kaocha
<
2022-11-02
>
Noah Bogart14:11:41

What are the potential causes of this error when running tests from my repl?

Failed loading tests:
Exception: java.lang.NullPointerException: null
 at java.util.concurrent.ConcurrentHashMap.get (ConcurrentHashMap.java:936)
    ...
    kaocha.type.ns$eval87218$fn__87219.invoke (ns.clj:34)
    ...
    kaocha.testable$load.invokeStatic (testable.clj:94)
    kaocha.testable$load.invoke (testable.clj:75)
    kaocha.testable$load_testables.invokeStatic (testable.clj:152)
    kaocha.testable$load_testables.invoke (testable.clj:144)
    kaocha.load$load_test_namespaces.invokeStatic (load.clj:49)
    kaocha.load$load_test_namespaces.doInvoke (load.clj:37)
I don't think I'm doing anything special but maybe I am

Noah Bogart14:11:53

I restarted my repl and it went away so I'm confused what could have caused it.

Alys Brooks04:11:12

Hmm, can you share the whole stack trace in case it becomes necessary (if you still have it)?

Noah Bogart19:11:05

Sadly, I don't. I should have captured the whole thing, I'm not sure why I didn't. I'll keep an eye out for it happening again

Alys Brooks03:11:23

Looking into it more, I'm not sure. It might be caused by keeping some configuration around and then renaming the test's source files

Alys Brooks03:11:52

That's fairly early in the process of loading tests, so it could be a bug in clojure.test or Clojure itself.

👍 1