This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-17
Channels
- # announcements (1)
- # beginners (44)
- # calva (20)
- # cljs-dev (22)
- # cljsrn (5)
- # clojars (24)
- # clojure (33)
- # clojure-europe (36)
- # clojure-filipino (1)
- # clojure-indonesia (1)
- # clojure-my (1)
- # clojure-nl (2)
- # clojure-sg (2)
- # clojure-uk (8)
- # clojurescript (73)
- # code-reviews (21)
- # conjure (13)
- # cursive (46)
- # datahike (16)
- # datomic (5)
- # depstar (1)
- # graalvm (7)
- # honeysql (22)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (3)
- # luminus (2)
- # malli (2)
- # nrepl (17)
- # off-topic (46)
- # pathom (14)
- # re-frame (7)
- # remote-jobs (1)
- # sci (8)
- # shadow-cljs (33)
- # sql (14)
- # vim (48)
- # xtdb (1)
Hi, I'm using shadow-cljs version 2.12.7 with config like this :node
{:target :node-library
:compiler-options {:infer-externs :auto}
:devtools {:repl-timeout 100000}
:repl-timeout
only controls how long shadow will wait for an result of a repl evaluation
I'm totally in the dark here. I don't have a clue what you are talking about. Please be more specific.
ok, first mistake. node-repl
is standalone, it is NOT controlled by any build config
but some statements cause a timeout, which then stops the repl from working any more
so how can I create a node repl using shadow-cljs which I can configure the timeouts for?
first explain why configuring a timeout is necessary. 30sec default is plenty and should NEVER be encountered in a node repl. Unless you compile a millions lines of CLJS via the require or so
I don't know why it's necessary, sorry. I just know that it's timing out. I can try to work that out
just by binary searching the imports to work out which one is heaviest? but it's slightly tough to debug because it only happens 50% of the time
I'm asking WHAT you are doing? Why do you think increasing the timeout is necessary?
I'm hacking on datahike, a clojurescript library, and encountering timeout errors. Because it's intermittent and something to do with compiling, working out the precise origin seemed like it would be tough so my first instinct was just to increase the timeout
a REPL for your actual build you get via shadow-cljs cljs-repl node
(assuming :node
is the build id)
that will then also respect your timeout settings, just need to manage the node process yourself then
Hi, @thheller. Once, you told me of a parameter that allows me to debug the compilation process of Shadow-CLJS. What's the parameter? The reason is that my hot-reload is taking a looong time, and I want to be able to se what's happening.
hot-reload or compilation? you can get more details for the compilation parts via shadow-cljs watch app --verbose
All right, I'll try --verbose
and see if it helps
Also, is there a way to not remove deftest
and friends in compilation process? I know I can use another target, but I'm doing some weird things and I want to control how to run specific tests so I'm using a target :node-script
😄
(Nevermind the last question: I can use :load-tests true
on :compiler-options)