This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-23
Channels
- # ai (10)
- # beginners (15)
- # biff (8)
- # calva (11)
- # clerk (11)
- # clojure-conj (6)
- # clojure-europe (28)
- # clojure-norway (2)
- # clojure-spec (55)
- # clr (9)
- # emacs (10)
- # etaoin (8)
- # helix (1)
- # hyperfiddle (3)
- # jobs (3)
- # off-topic (52)
- # re-frame (3)
- # reagent (7)
- # remote-jobs (3)
- # shadow-cljs (18)
- # specter (4)
- # xtdb (4)
does anyone know how to silence these closure warnings?
--------------------------------------------------------------------------------
------ WARNING #38 - ----------------------------------------------------------
Resource: node_modules/shadergraph/src/visualize/markup.js:143:56
String continuations are not recommended. See
--------------------------------------------------------------------------------
I couldn’t find this one in the clojurescript docsI found these ones, just not this particular warning. interesting
Is there some documentation on known gotchas around the repl? shadow-cljs is incredible, but every now and then I’ll run into a hiccup that causes the repl to break. This also happens often when I refresh the page. If I run into a “Timeout while waiting for result” message, is there a way to recover from this that doesn’t involve restarting the repl?
timeouts you get when the evaluation runs for too long. it defaults to 30sec, but can be increased via :devtools {:repl-timeout 60000}
in the build config. timeout value is msec.
don't know what you mean by REPL breaking, you sure its the REPL and not your editor?
Perhaps I meant “lose all evaluation context” when I said breaking. I primarily use Calva, and I have had times where after refresh I can re-evaluate a namespace without issue. Yes the previous state is gone, but I can continue using the REPL after re-evaluating. Other times the refresh leads to a timeout error, but I will try increasing the timeout setting to see if that helps.
I have also encountered build errors caused by cljs.user
changes, but I will have to keep my eyes out for the specific error message.
Thank you for the response 🙇
@U05224H0W This is the message I get regarding cljs.user
[2023-04-28 15:55:59.829 - WARNING] :shadow.cljs.devtools.server.util/handle-ex - {:msg {:op :cljs-load-sources, :sources [[:shadow.build.npm/resource "node_modules/react/cjs/react.production.min.js"] [:shadow.build.classpath/resource "cljs/user.cljs"]], :call-id 1, :from 12}}
ExceptionInfo no output for id: [:shadow.build.classpath/resource "cljs/user.cljs"] {:resource-id [:shadow.build.classpath/resource "cljs/user.cljs"]}
shadow.build.data/get-output! (data.clj:202)
shadow.build.data/get-output! (data.clj:198)
shadow.cljs.devtools.server.worker.impl/eval17578/fn--17581/fn--17584 (impl.clj:756)
clojure.core/map/fn--5935 (core.clj:2770)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:51)
clojure.lang.RT.seq (RT.java:535)
clojure.core/seq--5467 (core.clj:139)
clojure.core.protocols/seq-reduce (protocols.clj:24)
clojure.core.protocols/fn--8236 (protocols.clj:75)
clojure.core.protocols/fn--8236 (protocols.clj:75)
clojure.core.protocols/fn--8178/G--8173--8191 (protocols.clj:13)
which version do you use? I fixed a related error a while ago, so this shouldn't show up anymore?
@U05224H0W I am up to date on my shadow version, and I am seeing the following error (often after refreshing the browser)
[2023-05-09 14:48:16.223 - WARNING] :shadow.cljs.devtools.server.util/handle-ex - {:msg {:op :cljs-load-sources, :sources [[:shadow.build.npm/resource "node_modules/react/cjs/react.production.min.js"] [:shadow.build.classpath/resource "cljs/user.cljs"]], :call-id 5, :from 51}}
ExceptionInfo no output for id: [:shadow.build.classpath/resource "cljs/user.cljs"] {:resource-id [:shadow.build.classpath/resource "cljs/user.cljs"]}
This generally appears after I refresh the browser and try to evaluate my app ns again
are you certain you are on the latest version? it is not uncommon that people think they are by updating package.json
but then either not actually installing it, or by using a different version in project.clj/deps.edn?