Justin Taft - Home / Posts

Using Emac’s Cider with Docker

If running cider-connect-cljs returns the following error:

[nREPL] Establishing direct connection to …
 [nREPL] Direct connection to established
 [nREPL] Connection closed unexpectedly (connection broken by remote peer)
 nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1)

It means the port is open, but nrepl is failing to respond.

Ensure nREPL is listening on the right port and address. Where your project is running, do netstat -nl. If nrepl is bound to in a docker container, update it to

 :nrepl {:host "" :port 9999 :middleware[]}

Leave a Reply

Your email address will not be published. Required fields are marked *