Fork me on GitHub
#cider
<
2016-02-20
>
catonano03:02:09

@benedek: I forgot I had a .profiles-clj. It's like this {:user {:plugins [[cider/cider-nrepl "0.9.1"] [refactor-nrepl "1.1.0"] ] :dependencies [[org.clojure/tools.nrepl "0.2.7"]] } }

catonano03:02:41

and lein versin is Leiningen 2.6.1 on Java 1.8.0_71 OpenJDK 64-Bit Server VM

catonano03:02:12

I had just forgot .profiles. Sorry

catonano03:02:51

@benedek: I removed it and no warnings came up

benedek09:02:21

no worries. i tested that the params override profiles which is not working for your case. my guess is that the override did not happen because you had the stuff defined in the user profile

benedek09:02:42

will check this tho

sashton14:02:45

is there a way to get the cider-test-report buffer to use pjstadig/humane-test-output? I've added it as an injection in :user in my profiles.clj, and i can see that it is loaded when I manually run a test in the REPL, but when I use the cider-test-run-test command, the output is not formatted.

benedek17:02:45

@catonano: tested this. overriding did not happen because deps/plugins were defined in the :user profile

benedek18:02:55

no worries, I am adding a section about this to the cider readme so thanks for bringing it up

andrea.crotti19:02:48

WARNING: CIDER's version (0.11.0-snapshot) does not match cider-nrepl's version (0.10.2). Things will break!

andrea.crotti19:02:59

but I don't see any 0.11 on Clojars

andrea.crotti19:02:13

how do I get that version then?

catonano20:02:36

@andrea.crotti: 0.11.0-snapshot is the version of the part of Cider runningn inside Emacs. It's not on Clojars

catonano20:02:22

as fot the mismatching versions, see what happened to me, just a few lines above

andrea.crotti20:02:47

Yes I know, but the problem is that my emacs package is too new right?

andrea.crotti20:02:49

And I would need the equivalent clojure backend package?

catonano20:02:25

@andrea.crotti: it's not "too" new. It's new to the right extent 😉

catonano20:02:50

yes, you need the matching version of the cnREPL package on the clojure side

catonano20:02:07

but that's injected automatically by the Emacs Cider

catonano20:02:19

you don't need to set it up yoursef

catonano20:02:35

probably you have a profile.clj file

catonano20:02:00

and that's forcing the wrong version of the nREPL clojure "backend"

catonano20:02:12

this was explained to me a few lines above

andrea.crotti20:02:18

Ah that might explain another issue as well

andrea.crotti20:02:18

Good to know thanks

benedek20:02:09

Just for the record there is a 0.11.0-snapshot on clojars

sashton20:02:02

Also something that got me recently is that if you use clojure 1.6, it will automatically use 10.x cider nrepl, instead of 11

andrea.crotti21:02:56

all sorted by the way simplified my lein_profiles.clj as well, great

andrea.crotti21:02:29

the only annoying thing maybe is that it means you always need internet access when starting a REPL

andrea.crotti21:02:38

if using the snapshot version for the emacs pacakge

benedek21:02:59

that may be so but same should be true if you use profiles.clj

benedek21:02:40

you can always make sure that -o is used i guess so your already retrieved snapshot is used

benedek21:02:08

@sashton: i might have missed that but not sure that is actually so

benedek21:02:08

wonder what are the steps you are taking...

sashton21:02:29

That was my experience, I had a brand new empty app, no profile dependencies or plugins. With clojure 1.6 it failed with errors, when I switched to 1.7 it worked

sashton21:02:04

The cider readme does say that 10.2 is the last version to support 1.6. That's what made me think to switch clojure versions

sashton21:02:56

Ah actually, maybe I misspoke earlier... it doesn't pick up 10.x nrepl, I think it claimed it couldn't find one at all

sashton21:02:19

In any case, it didn't work

benedek22:02:14

oh right. I misunderstood. yes, right. 0.11 needs clojure 1.7 or newer. that is basically due to reader conditionals i think