This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-10
Channels
- # announcements (9)
- # aws (11)
- # babashka (37)
- # beginners (97)
- # biff (2)
- # calva (73)
- # clj-kondo (17)
- # cljfx (3)
- # clojure (89)
- # clojure-europe (45)
- # clojure-norway (12)
- # clojurescript (17)
- # datahike (8)
- # datomic (13)
- # deps-new (4)
- # figwheel-main (1)
- # graalvm (2)
- # hyperfiddle (8)
- # introduce-yourself (6)
- # leiningen (38)
- # lsp (57)
- # malli (13)
- # nbb (46)
- # off-topic (40)
- # pathom (3)
- # polylith (8)
- # rum (4)
- # shadow-cljs (14)
- # spacemacs (1)
- # sql (11)
- # xtdb (10)
Bit of an odd question: can I silence compiler warnings from a dependency (not from my own source code)? I upgraded from an older version of shadow and now get this warning:
------ WARNING #1 - :redef -----------------------------------------------------
Resource: garden/color.cljc:390:1
--------------------------------------------------------------------------------
387 | (let [d (util/clip 1 179 distance-from-complement)]
388 | (hue-rotations color 0 d (- d)))))
389 |
390 | (defn- abs
-------^------------------------------------------------------------------------
abs already refers to: cljs.core/abs being replaced by: garden.color/abs
--------------------------------------------------------------------------------
391 | [x]
392 | (if (neg? x) (- x) x))
393 |
394 | (defn tetrad
--------------------------------------------------------------------------------
I will probably submit a PR to the Garden project on GH, but it would be kind of nice to not have that warning in the meantime. It's not affecting me anyway.And to clarify—I don't want to disable all warnings, just the one
Also, on a little further investigation, I'm not sure why this warning is even happening anyway. There isa (:refer-clojure :exclude [abs complement])
in the NS form of the relevant garden/color.cljc
file. Not sure if that has anything to do with shadow-cljs though, or is an issue with the CLJS compiler
I'm guessing you just have an older garden version? or maybe that change is not in a release yet?
My garden version is the latest at 1.3.10
, and it looks like that version release was made after the commit you linked above, so it'd be odd for it not to be included in the release
but just judging from the commit history the last release is much older than that commit
Ah, I had misread the year there 🙂
I can nudge the repo owner to create a new release. Thanks for the help