This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-22
Channels
- # aleph (6)
- # announcements (1)
- # babashka (2)
- # beginners (51)
- # calva (14)
- # cider (1)
- # clj-kondo (15)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (9)
- # clojure-czech (2)
- # clojure-spec (5)
- # clojure-uk (45)
- # clojuredesign-podcast (2)
- # clojurescript (4)
- # clojutre (3)
- # cursive (4)
- # datomic (8)
- # duct (8)
- # jackdaw (1)
- # joker (1)
- # keechma (1)
- # off-topic (127)
- # om (1)
- # reagent (1)
- # reitit (6)
- # shadow-cljs (22)
- # testing (3)
is there a reason why shadow-cljs watch <build-id> seemingly compiles every time? is it possible to get it to not compile initially but just watch for changes if there's already something appropriate compiled?
@sogaiu it must always "compile" initially. if there is a cache it is mostly just loading the cache though.
i have an electron app setup with a :node-script build (main) and a :browser build (renderer). if i restart shadow-cljs (control-c and then invoke watch again), the renderer seems to be reachable again but not main (:node-script). is there something special i need to do to re-establish a connection to the js-runtime for main?
not sure what you mean. if you really kill the shadow-cljs process ALL REPLs will be disconnected and not be able to reconnect again
i start with: yarn shadow-cljs watch main renderer
and after the builds complete, i launch the electron app from the command line.
i don't see "connected to server" in the output.
when i control-c for shadow-cljs, i see: shadow-cljs - Connection closed! in white text on a red background in the electron app
when i subsequently start the watch with: yarn shadow-cljs watch main renderer
, i see very similar output to the first time (including no "connected to server")
if i issue control-r to the electron app, the devtools console of the electron app reports: shadow-cljs Websocket connected! and i am able to reconnect to a cljs-repl for renderer via the command line and succesfully evaluate code. however, i still see the white text on red background indicating "shadow-cljs - Connection closed!" and no successful connection to a repl for main's js-runtime.
will check once again -- may be i was mistaken about the white text subsequent to the control-r issuing
sorry, my mistake -- upon reloading, the white text on red background does go away. however, it is still the case that there is no successful connection to a repl for main's js-runtime.