This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-05
Channels
- # admin-announcements (2)
- # beginners (20)
- # boot (13)
- # cider (36)
- # cljs-dev (11)
- # clojure (31)
- # clojure-berlin (3)
- # clojure-czech (2)
- # clojure-dev (2)
- # clojure-japan (9)
- # clojure-russia (16)
- # clojurebridge (3)
- # clojurescript (182)
- # cursive (8)
- # datascript (2)
- # datomic (35)
- # editors (33)
- # hoplon (18)
- # ldnclj (11)
- # off-topic (6)
- # re-frame (3)
- # reagent (39)
having a hard time using anything past 0.8.1 on my coworker's osx box, it looks a lot like https://github.com/clojure-emacs/cider/issues/671 but can't find any workarounds.
deleting cider and clojure mode and reinstalling fixed my issues when upgrading to 0.9.1: https://github.com/clojure-emacs/cider/issues/1181
gtrak: Are you doing cider-connect
or jack-in? If it's jack-in you could check the nrepl-server
buffer for information.
Also, if it hangs indeinitely, do M-x toggle-debug-on-quit
and hit C-g
a good time into the hang.
@malabarba: it's cider-connect
I downgraded back to 0.8.1 and it was still a problem, downgrading tools.nrepl 0.2.10 to 0.2.6 fixed it
but I see master is using 0.2.10 (and it works on linux) so I wonder how no one has hit this before
I'm quite sure at least a couple of the Cider devs are on Mac (batsov himself is, IIRC), so the problem is certainly not as simple as that
Between profiles.clj
, project.clj
, and the different versions of each package (and of lein itself), there's a lot of room for problems :P
@blueberry: To change the Cider REPL prompt, I have this:
(defvar nomis-cider-repl--prompt-prefix (cl-concatenate 'string
(make-string 80 ?\_) "\n"))
(defvar nomis-cider-repl--prompt-suffix "\n")
(setq cider-repl-prompt-function
(lambda (namespace)
(cl-labels ((do-it () (funcall 'cider-repl-default-prompt namespace)))
(if nomis-cider-repl--hack-prompt-p
(cl-concatenate 'string
nomis-cider-repl--prompt-prefix
(do-it)
nomis-cider-repl--prompt-suffix)
(do-it)))))
@nomiskatz: cl-concatenate 'string
is basically concat
(I think)
@malabarba: Thanks — seems to be so.
Turns out I have uses of concat
elsewhere. My Emacs Lisp is very varied — mostly it depends on where I happened to copy code from before I hacked it.
@nomiskatz there is a much simpler way. check the answer in the github issue I raised
@blueberry: Right. I was just trying to point you at cider-repl-prompt-function
.