Fork me on GitHub
#cider
<
2018-10-08
>
fabrao13:10:12

Hello all, every time I start a cider session from eshell, I have go to build.boot, execute Alt-X cider-connect [ENTER] localhost [ENTER] 9000 [ENTER]. Is there any way to do this with a shortcut ?

bozhidar15:10:28

Why don’t you just do (cider-connect :host ... :port ...) there?

bozhidar15:10:48

With cider-connect you don’t really have to be in a project to run it.

fabrao16:10:19

@bozhidar just call (defun init-connect-cider () (cider-connect :host "localhost" :port 9000)) with (global-set-key [f3] 'init-connect-cider) but got error

fabrao16:10:48

wrong type argument: commandp

bozhidar18:10:59

@fabrao You need to put (interactive) after the prototype to make the function a command.

ordnungswidrig20:10:55

I’ve run into a weird issue since upgrading to 0.18.0. It resembles #2470 (`[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/wrap-apropos`). The effective jvm startup command is:

clojure -Adev -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} com.billpiel/sayid {:mvn/version "0.0.16"} refactor-nrepl {:mvn/version "2.4.0"} cider/cider-nrepl {:mvn/version "0.18.0"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["com.billpiel.sayid.nrepl-middleware/wrap-sayid", "refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"])' 
deps.edn is empty (`{:alias :dev {}}`)

ordnungswidrig20:10:41

Changing cider-nrepl to 0.17.0 starts the nrepl server successfully

bozhidar09:10:30

0.18 will work if you remove sayid or update it to the version 0.0.17.

bozhidar09:10:48

(it’s the first version which added support for nREPL 0.4)