This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-14
Channels
- # announcements (1)
- # beginners (85)
- # calva (23)
- # cider (3)
- # clj-kondo (33)
- # cljs-dev (12)
- # clojure (79)
- # clojure-dev (5)
- # clojure-europe (1)
- # clojure-nl (3)
- # clojure-uk (3)
- # clojurescript (5)
- # clojutre (2)
- # data-science (30)
- # datomic (3)
- # duct (7)
- # fulcro (8)
- # garden (18)
- # jackdaw (2)
- # leiningen (1)
- # off-topic (3)
- # pathom (4)
- # qa (24)
- # re-frame (13)
- # reagent (3)
- # shadow-cljs (58)
- # testing (1)
@thheller nah, I'm not running shadow-cljs watch
, since that triggers webpack which takes a lot of cpu (and eventually restart the app)
I run shadow-cljs compile
once, then I run shadow-cljs cljs-repl
in order to connect with a repl π
with only yarn start
and shadow-cljs cljs-repl
I manage to connect to a repl, and then run code on the mobile
well sorry should have been more clear. cljs-repl
starts the watch
if it is not running
I've generally just used watch
, but since I don't want the automatic recompiles atm I sadly have to turn it off
sadly I can't afford a new computer, and when the repl is actually set up it's very quick either way π so it was just restarting that was bothersome
there might still be weird things happening in that setup. it isn't really intended to be used that way π
but yeah when in doubt use the web UI at http://localhost:9630
generally the setup works okay at least π as you've said I need to compile and restart when I add new requires, but other than that it works well π
I hope to be able to shut down webpacks autocompile sometime, but I've already spent 2-3 hours in vain
I hope to make some sort of example repo when I have a "stable" setup, so this stuff will help as well
okay, so this is really awesome. using (shadow.cljs.devtools.api/watch :app {:autobuild false})
in a shadow-cljs clj-repl
, I don't have to restart any repl processes. my repl connection starts saying No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.
, but as soon as the app has finished restarting it works again π
the shadow-cljs server
process started giving me:
[2019-09-14 12:24:48.771 - WARNING] :shadow.cljs.devtools.errors/format-error
SocketException Broken pipe
sorry, I'm not sure what caused it to happen, so that's why I didn't write more. I'll come back when I can reproduce it. good to know that it shouldn't require a restart
it happened again. what I did was run (shadow.cljs.devtools.api/watch-compile! :app)
, then kill the app then start it again.
when I do that it seems like the cljs-repl still thinks it's connected (when I try to eval things, I get Timeout while waiting for REPL result.
).
I could solve this by stopping the watch (using stop-watch
) then starting it again.
you do react-native right? that has a known problem in that it doesn't disconnect websocket connections when the app is reloaded
using stop-worker
(not stop-watch
) works though, so no biggie π still don't need to restart
silly question i'm sure, but does shadow-cljs
require clojure
, or can it compile clojurescript using just node and the shadow-cljs
package?
i'm attempting to stitch together a heroku buildpack to compile a webapp using shadow-cljs without having to build a runnable uberjar. potentially just serving the compiled js via express. have you come across a project like that before?
nothing urgent, but wondering if thereβs a way to change the colours of the shadow console messages?