This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-16
Channels
- # announcements (1)
- # beginners (83)
- # boot (10)
- # cider (23)
- # cljdoc (24)
- # cljs-dev (3)
- # clojure (138)
- # clojure-finland (1)
- # clojure-italy (12)
- # clojure-losangeles (2)
- # clojure-mexico (1)
- # clojure-nl (18)
- # clojure-russia (23)
- # clojure-sg (1)
- # clojure-spec (15)
- # clojure-uk (126)
- # clojurescript (94)
- # cloverage (2)
- # core-async (1)
- # cursive (98)
- # datomic (54)
- # figwheel-main (19)
- # hyperfiddle (21)
- # jobs (1)
- # jobs-rus (4)
- # leiningen (4)
- # liberator (4)
- # off-topic (15)
- # parinfer (9)
- # re-frame (23)
- # reagent (19)
- # reitit (2)
- # ring-swagger (3)
- # rum (3)
- # shadow-cljs (244)
- # sql (4)
newbie question: are figwheel-main reload hooks supposed to run on .clj files, .cljs ones, or both?
thanks! is there any kind of hook I can use on a file to, e.g., output .css from garden source .clj files, whenever I save these?
I know the object .css files will get live reloaded if they are in a watched directory, but does figwheel-main provide any way to automate their generation?
not yet but … you can use hawk https://github.com/wkf/hawk in a script that you can pass to clojure -init script.clj -m figwheel.main -b dev -r
@bhauman thanks a bunch for figwheel-main 0.1.6. Using the scripting API to work with cursive. Just used the documentation at: https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL and adjusted the script according to the scripting api specs at http://figwheel.com
I was just looking into the same issue 2 days ago, but with figwheel.main
and deps.edn
setup + nREPL.
I kinda got it work, but I'm not sure what's the most convenient way to reduce the number of interactions needed to fire this up.
Currently I have to
1. start a clojure nREPL from a terminal with a fixed nREPL port
2. create a remote repl run config in intellij by manually specifying localhost
and the port number
3. after connecting to the clj nrepl, i have to (fig/start {:mode :serve} "dev") (fig/cljs-repl (or build-id "dev"))
, but i put this into a (start)
and (cljs-repl)
function within src/user.clj
4. (figwheel.main/reset)
and (figwheel.repl/conns)
and similar functions throw a clojure.lang.Var$Unbound cannot be cast to clojure.lang.Associative
error
the goal with having an nREPL is that 1. Cursive have a better pretty-printing support when using an nREPL client 2. Other editors can use the same setup, because the remote nREPL mode is the most supported usually
@U086D6TBN this is unbound var is a bug
@U086D6TBN you can fix this by just using (figwheel.main.api/start "dev")
btw, sometimes i see the cards in a devcards page rendered twice when i refresh the browser page. my cljs-repl focus also seems to shift away from my non-background build, when i reload the devcards page, but it's restored when i refresh the foreground build. i have the feeling that this behaviour might be related to this bug too