Hi, I’m trying to run Etaoin from within Vim using vim-fireplace. When I run from my Leiningen REPL it works fine, but when I eval, say, (etaoin.api/chrome)
from within Vim I see the following error in the terminal where the Lein REPL is running:
erbium.server.repl=> Exception in thread "nRepl-session-0648efc0-2ce9-4579-b144-2abde1e0e2dd" java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at nrepl.transport$bencode$fn__26146.invoke(transport.clj:116)
at nrepl.transport.FnTransport.send(transport.clj:41)
at nrepl.middleware.print$send_nonstreamed.invokeStatic(print.clj:159)
at nrepl.middleware.print$send_nonstreamed.invoke(print.clj:138)
at nrepl.middleware.print$printing_transport$reify__26537.send(print.clj:174)
at nrepl.middleware.caught$caught_transport$reify__26572.send(caught.clj:58)
at nrepl.middleware.interruptible_eval$evaluate$fn__26628.invoke(interruptible_eval.clj:123)
at clojure.main$repl$fn__9077.invoke(main.clj:437)
I suspect it’s to do with the fact that vim-fireplace uses nREPL but I’m not sure. Any ideas?