Fork me on GitHub
#cider
<
2015-11-03
>
jeremyraines01:11:54

I gather from the README that this isn’t a CIDER specific issue . . . but does anyone have tips on getting the repl to use the right version of nREPL? Mine loads 0.2.6 no matter what I try

jeremyraines01:11:53

I’m not sure if I’m correctly doing the last suggestion (reinstall cider). I’m using spacemacs and updating that, which I thought updated all packages. If not, how do I manually reinstall cider?

pbostrom01:11:22

@jeremyraines: from your shell rm -rf ~/.emacs/elpa/cider* then in emacs M-x package-install [RET] cider [RET]

pbostrom01:11:50

when I ran into this problem I think I also reinstalled clojure-mode and dash packages as well

jeremyraines01:11:17

thanks, trying that

jeremyraines02:11:38

is “ac-cider” the right thing?

jeremyraines02:11:42

just “cider” didn’t come up

jeremyraines02:11:54

that :repl option didn’t work for me

pbostrom02:11:02

you may need to do a lein upgrade to get support for :repl profile

pbostrom02:11:40

if you don't see cider you may need to add the melpa stable repo: https://stable.melpa.org/#/getting-started

jeremyraines02:11:32

some progress - upgrading lein now gives me 0.2.10 when starting the repl, but I’m not sure my profile is working still because in my profile I’m asking for 0.2.12

jeremyraines02:11:50

no luck on the other front either — I think the packages are getting installed via spacemacs after I delete them, but the repl still doesn’t launch on cider-jack-in. It may be using unstable versions though

jeremyraines02:11:48

my lein profile looks like this:

jeremyraines02:11:34

could it be that refactor-nrepl specifies 0.2.10 as a dep? If that’s it is there any way to override it?

jeremyraines02:11:01

seems that’s not it

jeremyraines03:11:20

sorry for the volume — will move this to a lein channel. But if anyone has other suggestions for getting cider-jack-in to open a buffer, please do ping me

jonpither12:11:50

I'm sure this has been asked a gazillion times, is there support for jump-to-def in ClojureScript yet?

jonpither12:11:08

either in CIDER or a supporting lib

mitchelkuijpers12:11:54

I start up fighweel with nrepl support

mitchelkuijpers12:11:05

and then connect to it and it then just works @jonpither

jonpither12:11:09

Cool, is there a resource for this with the steps..

jonpither12:11:15

defo will try it

mitchelkuijpers12:11:15

And cider is even smart enough to realize it’s a cljs repl

mitchelkuijpers12:11:25

Just let me know if you need help

jonpither12:11:54

great - thanks

mitchelkuijpers12:11:22

These steps are exactly what I do

nooga12:11:50

Connected. Express Yourself. -Madonna

nooga12:11:07

Am I the only one who finds these slightly creepy? 😄

bozhidar13:11:30

@jonpither: There are some steps to start a cljs repl in the README

bozhidar13:11:06

most of the cljs functionality we have (find def, completion, etc) is in the cljs-tooling lib which the middleware uses internally

bozhidar13:11:29

@cichli is the resident cljs support in CIDER expert simple_smile

jonpither13:11:17

Does clj-refactor clean up namespace definition work for cljs?

magnars13:11:31

If it doesn't, please report an issue. It's in a state of "we think this works, but it hasn't been extensively tested" at the moment simple_smile

jonpither13:11:36

OK - the last time I used it, it actually killed emacs

jonpither13:11:46

I'll give it another go simple_smile

keeds14:11:18

Cool. Haven't tried cljs in emacs for a while due to REPL pain. Just set up (with figwheel) and it works nicely. Thx

roberto14:11:44

I just use figwheel for cljs

jeremyraines15:11:02

@keeds what’s your process for setting it up? Here’s what I was doing before, which doesn’t work right now

jeremyraines15:11:05

that’s with lein figwheel running in the terminal. And also this is on 0.5.0-SNAPSHOT

keeds15:11:31

@jeremyraines: I ran lein figwheel (with nrepl options in config) cider-connect => localhost:7888 In cider-repl buffer => (use 'figwheel-sidecar.repl-api) (cljs-repl) In cljs buffer can then eval code such as (js/alert "Hi!") to prove using cljs repl

keeds15:11:25

@jeremyraines: using figwheel 0.4.1

jeremyraines15:11:39

getting it going using https://github.com/bhauman/lein-figwheel/tree/master/sidecar but not really sure where to put this system stuff to avoid typing it all out in the repl each time

bhauman15:11:23

@jeremyraines: look into user.clj

bhauman15:11:35

@jeremyraines: there is a bug such that (use 'figwheel-sidecar.repl-api) (cljs-repl) isn't working right now

bhauman15:11:42

I'm about to push a fix

jeremyraines15:11:39

ok cool. The system stuff is nice, I’m new to it, but enabling css watching and other add-ons is cool simple_smile