rrb-vector won't compile with clojurescript: clojure.lang.ArityException: Wrong number of args (1) passed to: nodes/ranges

Description

rrb-vector does not compile under recent versions of clojurescript.

See this error report in a project using rrb-vector for more details & fix:
https://github.com/brandonbloom/fipp/issues/42

Environment

[org.clojure/clojurescript "1.9.293"]

Activity

Show:

Michał MarczykFebruary 6, 2019 at 9:31 PM

Just pushed a workaround commit renaming the function involved in the apparent name clash on the ClojureScript side and cut a new release (0.0.14).

Thanks for the report and the diagnosis!

Alex MillerFebruary 6, 2019 at 4:47 PM

Can someone supply a patch? Happy to help get it applied and released if needed.

importJanuary 10, 2019 at 1:33 PM

Comment made by: codeasone

This has hit me today, I'm using Clojure 1.10 and ClojureScript 1.10.439 along with figwheel-main 0.2.0

Miikka KoskinenOctober 24, 2018 at 11:25 AM

Also reported in CRRBV-19.

Miikka KoskinenOctober 23, 2018 at 4:19 PM

This happens if clojure.core.rrb-vector.nodes Clojure namespace is loaded before rrb-vector is compiled as ClojureScript. I have a cljs.main reproduction here: https://github.com/miikka/cljs-rrb-vector-repro

I believe that the problem is that in nodes.clj, there's a 2-ary macro called ranges, and in nodes.cljs there's a unary function called ranges. Now if you refer nodes from clojure.core.rrb-vector.nodes in the ClojureScript code and the Clojure namespace is loaded, you'll get the macro instead of the function.

Completed

Details

Assignee

Reporter

Priority

Created December 24, 2016 at 10:20 AM
Updated February 6, 2019 at 9:32 PM
Resolved February 6, 2019 at 9:32 PM