You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check this demo repo, the simple result of doing lein new figwheel asdf and adding the warning-handlers key.
When you run
lein cljsbuild once
in the repo you get the following exception
clojure.lang.ExceptionInfo: clojure.lang.PersistentList cannot be cast to clojure.lang.IFn at line 3 src/asdf/core.cljs {:file "src/asdf/core.cljs", :line 3, :column 1, :tag :cljs/analysis-error}
It looks as though the (fn ...) form is interpreted literally, as a list, rather than evaluated to a fn. But as I understand the docs this is how to use the feature.
A similar exception is caused when using a symbol:
Wrong number of args (3) passed to: Symbol
Not sure if this is cljsbuild issue or a clojurescript compiler issue.
The text was updated successfully, but these errors were encountered:
@pesterhazy, I made the very same mistake you did.
The :warning-handlers does not go under :compiler, it is specified at the same level as :compiler.
The README clearly shows this, but somehow I messed it up too.
The
warning-handlers
key doesn't seem to work as explained in the docs.Check this demo repo, the simple result of doing
lein new figwheel asdf
and adding the warning-handlers key.When you run
in the repo you get the following exception
It looks as though the
(fn ...)
form is interpreted literally, as a list, rather than evaluated to a fn. But as I understand the docs this is how to use the feature.A similar exception is caused when using a symbol:
Not sure if this is cljsbuild issue or a clojurescript compiler issue.
The text was updated successfully, but these errors were encountered: