Fork me on GitHub
#emacs
<
2019-02-08
>
Piotr05:02:26

Hi guys! I am new to both emacs and clojure and I don't even know how to approach this. Works on my Ubuntu, but fails on macOS. When trying to do clojure-jack-in i get this:

nREPL server started on port 49486 on host 127.0.0.1 - 
ERROR: Unhandled REPL handler exception processing message {:op clone, :id 1}
java.lang.NullPointerException
	at clojure.core$deref_future.invokeStatic(core.clj:2292)
	at clojure.core$deref.invokeStatic(core.clj:2312)
	at clojure.core$deref.invoke(core.clj:2298)
	at cemerick.piggieback$wrap_cljs_repl$fn__50762.invoke(piggieback.clj:288)
	at clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__46451.invoke(middleware.clj:22)
	at refactor_nrepl.middleware$wrap_refactor$fn__55864.invoke(middleware.clj:214)
	at clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__46451.invoke(middleware.clj:22)
	at nrepl.server$handle_STAR_.invokeStatic(server.clj:18)
	at nrepl.server$handle_STAR_.invoke(server.clj:15)
	at nrepl.server$handle$fn__50340.invoke(server.clj:27)
	at clojure.core$binding_conveyor_fn$fn__5476.invoke(core.clj:2022)
	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)

When using lein repl works just fine. Any ideas/resources?

dpsutton05:02:07

it looks like you have refactor nrepl in your setup. can you try without that?

dpsutton05:02:21

usually better to get things working as simply as possible and then build back up to it

dpsutton05:02:50

also, what is your lein version? lein --version?

Piotr05:02:10

Leiningen 2.8.3 on Java 1.8.0_202 Java HotSpot(TM) 64-Bit Server VM

Piotr05:02:35

@dpsutton I got rid of the refactor from plugins and now I am getting timeout

[nREPL] Direct connection to localhost:49542 established
error in process filter: nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1)
error in process filter: Sync nREPL request timed out (op clone id 1)

dpsutton06:02:45

can you post your project.clj file or deps.edn file?

dpsutton06:02:41

oh boy. ok. well you picked a big one to learn. and also at a time when a low level library changed. few things you need to bump: figwheel-sidecar -> "0.5.18"; com.cemerick/piggieback -> cider/piggieback "0.3.10" (yes coordinate change) cemerick.piggieback/wrap-cljs-repl -> cider.piggieback/wrap-cljs-repl

Piotr06:02:02

🙂 Thanks. What I really don't get in here is that it works just fine on my ubuntu.

dpsutton06:02:34

i suspect your ubuntu machine has an older version of lein (2.8.1)

dpsutton06:02:47

i'm guessing your mac is new and has the latest lein?

Piotr06:02:19

That indeed is the case!

Piotr06:02:35

Thank you

cider 5