Fork me on GitHub
#cider
<
2022-01-31
>
winsome20:01:10

I'm trying to cider-jack-in-cljs with a node repl and it's failing at init. It's trying to run (do (require 'cljs.repl.node) (cider.piggieback/cljs-repl (cljs.repl.node/repl-env))), but it fails when trying to call cider.piggieback/cljs-repl:

TypeError: Cannot read properties of undefined (reading 'error__GT_str')
    at Socket.<anonymous> ([stdin]:89:38)
    at Socket.emit (node:events:390:28)
    at Socket.emit (node:domain:475:12)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:285:11)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:199:23)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)

winsome20:01:18

This is what my cljs.repl.node/repl-env looks like:

{:host "localhost",
 :port 51620,
 :path nil,
 :socket #<Atom@6be16c7e: nil>,
 :proc #<Atom@145601a4: nil>,
 :state #<Atom@27b9c48f: {:listeners 0}>,
 :debug-port nil}

winsome20:01:17

I see there that the :socket and :proc atoms have a val of nil, and I wonder if that's a problem. But I'm not sure how to go about troubleshooting.