Fork me on GitHub
#cider
<
2015-06-17
>
federkasten03:06:32

congrats 0.9 🎉

ska08:06:16

Is there any info on which Emacs version is required for cider 0.9? Don't see anything in the relnotes

bozhidar12:06:25

the same version that’s required for clojure-mode

bozhidar12:06:21

it’s not in the changelog, but it’s in the README https://github.com/clojure-emacs/cider#requirements

borkdude12:06:30

how do you remove a breakpoint in cider?

borkdude12:06:44

I just got it working, kudos to @bozhidar, this is great simple_smile

agile_geek13:06:15

@bozhidar: I’ve started so I’ll finish..in this channel. Looking forward to trying debugger as, coming from IDE’s in Java world, it’s the thing I’ve missed most in Emacs.

bozhidar13:06:19

@agile_geek: I hope you’ll like it. Keep in mind this is the first version, so there’s definitely a room for improvement. I’m a bit surprised you opted for cider over cursive. Most IDE users tend to prefer sticking with an IDE.

jcsims14:06:32

TIL that clj-refactor has find-usages

benedek14:06:32

@jcsims: there is also rename symbol building on the same backend function

jcsims14:06:54

yeah I’ve been reviewing https://github.com/clojure-emacs/clj-refactor.el/wiki this morning before work

jcsims14:06:58

I use the ns sorting and remove unused quite often, but am slowly expanding my muscle memory for others

benedek14:06:15

rename symbol and extract fn are really everyday for me too

benedek14:06:27

and note that clean-ns is a remove requires on steroids really

jcsims14:06:03

haha yeah steroids is an apt description for it. I’ll check it out, thanks @benedek

Frank Henard14:06:39

Hello, Congrats on 0.9.0! I'm getting this:

; CIDER 0.9.0 (package: 20150616.1226) (Java 1.7.0_60-ea, Clojure 1.5.1, nREPL 0.2.10)
WARNING: CIDER's version (0.9.0-snapshot) does not match cider-nrepl's version (0.9.0)
What's causing the warning?

jcsims14:06:05

@ballpark: you’ve got the snapshot version installed in emacs, instead of the stable release

jcsims14:06:42

you might try installing the stable release from MELPA Stable, or upgrading the cider-nrepl dep to the snapshot version

Frank Henard14:06:45

@jcsims: ok. I'll look into getting on MELPA Stable

jcsims14:06:01

@ballpark: I tend to stick with stable releases for a few packages I use, and I do this by pinning packages (which I think requires Emacs 24?):

(when (boundp 'package-pinned-packages)
  (setq package-pinned-packages
        '((cider        . "melpa-stable")
          (clj-refactor . "melpa-stable")
          (clojure-mode . "melpa-stable")
          (paradox      . "melpa-stable")
          (smartparens  . "melpa-stable"))))

jcsims14:06:44

and the melpa-stable bit is the specific melpa-stable archive at http://stable.melpa.org/packages/

Frank Henard14:06:16

@jcsims: That's helpful. I didn't know melpa-stable existed. It makes me wonder if all of my packages should point to the stable version as default instead of the reverse

benedek15:06:46

which basically retrieves stable updates at emacs startup

bozhidar15:06:44

the version of MELPA is 0.9.0 for the time being, therefore this warning; switch your middleware to 0.9.0 as well

bozhidar15:06:30

the snapshot releases will appear soon again - I’m waiting to see if serious issues will be reported to warrant a 0.9.1 release right away

bozhidar15:06:45

or we can move straight to 0.10-snapshot

bozhidar15:06:46

I can branch 0.9 for sure, but if I can away with less work I’ll definitely opt for this simple_smile

benedek15:06:48

i may have misunderstood @ballpark but i think he had the versions out of sync the other way around. cider-nrepl being 0.9.0 and cider client being 0.9.0-snapshot...

Frank Henard15:06:28

@benedek: I'm not sure I'm following you. Right now, I'm shaving the yak of getting packages pinned to package repos

benedek15:06:55

you have cider, the emacs package and the nrepl middleware cider-nrepl (that is defined most likely in your lein profiles.clj file). their version should match

benedek15:06:19

the warning you are seeing is reporting that the versions of these two components of cider don’t match

benedek15:06:14

i am saying that based on the warning you pasted it seems that the emacs package version is 0.9.0-snapshot and the cider-nrepl middleware version is 0.9.0

Frank Henard15:06:27

ok, right. I've got them to match now

benedek15:06:31

coolio 😉

benedek15:06:37

sry if i was not clear...

Frank Henard15:06:42

really appreciate the help!

benedek15:06:01

no worries

agile_geek15:06:22

@bozhidar: I foolishly tried to learn Clojure and Emacs at same time! I must like pain! Love emacs now but it took a while before the ‘vulcan nerve pinches’ involved became muscle memory

malabarba16:06:07

@agile_geek: Think of it as transferable skills. Emacs will stick with you long after you've switched programming language. simple_smile

jcsims16:06:27

I forget - what was the workaround for lein’s dependence on tools.nrepl 0.2.6? It seems a direct dependence in my project on 0.2.10 is not sufficient

malabarba16:06:09

@bozhidar: was helping someone with that just a few minutes ago

jcsims16:06:27

yeah I see that adding it should just work, I’ll keep fiddling with it

bozhidar16:06:04

{:user {:dependencies [[org.clojure/tools.nrepl "0.2.10”]]}}

bozhidar16:06:18

Add this to your profiles.clj

jcsims18:06:27

@bozhidar: thanks. For some reason I was misremembering it as adding to the project dependencies.

gcv18:06:26

Hi everyone!

gcv18:06:40

I just upgraded to CIDER 0.9, and it stopped starting for me altogether. 😞

gcv18:06:06

The following output appears in *Messages*:

Starting nREPL server via lein repl :headless...
nREPL server started on 57282
nREPL: Establishing direct connection to localhost:57282 ...
nREPL: Direct connection established
Connected.  This REPL is yours to command!

gcv18:06:37

But my familiar REPL buffer is never created. I tried removing all my CIDER and Clojure configurations from Emacs init.el, and that didn’t help.

gcv18:06:21

My .lein/profiles.clj is already linked to 0.9:

{:user
 {:plugins [[cider/cider-nrepl "0.9.0"]]}}

gcv18:06:38

Emacs version 24.5.1.

gcv18:06:53

Brand new empty project created using lein new.

gcv18:06:47

Any ideas about how to begin debugging this?

gtrak18:06:30

there's been a lot of breakages on the mailing list where people resolved it themselves by reinstalling cider and clojure-mode

gtrak18:06:37

so i would suggest trying that first

gcv18:06:37

@gtrak: Perfect. Wish I’d thought to try a full reinstall. It works now. Thanks.

phil20:06:16

Do cider and the figwheel repl play nicely, or do people tend to drop back to inf-clojure?

andrewmcveigh20:06:45

@phil: currently working OK for me. It can be finicky though