Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/let did not conform to spec:
In: [0] val: [{:keys [externs modules compiler compiler-options]} closure (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options)] fails spec: :shadow.cljs.devtools.cljs-specs/bindings at: [:args :bindings] predicate: (even? (count %))
:clojure.spec/args ([{:keys [externs modules compiler compiler-options]} closure (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options)] (update state :closure assoc :result result))
#:clojure.spec{:problems [{:path [:args :bindings], :pred (even? (count %)), :val [{:keys [externs modules compiler compiler-options]} closure (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options)], :via [:shadow.cljs.devtools.cljs-specs/bindings :shadow.cljs.devtools.cljs-specs/bindings], :in [0]}], :args ([{:keys [externs modules compiler compiler-options]} closure (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options)] (update state :closure assoc :result result))}, compiling:(/Users/zilence/code/shadow-build/src/main/shadow/cljs/closure.clj:369:3)
(defn closure-compile [{:keys [closure] :as state}]
(let [{:keys [externs modules compiler compiler-options]}
closure
#_ result ;; remove/comment this
(.compileModules
compiler
externs
(into [] (map :js-module) modules)
compiler-options)]
(update state :closure assoc :result result)))
CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/let did not conform to spec:
In: [0 2] val: (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options) fails spec: :clojure.core.specs/local-name at: [:args :bindings :binding :sym] predicate: simple-symbol?
In: [0 2] val: (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options) fails spec: :clojure.core.specs/seq-binding-form at: [:args :bindings :binding :seq] predicate: vector?
In: [0 2 0] val: .compileModules fails spec: :clojure.core.specs/map-binding at: [:args :bindings :binding :map :mb] predicate: vector?
In: [0 2 0] val: .compileModules fails spec: :clojure.core.specs/ns-keys at: [:args :bindings :binding :map :nsk] predicate: vector?
In: [0 2 0] val: .compileModules fails spec: :clojure.core.specs/map-bindings at: [:args :bindings :binding :map :msb] predicate: vector?
In: [0 2 1] val: compiler fails spec: :clojure.core.specs/map-binding at: [:args :bindings :binding :map :mb] predicate: vector?
In: [0 2 1] val: compiler fails spec: :clojure.core.specs/ns-keys at: [:args :bindings :binding :map :nsk] predicate: vector?
In: [0 2 1] val: compiler fails spec: :clojure.core.specs/map-bindings at: [:args :bindings :binding :map :msb] predicate: vector?
In: [0 2 2] val: externs fails spec: :clojure.core.specs/map-binding at: [:args :bindings :binding :map :mb] predicate: vector?
In: [0 2 2] val: externs fails spec: :clojure.core.specs/ns-keys at: [:args :bindings :binding :map :nsk] predicate: vector?
In: [0 2 2] val: externs fails spec: :clojure.core.specs/map-bindings at: [:args :bindings :binding :map :msb] predicate: vector?
In: [0 2 3] val: (into [] (map :js-module) modules) fails spec: :clojure.core.specs/map-binding at: [:args :bindings :binding :map :mb] predicate: vector?
In: [0 2 3] val: (into [] (map :js-module) modules) fails spec: :clojure.core.specs/ns-keys at: [:args :bindings :binding :map :nsk] predicate: vector?
In: [0 2 3] val: (into [] (map :js-module) modules) fails spec: :clojure.core.specs/map-bindings at: [:args :bindings :binding :map :msb] predicate: vector?
In: [0 2 4] val: compiler-options fails spec: :clojure.core.specs/map-binding at: [:args :bindings :binding :map :mb] predicate: vector?
In: [0 2 4] val: compiler-options fails spec: :clojure.core.specs/ns-keys at: [:args :bindings :binding :map :nsk] predicate: vector?
In: [0 2 4] val: compiler-options fails spec: :clojure.core.specs/map-bindings at: [:args :bindings :binding :map :msb] predicate: vector?
In: [0 2] val: (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options) fails spec: :clojure.core.specs/map-special-binding at: [:args :bindings :binding :map] predicate: map?
:clojure.spec/args ([{:keys [externs modules compiler compiler-options]} closure (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options)] (update state :closure assoc :result result))
#:clojure.spec{:problems ({:path [:args :bindings :binding :sym], :pred simple-symbol?, :val (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options), :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/local-name], :in [0 2]} {:path [:args :bindings :binding :seq], :pred vector?, :val (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options), :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/seq-binding-form], :in [0 2]} {:path [:args :bindings :binding :map :mb], :pred vector?, :val .compileModules, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/map-binding], :in [0 2 0]} {:path [:args :bindings :binding :map :nsk], :pred vector?, :val .compileModules, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/ns-keys], :in [0 2 0]} {:path [:args :bindings :binding :map :msb], :pred vector?, :val .compileModules, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings], :in [0 2 0]} {:path [:args :bindings :binding :map :mb], :pred vector?, :val compiler, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/map-binding], :in [0 2 1]} {:path [:args :bindings :binding :map :nsk], :pred vector?, :val compiler, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/ns-keys], :in [0 2 1]} {:path [:args :bindings :binding :map :msb], :pred vector?, :val compiler, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings], :in [0 2 1]} {:path [:args :bindings :binding :map :mb], :pred vector?, :val externs, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/map-binding], :in [0 2 2]} {:path [:args :bindings :binding :map :nsk], :pred vector?, :val externs, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/ns-keys], :in [0 2 2]} {:path [:args :bindings :binding :map :msb], :pred vector?, :val externs, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings], :in [0 2 2]} {:path [:args :bindings :binding :map :mb], :pred vector?, :val (into [] (map :js-module) modules), :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/map-binding], :in [0 2 3]} {:path [:args :bindings :binding :map :nsk], :pred vector?, :val (into [] (map :js-module) modules), :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/ns-keys], :in [0 2 3]} {:path [:args :bindings :binding :map :msb], :pred vector?, :val (into [] (map :js-module) modules), :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings], :in [0 2 3]} {:path [:args :bindings :binding :map :mb], :pred vector?, :val compiler-options, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/map-binding], :in [0 2 4]} {:path [:args :bindings :binding :map :nsk], :pred vector?, :val compiler-options, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings :clojure.core.specs/ns-keys], :in [0 2 4]} {:path [:args :bindings :binding :map :msb], :pred vector?, :val compiler-options, :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-bindings], :in [0 2 4]} {:path [:args :bindings :binding :map], :pred map?, :val (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options), :via [:clojure.core.specs/bindings :clojure.core.specs/bindings :clojure.core.specs/binding :clojure.core.specs/binding-form :clojure.core.specs/binding-form :clojure.core.specs/map-binding-form :clojure.core.specs/map-special-binding], :in [0 2]}), :args ([{:keys [externs modules compiler compiler-options]} closure (.compileModules compiler externs (into [] (map :js-module) modules) compiler-options)] (update state :closure assoc :result result))}, compiling:(/Users/zilence/code/shadow-build/src/main/shadow/cljs/closure.clj:369:3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment