Fork me on GitHub
#lambdaisland
<
2017-09-01
>
vinai08:09:24

The clojure repl has started up at that time. But the cljs repl indeed hasn't initialized, e.g. it's just another clj repl. Running lein figwheel outside of emacs works fine.

vinai08:09:33

The same problem occurs if I create a project with lein new re-frame foo +cider +garden and execute cider-jack-in-clojurescript in there.

vinai08:09:57

Okay, got it. The answer was on the re-frame github readme. In the emacs init script I had

(setq cider-cljs-lein-repl
      "(do (user/go)
           (user/cljs-repl))")
That needs to be changed to the following
(setq cider-cljs-lein-repl
      "(do (require 'figwheel-sidecar.repl-api)
         (figwheel-sidecar.repl-api/start-figwheel!)
         (figwheel-sidecar.repl-api/cljs-repl))")
This however only works if the +cider option is used on the template.

vinai08:09:34

It would be cool to have a smarter version that detects what to do. But for now I'm set!

vinai08:09:05

Note to self: watch episodes 14 + 15 again

vinai15:09:46

@plexus FYI, on the github repo for ep. 20 and 25 there are two branches for the start state: ep-25-start and ep25-start. Maybe you want to git push origin -d the "wrong" one. They are quite different. Based on the diff it's not clear to me which one is younger. I'll start with ep25-start since that is what you wrote in the shownotes.