lambdaisland

vinai 2017-09-01T08:18:24.000203Z

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.

vinai 2017-09-01T08:25:33.000056Z

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.

vinai 2017-09-01T08:36:57.000148Z

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.

vinai 2017-09-01T08:37:34.000067Z

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

vinai 2017-09-01T08:42:05.000110Z

Note to self: watch episodes 14 + 15 again

vinai 2017-09-01T15:20:46.000645Z

@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.