cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Quentin Le Guennec 2020-12-17T09:45:03.336600Z

Hello, is there a way with cider to manipulate the ns form so that some imports are automatically included?

Quentin Le Guennec 2020-12-17T09:45:40.337400Z

the use case is my user-repl ns, containing a debug atom to register some values

Quentin Le Guennec 2020-12-17T09:46:00.337700Z

(swap! debug-atom assoc :params params)

nmkip 2020-12-17T10:39:25.339500Z

Hi, I'm using cider-connect-clj to connect to a socket repl at localhost:50505. I connect successfully but when I evaluate stuff it timeouts.

Starting new CIDER session ...
[nREPL] Establishing direct connection to localhost:50505 ...
[nREPL] Direct connection to localhost:50505 established
nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1) 
Am I doing something wrong?

bozhidar 2020-12-20T14:18:13.347700Z

Yeah, CIDER works only with nREPL. inf-clojure works with socket REPLs.

2020-12-17T13:23:10.341700Z

I don’t think cider supports connecting to a socket repl. You may need to start the repl with nrepl support instead of socket support.

2020-12-17T13:29:02.343700Z

With that port number you may be using @seancorfield’s dot-clojure. If so, this is how I’m starting it to connect to cider with nrepl: clj -M:add-libs:dev:nrepl