Fork me on GitHub
#cider
<
2017-04-30
>
richiardiandrea03:04:09

@borkdude sorry I was on the phone and then it turned off, glad you solved!

borkdude07:04:47

@richiardiandrea np

mobileink17:04:27

hi folks, I’m trying to eval forms in a cljc file. I have a boot-cljs repl going. evaluating forms in cljs files works fine, but in a cljc file I get ” ‘cider-eval-last-sexp’ needs a Clojure REPL”. what’s the secret incantation?

dpsutton20:04:47

M-x clojurescript-mode

dpsutton20:04:15

@mobileink M-x clojurescript-mode. There's some wonkiness about default connections and how to dispatch to repls

dpsutton20:04:22

but it kinda assumes that clojure is the default

mobileink20:04:00

aha, i suspected sth like that. thanks!

oskarkv23:04:36

Hi! I'm new to Emacs and trying out cider for the first time. I tried to get dynamic font locking to work. But I can't get it to work for things from clojure.core. I set cider-font-lock-dynamically to t (I also tried with all the the symbols). It works for my own functions and vars, but not for core's. See http://i.imgur.com/06o2M7Z.png Have I missed something? I tried with cider 0.14 and 0.15snapshot. By the way, I get a warning about using cider-nrepl 0.14 with cider 0.15snapshot, but Emacs says "Starting nREPL server via ... conj \[cider/cider-nrepl \"0.15.0-SNAPSHOT\"\]" Can I ignore that or what's up?

dpsutton23:04:23

try again with 0.15 snapshot. there was a bug recently

dpsutton23:04:04

and you shouldn't need to specify a cider-nrepl, just let it inject itself

dpsutton23:04:59

i'm not sure what you mean when you say you are using cider-nrepl 0.14 with cider 0.15 snapshot. If its in your lein profiles file, remove it and the 0.15 should work fine.

dpsutton23:04:43

bug was here: https://github.com/clojure-emacs/cider/issues/1889 and is fixed in 0.15 snapshot

dpsutton23:04:05

but note this is a bug in cider-nrepl so you must use the cider-nrepl 0.15-snapshot

oskarkv23:04:14

@dpsutton Yeah I was letting it inject itself, or at least so I thought. As I said, it looks like it in the message "Starting nREPL..." after cider-jack-in, but then I get a message in the repl after it started. Will look into it.

oskarkv23:04:42

a warning, I should say

dpsutton23:04:10

do you have a ~/.profiles.clj file or whatever the lein profiles file is?

oskarkv23:04:24

I'll take a look

dpsutton23:04:30

what message were you seeing in the repl after it started?

oskarkv23:04:56

Yes, apparently I had an old version in my profiles. Don't even remember why it's there. 😛

dpsutton23:04:08

did you use the brave clojure setup?

oskarkv23:04:27

Is that from the book

dpsutton23:04:41

one of the steps in teh book is lein profiles 0.8.2 which is from 2014

dpsutton23:04:51

i've seen it pop up a few times so i was just checking

oskarkv23:04:06

I was using 0.14, probably used it for some vim plugin before.

dpsutton23:04:40

ah ok. well hopefully all should work now

oskarkv23:04:58

Yes, thanks!

oskarkv23:04:02

It does work. 🙂

dpsutton23:04:05

excellent! glad it does

oskarkv23:04:06

@dpsutton Is there a way to make it work for required stuff, with a namespace part?

oskarkv23:04:32

I want my my-namespace/my-func all green 😛

dpsutton23:04:37

Did you see that var to t?

dpsutton23:04:52

If so after you load the name space it should