-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
externs fail on seeing defprotocol #16
Comments
Following above idea, I've added this binding to externs.clj:90 ana/*unchecked-if* false This is a partial fix in that there is no longer an exception. However the dodgy |
So, I ended up disabling @tiensonqin's extern inference code in favor of Clojurescript's new https://clojurescript.org/guides/externs :prod {:cljsbuild {:builds [{:id "main"
:source-paths ["src" "env/prod" "../kidlink-server/src/cljc/"]
:compiler {:output-to "main.js"
:source-map "main.js.map"
:main "env.main"
:output-dir "target"
:infer-externs true
:parallel-build true
:optimize-constants true
:optimizations :advanced
:closure-defines {"goog.DEBUG" false}}}]}}}) |
I'm closing this issue in favor of clojurescript compilers |
On
externs.js
generation it's throwingGoogle this error and you find reference to an old clojurescript REPL problem where the problem was triggered by analysing a
defprotocol
form. I suspect the cause is similar here sincesrc/graphics/scales.cljs
is the new file in my repo that triggered this problem, and the only one in my app that uses defprotocol, and the stack trace contains this snippet: (edited)I'll keep ferreting around to try and find a minimal case, but thought I'd let you know about the issue. The generated externs.js file ends up with a bad statement on line 1:
Here is the fix David Nolen applied to the repl.
https://groups.google.com/forum/#!topic/clojurescript/__Qf6L40cwU.
Maybe we need to do something similar in externs.clj?...
See clojure/clojurescript@b2e3a46.
The text was updated successfully, but these errors were encountered: