This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-20
Channels
- # announcements (7)
- # babashka (16)
- # beginners (58)
- # boot (12)
- # calva (3)
- # cider (11)
- # clj-kondo (9)
- # cljs-dev (8)
- # clojure (82)
- # clojure-europe (9)
- # clojure-italy (11)
- # clojure-losangeles (1)
- # clojure-nl (8)
- # clojure-uk (8)
- # clojurescript (5)
- # css (2)
- # cursive (5)
- # datomic (20)
- # docker (2)
- # emacs (4)
- # figwheel-main (16)
- # fulcro (53)
- # graalvm (17)
- # jackdaw (2)
- # jobs (4)
- # kaocha (6)
- # lambdaisland (2)
- # luminus (2)
- # meander (1)
- # off-topic (146)
- # re-frame (4)
- # releases (1)
- # rum (12)
- # sci (71)
- # shadow-cljs (26)
- # test-check (22)
- # vim (1)
- # xtdb (9)
hey everyone i just starting using shadow-cljs and ive got into this state where it keeps recompiling without any changes happening
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.22s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.20s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.17s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.21s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.22s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.22s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.20s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.24s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.28s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.26s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.19s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.20s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.19s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.26s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.27s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.18s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.21s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.18s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.17s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.16s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.20s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.26s)
[:app] Compiling ...
[:app] Build completed. (266 files, 2 compiled, 0 warnings, 0.23s)
[:app] Compiling ...
maybe you are compiling into the watched folders
what does your shadow-cljs.edn
look like?
@tjb yes this happens if you have the :output-dir
on the classpath. you can try 2.10.16
which should fix this.
@tjb were you able to fix this bu upgrading shadow-cljs to 2.10.16 in project.clj? Looks like it fixed it for me. Let me guess, do you use Linux? Debian perhaps? AFAIK, this infinite build completed/compiling issue could not be reproduced on OSX
I need a bit of clarification on the docs here https://shadow-cljs.github.io/docs/UsersGuide.html#target-browser-test Does the part "gathering up namespaces that contain tests" include files that are in my app directory, or do I have to create these namespaces as new directories next to my app directory?
I am getting the feeling that I am trying too many things at once again and that's why I am not getting anything : D
@ashnur I don't know what you mean by "app directory". shadow-cljs is only concerned with the classpath. https://shadow-cljs.github.io/docs/UsersGuide.html#_important_concepts
you can put tests wherever you want. in the same directory as your regular source files is fine.
hello! are there any other places shadow-cljs pulls dependencies from, apart from shadow-cljs.edn
? can't find it in the docs
shadow-cljs --cli-info
says that I have [com.taoensso/sente "1.11.0"]
as a direct dependency, but I'm not declaring it as such
ok, I answered my own question by copying the deps to an empty Leiningen project and running lein deps :tree
but I think it would be good for shadow-cljs to be able to answer the question "why does my output include dependency X?"
npx shadow-cljs run shadow.cljs.build-report your-build shadow-report.html
might be what you are looking for. @dj942
ooh, that's handy to know! although, strangely enough, the output of that one doesn't seem to mention that dependency at all (presumably because it's only pulled into the output file because I have it in [:devtools :preloads]
)