Fork me on GitHub

Check the value of clojure.pprint/*print-right-margin*?


huh, looks like new in cider 0.15.0, pretty printing is controlled by cider-repl-pretty-print-width and if that variable is nil then it uses`fill-column`


clojure.pprint/*print-right-margin* is 72. I have tried with both cider-repl-pretty-print-width 80 and nil. My fill-column is 80


Sorry, at this point I have only generic debugging suggestions. The kind of stuff you’ve already considered, i.e. can you recall when’s the last time it worked, and has anything in your environment changed since then. That kind of stuff.


Hehe no problem. I can't really recall when it stopped working, but it stopped without me updating cider, and persisted even after updating yesterday.


does it work in a repl that is NOT running in a lein project? what if you move aside your .lein/profiles.clj?


Hm, something in my profiles.clj...


Luckily it's not very big. Thank you!


After updating cider, cider-switch-to-repl-buffer no longer takes cljs/clj into account. It used to switch to a cljs-repl when in clojurescript-mode and a clj-repl when in clojure-mode. Is this a known bug? Or intended?


Yeah, same thing happens with multiple clojure projects with their own repl. It used to switch to the correct repl for that project, but now only switches to the last used one.


From what I can tell, there is no mention of a relevant repl any more in the cider code. Was this feature just removed, or is there some replacement I'm not finding?


Okay, so C-x C-e and C-c C-k obviously are able to find the correct repl to send the code to - so how do I use that information to visit the correct repl?


i've run into the same issues as you. i haven't opened an issue or tried to fix it due to time issues


I have several clojure projects running at once, and some of them with clojurescript repls running as well - so this is really hampering my style.


yeah. i think its more based now on a concept of last repl


so i'll put my cursor in the one i want and then try to eval


this seems like a fine strategy as a last resort but it seems to be too high up the chain on the repl resolution path for me


guess I'll just have to find an old version of cider and stick with that one for a while


14 should work


yes, I just installed 14. It works like it should. 🙂 Now I have to find the correct version of clj-refactor to go with it.


I really hope that this is just a regression, and that the relevant switching is coming back.


The docs still say > To switch to the relevant REPL buffer based on the Clojure namespace in the current Clojure buffer, use: C-c C-z.


yeah. it was the mechanism that determined this that was changed


This should only pick default to the most recent in ambiguous cases, tho, and still pick correctly from clj vs cljs repls for instance.


i totally agree


Maybe it's some bug in that code causing the bug.


it seems to get the most recent far too often


it also is not good at even recognizing that i'm coming from a cljs buffer and will try to load it in the clj repl


I've also noticed this issue. For now, I'm using (way too often) cider-assoc-buffer-with-connection. However, for some reason, even this function sometimes fail to recognize any active cider connection (although I have e.g. 3 cider repls running)


does someone have the time to raise an issue on github?


I am using two Emacs frames (on two different monitors), and when cider-doc opens up a new buffer, it appears in the same position as last time, but that might be in the other frame (the one I'm not currently in) and it annoys me. Does anyone know how I can force the buffer to appear in the current frame?


I guess deleting the old buffer first works.