Fork me on GitHub
#nrepl
<
2020-08-13
>
dharrigan07:08:21

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 . 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:

dharrigan07:08:42

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)

dharrigan07:08:56

and below it, another exeption

dharrigan07:08:00

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)

dharrigan07:08:39

When I delete the classes directory and launch clj normally, thus reverting to on-demand compliation of the clj files, no exceptions are thrown.

dharrigan07:08:32

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.

dharrigan07:08:38

Has anyone come across this one before?

dominicm08:08:08

Second error looks like cider

dominicm08:08:16

I think there's a cider issue about aot