This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-06
Channels
- # announcements (3)
- # beginners (83)
- # calva (11)
- # cider (24)
- # cljdoc (2)
- # cljs-dev (1)
- # clojure (216)
- # clojure-berlin (1)
- # clojure-dev (18)
- # clojure-europe (8)
- # clojure-italy (5)
- # clojure-losangeles (2)
- # clojure-nl (4)
- # clojure-spec (34)
- # clojure-uk (75)
- # clojuredesign-podcast (12)
- # clojurescript (33)
- # clojutre (13)
- # community-development (1)
- # core-async (38)
- # cursive (19)
- # datomic (28)
- # duct (3)
- # emacs (1)
- # events (5)
- # figwheel-main (3)
- # fulcro (93)
- # kaocha (20)
- # lambdaisland (2)
- # off-topic (40)
- # pathom (17)
- # pedestal (8)
- # quil (1)
- # re-frame (14)
- # reitit (19)
- # shadow-cljs (34)
- # sql (8)
- # tools-deps (6)
- # vim (1)
- # xtdb (8)
- # yada (18)
is it possible to connect a repl to a :node-test
watch ? i'm guessing not, but it would be nice
node-test disables REPL and hot-code loading so it doesn't interfere with actually running tests
what i actually wanted was hot-code loading in the node-repl
i want a nice workflow for writing cljs tests - ideally combining repl exploration alongside clojurescript.test execution
that is probably all possible already. if you describe what a want a bit more I can tell you how to set it up
sure - i've got a bunch of .cljc/cljs tests which i'm running with a shadow-cljs watch <node-test-target>
- i'd like to be able to do repl exploration with hot-code-loading on the same code the tests are exercising
i can do shadow-cljs node-repl
for exploration, but there's no reloading afaics
the issue with :node-test
is that it is supposed to exit the process once it has run all tests
yep, i figured that was why i couldn't run a repl against that target
i'm not attached to doing it any particular way though... i just want to be able to combine repl exploration with running tests
it is technically possible to enable the hot-reload for node-repl
but it is not currently accessible in a nice way
but can i get hot-reload in the node-repl
, so i can iterate ?
oh, can i (require ... :reload)
in the repl ?
i'm using emacs, but i haven't been using CIDER for cljs stuff, 'cos i'm already using it for clj stuff, and running multiple CIDER sessions concurrently is painful
yep, but i'm just using a terminal for cljs repl atm
np, i'll play around with CIDER and see what i can get to work.. thanks @thheller
got it all working with CIDER and the node-repl @thheller - sadly CIDER doesn't integrate nicely with cljs.test
(in the way it does with clojure.test
) but the repl / reload workflow is great
so i ended up starting a shadow server with : shadow-cljs -d nrepl:0.6.0 -d cider/piggieback:0.4.0 -d refactor-nrepl:2.4.0 -d cider/cider-nrepl:0.21.2-SNAPSHOT node-repl
then i could do M-x cider-connect-cljs
and choose a shadow
repl and node-repl
build, and it works about 100x better than any cljs repl i ever used before