Fork me on GitHub
#cider
<
2015-08-05
>
gtrak18:08:42

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.

gtrak18:08:53

just hangs

pbostrom18:08:39

deleting cider and clojure mode and reinstalling fixed my issues when upgrading to 0.9.1: https://github.com/clojure-emacs/cider/issues/1181

gtrak18:08:10

yea, this was a clean install

malabarba18:08:46

gtrak: Are you doing cider-connect or jack-in? If it's jack-in you could check the nrepl-server buffer for information.

malabarba18:08:44

Also, if it hangs indeinitely, do M-x toggle-debug-on-quit and hit C-g a good time into the hang.

gtrak18:08:01

@malabarba: it's cider-connect

malabarba18:08:25

Ok, then there's no nrepl buffer

gtrak18:08:26

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

gtrak18:08:52

but I see master is using 0.2.10 (and it works on linux) so I wonder how no one has hit this before

malabarba18:08:06

Did you try tools.nrepl 0.2.6 with cider 0.9.1?

gtrak18:08:24

I did not, spent too much time on this today simple_smile. Need an osx box for testing.

malabarba18:08:42

Yes, this kind of thing can be time consuming :)

malabarba18:08:04

Anyway, try the debug-on-quit thing

gtrak18:08:30

cool, i'll look more into it next time around

malabarba18:08:34

It should tell us where the hang is happening, at least on the Emacs side

gtrak18:08:48

but I really do wonder if just 0.2.10 is somehow breaking things

gtrak18:08:57

and how that could be mac-specific

pbostrom19:08:15

nah, using tools.nrepl 0.2.10 on osx here

malabarba19:08:01

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

malabarba19:08:17

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

gtrak19:08:27

also using maven simple_smile

gtrak19:08:53

and the manual startup with cider-nrepl handler

gtrak19:08:09

not sure if that makes it easier or harder to mess up 😉

simonkatz20:08:12

@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)))))

malabarba21:08:04

@nomiskatz: cl-concatenate 'string is basically concat (I think)

simonkatz21:08:04

@malabarba: Thanks — seems to be so. simple_smile

simonkatz21:08:07

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.

malabarba21:08:38

that sounds about right

malabarba21:08:36

Every once in a while I dust off some .el files and find horrendous code in there

blueberry21:08:21

@nomiskatz there is a much simpler way. check the answer in the github issue I raised

simonkatz21:08:37

@blueberry: Right. I was just trying to point you at cider-repl-prompt-function.