This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-16
Channels
- # beginners (7)
- # cider (128)
- # clara (9)
- # clojure (7)
- # clojure-norway (3)
- # clojure-spec (2)
- # clojure-uk (16)
- # clojurescript (79)
- # css (1)
- # datomic (2)
- # devcards (1)
- # editors (39)
- # euroclojure (4)
- # events (1)
- # figwheel (25)
- # fulcro (1)
- # luminus (3)
- # off-topic (15)
- # om (3)
- # onyx (10)
- # protorepl (8)
- # reagent (5)
- # reitit (1)
- # shadow-cljs (95)
- # tools-deps (6)
@chadhs this is the important line https://github.com/bhauman/lein-figwheel/blob/master/examples/separate-server/project.clj#L59
@U064J0EFR if you scroll down just a bit, i do have the block required to properly kick off figwheel with cider-jack-in-clojurescript
, and it works great for typical figwheel dev. https://github.com/chadhs/dotfiles/blob/master/editors/emacs-config.org#clojure-support
but i still can’t get your example or my project to kick off the ring-server automatically via cider despite having https://github.com/chadhs/ccclock/blob/e6affbf62adc4e0f4f0b0ddded56e33e04451c9c/project.clj#L31
what happened is the landscape changed, is used to only make sense to provide these hooks to lein
because if you were starting figwheel from a script why not just call your server init function as well
but now with the way that CIDER works with clojurescript it would be a good thing to support this from figwheel/start as well
I would suggest form now just starting your server from the script that launches your figwheel
In fact I really think the best pattern is to have a function in user called (defn figwheel
and set your cider cljs-repl to that, and then for each project you can do arbitrary initialization
@U064J0EFR finally getting back to this. i’m surprised these aren’t more common questions, but maybe most people running CIDER and figwheel just figure this bit out?
hoping to get something like this to work
;;cljs
;; (setq cider-cljs-lein-repl
;; "(do (require 'figwheel-sidecar.repl-api)
;; (figwheel-sidecar.repl-api/start-figwheel!)
;; (figwheel-sidecar.repl-api/cljs-repl))")
(setq cider-cljs-lein-repl
"(user/cider-figwheel)")
and in dev/user.clj
(defn cider-figwheel
"launch custom figwheel repl setup for cider"
[]
(do (start-server)
(fig-start)
(cljs-repl)))
If curious I’m tinkering here https://github.com/chadhs/ccclock/pull/13/files