Fork me on GitHub

Is it intended behavior that *cider-error* gets closed when I switch the buffer of some other window? i.e. I switch from foo.clj -> bar.clj, *cider-error* disappears (Using cider 0.16, for reasons. Hopefully this hasn't changed much)


I think it never gets closed - it just gets buried by other buffers that might be displayed in its window. Not sure how exactly do you do the buffer switch, though. My memory of this part of the code is fuzzy.


Good call, it gets buried not closed. *cider-test-report* doesn't present this behavior though. Can I make the former like the latter?


Probably. But I can’t tell you how, without inspecting the code, which I don’t have the time to do. 🙂


Hey folks, I’m getting some weird behavior when executing unit tests in cider. I’m in the namespace of a unit test. I add a test that is designed to fail, load the namespace, run all tests in the namespace (which causes the unit test to fail), then delete the test, rinse and repeat. The test that I deleted is still being executed (and failing) even though I reloaded the namespace. What am I doing wrong? Thanks in advance!


loading a buffer again in a barebones fashion won't unload outdated functions. I'd have a look into instead


yup this is a repl thing not really a cider thing.


there is an undef command in cider tho


if you type , in the repl and select undef and then the name of the test you want to get rid of also does the trick

Frank Henard20:09:36

Just upgraded to 0.18.0, and not sure if this is related, but C-c M-n isn't switching the namespace in my repl. Any ideas?


C-c M-n n now sets the repl to the namespace of the file in focus


(there's a whole host of namespace related calls now under the C-c M-n umbrella)


I think we changed the keybinding only in cider-mode, but not in cider-repl-mode (aka the REPL).


cider-repl-set-ns	C-c M-n (M-)n	Switch the namespace of the REPL buffer to the namespace of the current buffer.


So it's not out of date, we were just looking at the wrong doc

Frank Henard21:09:01

I see. Thanks!