Fork me on GitHub
#cursive
<
2019-04-19
>
kleopatra16:04:02

I'm getting an error starting a REPL on cursive:

[WARNING] No nREPL middleware descriptor in metadata of #'cider.piggieback/wrap-cljs-repl, see clojure.tools.middleware/set-descriptor!
Connecting to local nREPL server...
Unhandled REPL handler exception processing message {:id 5f9fb0ec-25e0-40da-8031-b3ad9f3aeeda, :op clone}
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.piggieback$wrap_cljs_repl$fn__34830.invoke(piggieback.clj:302)
	at nrepl.middleware$wrap_conj_descriptor$fn__34424.invoke(middleware.clj:16)
	at clojure.tools.nrepl.server$handle_STAR_.invokeStatic(server.clj:19)
	at clojure.tools.nrepl.server$handle_STAR_.invoke(server.clj:16)
	at clojure.tools.nrepl.server$handle$fn__33656.invoke(server.clj:28)
	at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
nREPL server started on port 58578 on host 127.0.0.1 - 
The weird thing is that lein repl works fine. I have lein version 2.9.1 on MacOS and this particular project has, in its dev dependencies, nrepl 0.6.0 and the latest cider.piggieback

currentoor22:04:27

On most macros I’m able to put my cursor on them, click the lightbulb and select resolve as but on some macros the resolve as option doesn’t show up, any ideas?

tony.kay04:04:27

Usually that happens with nested macros like in specter..you have to go to the library and find the macro that is declaring the macro, resolve-as that, and then you can go up a level and get it to work at the next layer, etc.

2
Drew Verlee23:04:43

i started a a remote repl and my output looks like this:

Connecting to remote nREPL server...
Clojure 1.10.0
I would have expected a place to send forms to the repl or an exception.

Drew Verlee23:04:57

i'm not sure what the output is telling me

Drew Verlee23:04:39

gods, the UI for this is so confusing, its there but its at the bottom and you have to manual enlarge the spece to send the forms and there is no prompt

Drew Verlee23:04:56

the repl is hidden, can you find it 🙂