Fork me on GitHub
#cider
<
2017-10-02
>
bigdaddys1oth05:10:19

Yea emacs is saying it's unable to connect cider

bruno.bonacci12:10:12

same issue here with-safe-transport does not exist with CIDER 0.16.0snapshot (package: 20171001.112), nREPL 0.2.12

ragge12:10:14

same, temp fix is to revert to [cider/cider-nrepl "0.16.0-20170916.095133-1"]

clojer13:10:23

Same with-safe-transport problem. Reverting back to [cider/cider-nrepl “0.16.0-20170916.095133-1”] worked, thank **d.

twillis13:10:56

so do you just put that in your project.clj dependencies I take it?

clojer13:10:30

twillis: No, you need to revert to an earlier version of of Emacs Cider. I used a backup.

clojer13:10:08

twillis: It’s a Cider package issue, not Clojure.

twillis13:10:02

so has anyone reported this as a bug yet? i didnt immediately see it in github anywhere, though i'm still not clear which repo it should be reported in.

slipset19:10:22

Seems to be a fix on the way.

slipset20:10:45

(defun cider--connected-handler ()
  (let ((cider-enlighten-mode nil))
    (cider-make-connection-default (current-buffer))
    (cider-repl-init (current-buffer))
    (cider--check-required-nrepl-version)
    (cider--check-clojure-version-supported)
    (cider--check-middleware-compatibility)
    (cider--subscribe-repl-to-server-out)
    (when cider-auto-mode
      (cider-enable-on-existing-clojure-buffers))
    (sleep-for 0.1) ;; <-- Increase timeout till it works 
    (cider--debug-init-connection)
    (run-hooks 'cider-connected-hook)))

dpsutton20:10:11

(sleep-for 0.1) the imporant bit that is new

slipset20:10:21

fixes the issue, and is according to https://github.com/clojure-emacs/cider/issues/2092 the thing that's going out as an intermediate fix.

bigdaddys1oth20:10:43

Stick that (sleep-for 0.1) in cider.el?

bigdaddys1oth21:10:01

Or just comment that and (cider-debug-init)?

dpsutton21:10:53

its in cider--connected-handler

dpsutton21:10:43

ah, either one will work.

dpsutton21:10:11

if you put it in your init, it might be easier to undo it or keep it around, but you'll need to make sure that it is evaluated after cider rather than before, since last one would win