nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
dharrigan 2020-08-13T07:48:21.002Z

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:

dharrigan 2020-08-13T07:48:42.002200Z

user=&gt; 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)

dharrigan 2020-08-13T07:48:56.002500Z

and below it, another exeption

dharrigan 2020-08-13T07:49:00.002700Z

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)

dharrigan 2020-08-13T07:49:39.003500Z

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

dharrigan 2020-08-13T07:50:32.004400Z

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.

dharrigan 2020-08-13T07:50:38.004700Z

Has anyone come across this one before?

dominicm 2020-08-13T08:10:08.005Z

Second error looks like cider

dominicm 2020-08-13T08:10:16.005300Z

I think there's a cider issue about aot

dharrigan 2020-08-13T08:19:07.005500Z

ooh