This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-12
Channels
- # admin-announcements (1)
- # bangalore-clj (13)
- # beginners (149)
- # boot (123)
- # cider (7)
- # clojure (167)
- # clojure-brasil (3)
- # clojure-greece (1)
- # clojure-korea (2)
- # clojure-new-zealand (2)
- # clojure-russia (70)
- # clojure-sanfrancisco (3)
- # clojure-spec (84)
- # clojure-uk (36)
- # clojurescript (300)
- # code-reviews (242)
- # community-development (34)
- # core-async (4)
- # css (1)
- # cursive (37)
- # datascript (1)
- # datomic (20)
- # defnpodcast (1)
- # dirac (15)
- # events (7)
- # garden (12)
- # hoplon (100)
- # lein-figwheel (11)
- # off-topic (2)
- # om (69)
- # om-next (3)
- # onyx (86)
- # planck (14)
- # proton (4)
- # protorepl (1)
- # quil (2)
- # re-frame (53)
- # rum (3)
- # untangled (1)
- # vim (50)
@shaun-mahood I kept it almost identical to the default project.clj generated by re-natal
@misha: Try adding :figwheel {:nrepl-port 7888}
just above :profiles
and see if that works - that's how I have mine configured, and looking at https://github.com/bhauman/lein-figwheel/wiki/Configuration-Options I think it should work (if it doesn't at least we'll find out quickly).
Configurations happens in your project.clj file and is separated into
serverside configs (:figwheel {...} on your "root" level)
and per-build, or client side, configs (:cljsbuild {:builds [{:figwheel {...}}]}).
Yep. If I understand correctly it would then apply to any per-build configs.
but Bruce mentioned something about "FW configs merge will not happen if FW is launched from (n?)REPL, something something"
Not sure about that - the global config works for me. You don't really have much of a per-client config anyway, so it may not matter either way.
Starting clojure.main REPL...
[...] clojure.main script/repl.clj -r
Figwheel: Starting server at
Choose focus build for CLJS REPL () or quit > ios
Error: ios is not a valid choice
Choose focus build for CLJS REPL () or quit > "ios"
Error: "ios" is not a valid choice
Choose focus build for CLJS REPL () or quit > ":ios"
Error: ":ios" is not a valid choice
Choose focus build for CLJS REPL () or quit > :ios
Error: :ios is not a valid choice
Choose focus build for CLJS REPL () or quit > (start-autobuild "ios")
Error: (start-autobuild "ios") is not a valid choice
Choose focus build for CLJS REPL () or quit > 1
Error: 1 is not a valid choice
send help ok, start-figwheel!
did not see [:cljsbuild :builds] inside :profiles.
"fixed" with
(let [dev-builds (->> "./project.clj" slurp read-string vec (#(subvec % 3)) (apply hash-map) :profiles :dev :cljsbuild :builds)
ids (mapv :id dev-builds)
cfg {:figwheel-options {}
:build-ids ids
:all-builds dev-builds}]
(start-figwheel! cfg)
(cljs-repl "ios"))