This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-29
Channels
- # babashka (168)
- # beginners (60)
- # calva (21)
- # cider (44)
- # clj-kondo (27)
- # cljs-dev (4)
- # cljsrn (2)
- # clojure (157)
- # clojure-australia (27)
- # clojure-bay-area (7)
- # clojure-czech (1)
- # clojure-europe (94)
- # clojure-nl (2)
- # clojure-spec (3)
- # clojure-sweden (11)
- # clojure-uk (35)
- # clojurescript (19)
- # cursive (12)
- # events (1)
- # figwheel-main (1)
- # fulcro (28)
- # honeysql (7)
- # jackdaw (9)
- # kaocha (4)
- # keechma (1)
- # malli (7)
- # midje (1)
- # missionary (1)
- # music (1)
- # off-topic (45)
- # pathom (18)
- # polylith (6)
- # practicalli (4)
- # random (1)
- # reagent (3)
- # reitit (3)
- # shadow-cljs (74)
- # sql (9)
I am trying to understand how I could use nrepl in a node-script target. Any pointers to help/tutorial?
depends on what you mean by "nrepl in a node-script". do you mean starting your own nrepl server or using the shadow-cljs nrepl server to talk to the node-script?
using the shadow-cljs server
atleast that's what I thought to do. I'm still quite new to clojure/cljs
i want to attach it to cursive
hm it seems i have another problem in cursive too
maybe i need to figure that out first
i dont understand where i would chose the proper module
for some reason, when i do that i cant chose project
is there a step i missed_
i created it with npx i believe
and just opened it in cursive
thanks!
okay, now I finally found time to test this @thheller and it works. however when i try to switch workspace in i get "No avvailable JS runtime"
so I guess i'm missing something?
ok so ill do that manually_
i would like to have the same concept that we have in the browser where i can reload code but keeping state
is that possible?
i have setup node-script and it's building
but it doesnt run the code
what this process does is completely under your control depending on what you do in main
?
a service that is monitoring crypto exchanges
basically a script
long running
yep that works
and hot reload?
just rebuilding?
while keeping the process alive
same way as the browser targets https://shadow-cljs.github.io/docs/UsersGuide.html#_hot_code_reload
https://code.thheller.com/blog/shadow-cljs/2019/08/25/hot-reload-in-clojurescript.html
no difference, same setup (just see the main
fn as the init
fn described in the post above)
okay thanks!
ill read through it
I keep getting Stale Output! on this Chrome Extension I am working on. Even when I clear all the js
, out
, manifest.json
, .shadow-cljs
, node_modules
etc
I'm wondering if there is some weird Chrome caching bug happening here.
Hard restart of the computer seems to fix it when this happens.
Has happened to me several times over the course of a few days now.
hmm I am pretty sure I do this. Like hitting refresh everywhere.
I even removed the unpacked extension and loaded it again. Maybe I'm missing something. Will go slower next time and write down all the steps I take to see if I do something silly.