This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-09
Channels
- # announcements (16)
- # babashka (28)
- # beginners (27)
- # calva (39)
- # chlorine-clover (6)
- # cider (8)
- # clara (28)
- # cljs-dev (19)
- # cljsrn (22)
- # clojure (78)
- # clojure-australia (3)
- # clojure-europe (64)
- # clojure-nl (3)
- # clojure-norway (14)
- # clojure-spec (2)
- # clojure-uk (11)
- # clojurescript (11)
- # core-async (24)
- # datomic (3)
- # deps-new (5)
- # emacs (9)
- # fulcro (4)
- # gis (2)
- # graalvm (9)
- # honeysql (2)
- # hoplon (5)
- # instaparse (1)
- # introduce-yourself (5)
- # jobs (5)
- # luminus (4)
- # observability (7)
- # off-topic (6)
- # pathom (18)
- # pedestal (5)
- # polylith (4)
- # re-frame (2)
- # reagent (1)
- # reitit (1)
- # remote-jobs (7)
- # shadow-cljs (47)
- # specter (1)
- # sql (27)
- # testing (6)
- # tools-deps (4)
- # vim (3)
- # xtdb (8)
@dnolen Where is that documented? I vaguely recalled that but couldn't see it at https://clojurescript.org/reference/compiler-options
@dominicm wrote about my findings regarding this a whlie ago, not sure if it is still current, but it probably is https://nextjournal.com/kommen/clojurescript-warnings-as-errors
what's missing is support for this from build config - i.e. a namespaced symbol like in the other cases - that would a be good simple patch
@dnolen That nextjournal article above is exactly what we ran into 😄 Could that find it's way onto the docsite somewhere, either as a guide or as part of the compiler options reference?
@dominicm while that is one possible way, would prefer to fix it so a custom script is not required and doc that instead
@dnolen are you thinking that a built-in warning-handler could be provided, or that the :warnings-as-errors
should be implemented as well as documenting the warning handlers?
but we could process :warning-handlers
- if it's a sequence of symbols then resolve them
@dnolen oh for sure. The part of the nextjournal guide I was thinking should go into a cljs guide was the particular handler they wrote:
(fn [warning-type env extra]
(when (warning-type cljs.analyzer/*cljs-warnings*)
(throw
(cljs.analyzer/error
env
(cljs.analyzer/error-message warning-type extra)))))
But that could be used alongside symbol resolution!@plexus let me know what your bandwidth is for these various macroexpand to require bugs - I can tackle it in the near future if you can't get to it - mostly just checking if you are looking into it
@dominicm your convo rang a bell, I might have worked on something related eons ago in https://clojure.atlassian.net/plugins/servlet/mobile?originPath=%2Fbrowse%2FCLJS-3074#issue/CLJS-3074?