Fork me on GitHub
#cider
<
2017-06-28
>
gmercer10:06:56

I guess I used a template that always gave me a running figwheel .. can anyone help ?

dasibre10:06:45

thanks for the assistance

gmercer10:06:43

I guess I start with

lein new chestnut my-app +rum

dasibre10:06:37

hmmm, I guess I can do that too...

plexus10:06:36

@dasibre try this: M-x customize-variable cider-cljs-lein-repl, then from the options choose Figwheel Sidecar

plexus10:06:21

then start your REPL with M-x cider-jack-in-clojurescript (`C-c M-S-j`)

plexus10:06:33

you'll have to make sure figwheel-sidecar and piggieback are in your dev dependencies and that your clojurescript/figwheel configuration is working (in other words make sure lein figwheel works first), but that's basically it

dasibre10:06:56

alrighty, thanks @plexus

gmercer10:06:11

@dasibre

emacs src/cljs/my_app/core.cljs

gmercer10:06:43

and

M-x cider-jack-in-clojurescript

gmercer10:06:50

works out of the box

gmercer10:06:51

at least using chestnut would help you check @plexus info in your project.clj vs and OOTB working version

gmercer10:06:18

a bit of magic with chestnut lives in my-app/.dir-locals.el - as specified in the doco you referred to https://cider.readthedocs.io/en/latest/up_and_running/#using-the-figwheel-repl-leiningen-only

gmercer10:06:33

well similar

gmercer10:06:03

((nil . ((cider-refresh-before-fn . "reloaded.repl/suspend")
         (cider-refresh-after-fn  . "reloaded.repl/resume")
         (cider-cljs-lein-repl    . "(do (user/run) (user/browser-repl))"))))

dasibre10:06:55

yea I think I will go the chestnut route, and take a look at that setup see if I can copy to my app...thanks for the help

gmercer10:06:58

@dasibre please post a "got it working", when it does 🙂

dasibre11:06:59

got it working--- with the chestnut template...

dasibre11:06:40

going to try and port it over to my app

gmercer11:06:21

Excellent, at least it shows nothing odd with your cider/emacs