Fork me on GitHub
#cider
<
2017-09-19
>
oskarkv00:09:36

Hm, how do I work on cider-nrepl conveniently with cljs? 😧

gonewest81800:09:54

The modern-cljs tutorial shows one approach based on boot-cljs-repl but with the caveat that this is a “let’s learn this from the ground up” style tutorial, and not just a template to clone and use https://github.com/magomimmo/modern-cljs

gonewest81800:09:45

I’ve seen a bunch of templates to clone and use too. for example https://github.com/martinklepsch/tenzing

oskarkv01:09:42

@gonewest818 I meant testing cider-nrepl in cljs at the same time as I'm trying to change cider-nrepl. Is there a tutorial for that? 🙂

gonewest81801:09:21

Ah. My misunderstanding then.

oskarkv01:09:14

Yeah, but those do not really cover cljs.

alpox12:09:59

@dpsutton I finally made my cider work again! i actually forgot the .lein/profiles.clj entry :repl {:plugins [[cider/cider-nrepl "0.15.1"]]} >.<

dpsutton12:09:04

haha. yeah. that can be a real pain. good debuggin!

alpox12:09:21

Thanks ^_^ yea stupid little config entry messed with me 😄

hkjels12:09:47

cider-format-buffer moves point. That’s a bug right?

dpsutton12:09:36

no, not looking at how it works

dpsutton12:09:17

you can use crux-cleanup-buffer-or-region to get the cleanup without moving point, but the cider apparatus does something more extreme:

(unless (equal original formatted)
      (erase-buffer)
      (insert formatted))

dpsutton12:09:39

well, maybe it is a bug but it sounds difficult with little benefit. but no doubt there would be interest in a patch

bozhidar15:09:37

> Thanks ^_^ yea stupid little config entry messed with me 😄

bozhidar15:09:01

@alpox In recent version of CIDER updating the config is not longer needed so you can simply remove it.

alpox16:09:03

@bozhidar good to know. I assume that spacemacs still ships an old version then because it doesnt work for me without it