I'm trying an experiment in pre-compiling the source of my projects to speed up launch time of the clj, following the information presented here <https://clojure.org/guides/dev_startup_time>
. However, I'm enountering an issue that seems to be thrown by nrepl (in 0.7.0 and in 0.8.0 - the stack is higher in 0.8.0), when I open my editor (neovim + conjure). Here is a snippet of what is thrown:
user=> ERROR: Unhandled REPL handler exception processing message {:code (ns conjure.internal (:require [clojure.pprint :as pp]))(defn pprint [val w opts] (apply pp/write val (mapcat identity (assoc opts :stream w)))), :id 15ba2b17-3b84-463d-bc55-8a1b0dcf882a, :op eval}
java.lang.NullPointerException
at clojure.core$deref_future.invokeStatic(core.clj:2300)
at clojure.core$deref.invokeStatic(core.clj:2320)
at clojure.core$deref.invoke(core.clj:2306)
at cider.nrepl$wrap_tracker$fn__4976.invoke(nrepl.clj:460)
at nrepl.middleware$wrap_conj_descriptor$fn__3858.invoke(middleware.clj:16)
at nrepl.middleware.session$session$fn__4249.invoke(session.clj:309)
at nrepl.middleware$wrap_conj_descriptor$fn__3858.invoke(middleware.clj:16)
at nrepl.server$default_handler$fn__4779.invoke(server.clj:130)
and below it, another exeption
ERROR: Unhandled REPL handler exception processing message {:code #?(:clj 'clj :cljs 'cljs :cljr 'cljr :default 'unknown), :id 7be0fda4-379d-49e0-b2d6-37fa14de595a, :op eval, :session 61afff04-3d2a-4eaa-9155-8c31f5d12f46}
java.lang.NullPointerException
at clojure.core$deref_future.invokeStatic(core.clj:2300)
at clojure.core$deref.invokeStatic(core.clj:2320)
at clojure.core$deref.invoke(core.clj:2306)
at cider.nrepl$wrap_tracker$fn__4976.invoke(nrepl.clj:460)
When I delete the classes
directory and launch clj
normally, thus reverting to on-demand compliation of the clj files, no exceptions are thrown.
So, to recap, if I pre-compile clj, launch the repl and open the editor, that stack is thrown. If I remove the classes directory, launch the repl and open the editor, no exceptions are thrown.
Has anyone come across this one before?
Second error looks like cider
I think there's a cider issue about aot
ooh