Skip to content
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

Wrong number of arguments passed to MapEntry (CLJS) #16

Open
TeresaSiegmantel opened this issue Apr 24, 2020 · 0 comments
Open

Wrong number of arguments passed to MapEntry (CLJS) #16

TeresaSiegmantel opened this issue Apr 24, 2020 · 0 comments

Comments

@TeresaSiegmantel
Copy link

Loading a namespace that requires tupelo.core results in an arity error for me.

CLJS Version is 1.10.597, the most recent, tupelo is 0.9.201.

From what I can see here, MapEntry also takes an __hash argument.

Full error message:

Loading src/cljs/test/client/keyboard_test.cljs... 
------ ERROR -------------------------------------------------------------------
 File: jar:file:/Users/di39cuw/.m2/repository/tupelo/tupelo/0.9.201/tupelo-0.9.201.jar!/tupelo/core.cljc:1014:1
--------------------------------------------------------------------------------
1011 |   ; => {:a 1}
1012 | )
1013 | 
1014 | (s/defn map-entry :- tsk/MapEntry
-------^------------------------------------------------------------------------
Error in phase :compilation
Wrong number of args (2) passed to cljs.core.MapEntry
{:warning :fn-arity, :line 1018, :column 12, :msg "Wrong number of args (2) passed to cljs.core.MapEntry"}
ExceptionInfo: Wrong number of args (2) passed to cljs.core.MapEntry
	shadow.build.compiler/warning-collector (compiler.clj:444)
	shadow.build.compiler/warning-collector (compiler.clj:416)
	clojure.core/partial/fn--5841 (core.clj:2633)
	cljs.analyzer/warning (analyzer.cljc:728)
	cljs.analyzer/warning (analyzer.cljc:726)
	clojure.core/apply (core.clj:665)
	clojure.core/apply (core.clj:660)
	cljs.analyzer/replay-accumulated-warnings/fn--1545 (analyzer.cljc:736)
	clojure.core/run!/fn--8790 (core.clj:7715)
	clojure.lang.PersistentVector.reduce (PersistentVector.java:343)
	clojure.core/reduce (core.clj:6827)
	clojure.core/run! (core.clj:7710)
	clojure.core/run! (core.clj:7710)
	cljs.analyzer/replay-accumulated-warnings (analyzer.cljc:736)
	cljs.analyzer/replay-accumulated-warnings (analyzer.cljc:735)
	cljs.analyzer/analyze-let (analyzer.cljc:2381)
	cljs.analyzer/analyze-let (analyzer.cljc:2337)
	cljs.analyzer/fn--1996 (analyzer.cljc:2395)
	cljs.analyzer/fn--1996 (analyzer.cljc:2393)
	clojure.lang.MultiFn.invoke (MultiFn.java:252)
	cljs.analyzer/analyze-seq* (analyzer.cljc:3934)
	cljs.analyzer/analyze-seq* (analyzer.cljc:3932)
	cljs.analyzer/analyze-seq*-wrap (analyzer.cljc:3939)
	cljs.analyzer/analyze-seq*-wrap (analyzer.cljc:3937)
	cljs.analyzer/analyze-seq (analyzer.cljc:3963)
	cljs.analyzer/analyze-seq (analyzer.cljc:3941)
	cljs.analyzer/analyze-form (analyzer.cljc:4150)
	cljs.analyzer/analyze-form (analyzer.cljc:4147)
	cljs.analyzer/analyze* (analyzer.cljc:4200)
	cljs.analyzer/analyze* (analyzer.cljc:4191)
	cljs.analyzer/analyze (analyzer.cljc:4220)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze-seq (analyzer.cljc:3964)
	cljs.analyzer/analyze-seq (analyzer.cljc:3941)
	cljs.analyzer/analyze-form (analyzer.cljc:4150)
	cljs.analyzer/analyze-form (analyzer.cljc:4147)
	cljs.analyzer/analyze* (analyzer.cljc:4200)
	cljs.analyzer/analyze* (analyzer.cljc:4191)
	cljs.analyzer/analyze (analyzer.cljc:4220)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze (analyzer.cljc:4213)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze (analyzer.cljc:4211)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze-let-binding-init (analyzer.cljc:2273)
	cljs.analyzer/analyze-let-binding-init (analyzer.cljc:2271)
	cljs.analyzer/analyze-let-bindings* (analyzer.cljc:2293)
	cljs.analyzer/analyze-let-bindings* (analyzer.cljc:2282)
	cljs.analyzer/analyze-let-bindings (analyzer.cljc:2327)
	cljs.analyzer/analyze-let-bindings (analyzer.cljc:2326)
	cljs.analyzer/analyze-let (analyzer.cljc:2353)
	cljs.analyzer/analyze-let (analyzer.cljc:2337)
	cljs.analyzer/fn--1994 (analyzer.cljc:2391)
	cljs.analyzer/fn--1994 (analyzer.cljc:2389)
	clojure.lang.MultiFn.invoke (MultiFn.java:252)
	cljs.analyzer/analyze-seq* (analyzer.cljc:3934)
	cljs.analyzer/analyze-seq* (analyzer.cljc:3932)
	cljs.analyzer/analyze-seq*-wrap (analyzer.cljc:3939)
	cljs.analyzer/analyze-seq*-wrap (analyzer.cljc:3937)
	cljs.analyzer/analyze-seq (analyzer.cljc:3963)
	cljs.analyzer/analyze-seq (analyzer.cljc:3941)
	cljs.analyzer/analyze-form (analyzer.cljc:4150)
	cljs.analyzer/analyze-form (analyzer.cljc:4147)
	cljs.analyzer/analyze* (analyzer.cljc:4200)
	cljs.analyzer/analyze* (analyzer.cljc:4191)
	cljs.analyzer/analyze (analyzer.cljc:4220)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze-seq (analyzer.cljc:3964)
	cljs.analyzer/analyze-seq (analyzer.cljc:3941)
	cljs.analyzer/analyze-form (analyzer.cljc:4150)
	cljs.analyzer/analyze-form (analyzer.cljc:4147)
	cljs.analyzer/analyze* (analyzer.cljc:4200)
	cljs.analyzer/analyze* (analyzer.cljc:4191)
	cljs.analyzer/analyze (analyzer.cljc:4220)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze (analyzer.cljc:4213)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/analyze (analyzer.cljc:4211)
	cljs.analyzer/analyze (analyzer.cljc:4203)
	cljs.analyzer/fn--1962 (analyzer.cljc:2262)

--------------------------------------------------------------------------------
1015 |   "Returns a clojure.lang.MapEntry constructed from the given key and val"
1016 |   [key val]
1017 |   #?(:clj  (clojure.lang.MapEntry/create key val)
1018 |      :cljs (cljs.core.MapEntry. key val)))
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant