Fork me on GitHub
#cider
<
2016-02-06
>
bozhidar06:02:57

there’s one important change in 0.11 everyone should be aware of

bozhidar06:02:07

test commands are now grouped in a prefix map

bozhidar06:02:58

meaning C-c , will no longer run the tests - it’s C-c , t or alternatively C-c C-t (C-) t

bozhidar06:02:42

in 0.12 we might opt to remove the C-c , prefix, so get in the habit of using C-c C-t

anmonteiro14:02:40

newbie question: I'm getting a problem at the cider REPL related to changed keybindings. I've set my RET to be paredit-newline and now at the repl I can't execute any clojure because clicking return is bound to paredit-newline

anmonteiro14:02:26

I've now added a hook to cider-repl-mode to change RET back to newline but this doesn't seem to do it? What's should I be setting it to?

anmonteiro14:02:38

nvm, changing it to cider-repl-return seems to have done it

bozhidar16:02:44

you answered the question yourself simple_smile

chris.wong17:02:04

I have a question about running tests in cider. I used cider-test-run-tests but all it did was displaying a message at the emacs message area saying “Running tests in my.namespace-test"

chris.wong17:02:46

What am I missing? What can I do to debug this? I’m using version cider 0.10.2.

chris.wong18:02:35

bozhidar, I just upgraded to 0.11.0-snapshot (package: 20160206.6), but C-c C-t prefix binding is not enabled.

chris.wong18:02:33

It’s only bound in clojure buffer but not the repl buffer.

malabarba19:02:32

@bozhidar is there a reason why cider-repl-mode doesn't enable cider-mode?

kyle_schmidt20:02:30

Hello, I'm receiving an error when I jack in to cider. I have searched the web and tried a few things mainly involving adding a few lines to my ~/.lein/profile.clj but I still haven't found a cure. Any help will be greatly appreciated. ; CIDER 0.11.0alpha (package: 20160206.6) (Java 1.8.0_72, Clojure 1.7.0, nREPL 0.2.10) WARNING: CIDER requires nREPL 0.2.12 (or newer) to work properly WARNING: CIDER's version (0.11.0-snapshot) does not match cider-nrepl's version (0.9.1). Things will break! user>

akiva20:02:58

You need to make sure that cider-nrepl is also at 0.11.0-SNAPSHOT.

kyle_schmidt20:02:55

in my lein profile? This is the current state of my .lein/profiles.clj: {:user {:plugins [[lein-pprint "1.1.1"]] :dependencies [[slamhound "1.3.1"]]}} {:repl {:dependencies [[org.clojure/tools.nrepl "0.2.12"]] :plugins [[cider/cider-nrepl "0.10.2"]]}}

kyle_schmidt20:02:27

also should I upgrade. I think there are newer versions out there than what I am using?

akiva20:02:29

I have [cider/cider-nrepl "0.11.0-SNAPSHOT"]

kyle_schmidt20:02:36

Now I have: {:user {:plugins [[lein-pprint "1.1.1"]] :dependencies [[slamhound "1.3.1"]]}} {:repl {:dependencies [[org.clojure/tools.nrepl "0.2.12"]] :plugins [[cider/cider-nrepl "0.11.0-SNAPSHOT"]]}} look good?

akiva20:02:06

You basically have to keep the Leiningen side and the Emacs side in sync.

kyle_schmidt20:02:59

Now I'm receiving these errors: ; CIDER 0.11.0alpha (package: 20160206.6) (Java 1.8.0_72, Clojure 1.7.0, nREPL 0.2.10) WARNING: CIDER requires nREPL 0.2.12 (or newer) to work properly WARNING: The following required nREPL ops are not supported: apropos classpath complete eldoc format-code format-edn info inspect-pop inspect-push inspect-refresh macroexpand ns-list ns-vars ns-path refresh resource stacktrace toggle-trace-var toggle-trace-ns undef Please, install (or update) cider-nrepl 0.11.0-SNAPSHOT and restart CIDER WARNING: CIDER's version (0.11.0-snapshot) does not match cider-nrepl's version (not installed). Things will break! user>

anmonteiro20:02:27

@kyle_schmidt: your repl profile is probably not getting picked up, it needs to be in the same map as your user profile

kyle_schmidt20:02:11

thanks @anmonteiro! Now my ~/.lein/profiles.clj looks like this: {:user {:plugins [[lein-pprint "1.1.1"]] :dependencies [[slamhound "1.3.1"]]} {:repl {:dependencies [[org.clojure/tools.nrepl "0.2.12"]] :plugins [[cider/cider-nrepl "0.11.0-SNAPSHOT"]]}}}

kyle_schmidt20:02:41

but now my cider repl wont start

anmonteiro20:02:44

that's not what I said

anmonteiro20:02:08

try this:

{:user {:plugins [[lein-pprint "1.1.1"]]
       :dependencies [[slamhound "1.3.1"]]}
 :repl {:dependencies [[org.clojure/tools.nrepl "0.2.12"]]
        :plugins [[cider/cider-nrepl "0.11.0-SNAPSHOT"]]}}

anmonteiro20:02:38

you basically had a syntax error, maps need to have even forms

kyle_schmidt20:02:30

brilliant! it worked, thanks!

anmonteiro21:02:36

I'm having trouble quitting an infinite loop at the cider repl. I can stop infinite loops which don't print anything with C-c C-b, but whenever some infinite loop keeps printing to the repl I have to stop it in the activity monitor

anmonteiro21:02:44

is there a way that I can do it inside emacs?

malabarba22:02:40

@anmonteiro it's a little tricky. A loop that prints infinitely hangs both the JVM and Emacs

malabarba22:02:22

So you need to quickly C-g a few times to unhang Emacs, and then C-c C-b to abort the JVM loop

anmonteiro22:02:34

@malabarba: thanks, I'll remember to try that next time

malabarba22:02:39

But by the time you type C-c C-b, the loop might have hung emacs again.

anmonteiro22:02:57

I understand that it might get tricky

anmonteiro22:02:59

that's expected

malabarba22:02:09

Thus the trickiness. ☺️

malabarba22:02:58

I've thinking of a way to improve that. But that's tricky too. :-)

benedek23:02:32

enjoy responsibly!