This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-01
Channels
- # babashka (30)
- # beginners (80)
- # calva (21)
- # chlorine-clover (2)
- # cider (22)
- # clj-kondo (65)
- # cljfx (2)
- # cljs-dev (3)
- # cljsrn (3)
- # clojure (37)
- # clojure-europe (27)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-taiwan (1)
- # clojure-uk (21)
- # clojurescript (13)
- # conjure (23)
- # core-typed (1)
- # cursive (16)
- # datahike (1)
- # datomic (6)
- # docs (2)
- # emacs (5)
- # figwheel-main (1)
- # fulcro (12)
- # helix (11)
- # jobs (2)
- # jobs-discuss (2)
- # leiningen (1)
- # lsp (34)
- # luminus (1)
- # malli (19)
- # microservices (1)
- # nrepl (1)
- # off-topic (25)
- # pathom (6)
- # polylith (47)
- # practicalli (5)
- # re-frame (8)
- # reagent (1)
- # reitit (1)
- # releases (2)
- # remote-jobs (2)
- # reveal (1)
- # sci (1)
- # shadow-cljs (11)
- # sql (8)
- # tools-deps (9)
- # xtdb (16)
Anyway to disable/ignore unreachable code
warnings when releasing? Seems it is not coming from cljs.analyzer/*cljs-warnings*
as for example :warnings-as-errors true
has no effect on it 🙂
thanks, indeed it seems so.. however when I try it, I get the following when releasing:
[:front] Compiling ...
{:type :shadow.build.closure/invalid-closure-warning, :key :check-useless-code, :level :off, :shadow.build.log/level :warn}
and the warning is still printed :thinking_face:
build release config is:
:release {:compiler-options
{:warnings-as-errors true
:closure-warnings {:check-useless-code :off}}}
At least the ClojureScript docs says that :check-useless-code
should be available. Hmm..this is with :lein true
and [thheller/shadow-cljs "2.14.1"]
& [org.clojure/clojurescript "1.10.866"]
, i will check the sources tomorrow unless you don’t have any idea from the top of your head, thx :thumbsup:
the docs may be out of date. the closure compiler changes the names of those things constantly.
thank you, I found how you used (DiagnosticGroups/getRegisteredGroups)
and found from there that it is nowadays "uselessCode" -> :useless-code
👋:skin-tone-2: anyone have experience evaluating clojurescript code in the browser within a shadow-cljs project? https://yogthos.net/posts/2015-11-12-ClojureScript-Eval.html I’m following this example but it looks like (empty-state)
is missing cljs.core because when I eval (+ 1 1)
I get
WARNING: Use of undeclared Var cljs.user/+ at line 1
but when I clone the repo used in the example (which uses figwheel) it’s working, so just wondering if there is some compiler setting I might needupdate, I’m reading here https://code.thheller.com/blog/shadow-cljs/2017/10/14/bootstrap-support.html
stealing from here https://github.com/mhuebert/shadow-bootstrap-example