This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-18
Channels
- # announcements (4)
- # aws (24)
- # babashka (118)
- # babashka-sci-dev (18)
- # beginners (56)
- # calva (2)
- # clojure (54)
- # clojure-dev (8)
- # clojure-europe (25)
- # clojure-gamedev (5)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (2)
- # conjure (1)
- # core-async (1)
- # data-science (3)
- # datomic (5)
- # emacs (8)
- # fulcro (4)
- # hyperfiddle (12)
- # interop (1)
- # jackdaw (4)
- # lsp (5)
- # mid-cities-meetup (5)
- # nbb (32)
- # off-topic (21)
- # reitit (5)
- # shadow-cljs (12)
- # sql (8)
- # vim (18)
- # xtdb (9)
I’ve got a question: is it normal that namespace reloading on changes stop working if you’ve got a Warning. Whenever I save a file the code automatically compiles and the browser starts running the new code immediately. But if I’ve got a warning then only the compile happens, the browser still runs the old code. The warning I don’t really know how to get rid of:
59 | (if (satisfies? obj IWithMeta)
-----------------------------^--------------------------------------------------
Cannot infer target type in expression (. IWithMeta -org$clojars$roklenarcic$indexed-db$store$obj$)
wrong argument order. should be (satisfies? IWithMeta obj)
, with the other order this will always end up as false
, so probably not what you intended 😉
thanks
but to answer your actual question. yes, warnings stop the reload because they should be fixed. you may however set :devtools {:ignore-warnings true}
if you'd still rather want the reload. this can of course result it actual errors during load so it is not recommended.
Ok, thank you for the explanation. I don’t intend to turn the mechanism off, I was just surprised by it
Perhaps the warning blurb could contain some text to explain that namespace wasn’t reloaded
Hello, I have a project on typescript
that is used as node_module in shadow-cljs
project. Is there a way that I can make shadow-clj
pick up the changes that I do on the typescript
project after every time I compile the typescript
project? Currently it seems like I have to restart the repl every time.
you can touch node_modules/your-package/package.json
to invalidate the cache shadow-cljs keeps for node_modules
ah got it, thanks
Actually it doesn’t seem to be working, I am also trying to touch the built files, with no luck
@diego.vid.eco I have a similar setup. in my case, webpack converts the typescript into a module that can be used by the shadow project. when I make a change in typescript, the javascript artifact produced by webpack is updated and shadow automatically sees that it has changed because the artifact is in its source path(s). is that true for yours? i.e. is the javascript artifact from the typescript project being regenerated into a location that shadow knows about?
not at the moment, but it could