@haywood as Alex said. check the tools.reader version, not the cljs version
Not sure what :use-top means, but I assume it should all delegate to the 1.3.4 version below. How else can I debug? You wrote in a previous chat to start a clj
repl and run “check `( "clojure/tools/reader__init.class")` to figure out the path of what is being used, but that doesn’t work for me, you did say “require it first” but I think that expression is missing a function in the archive?
clj -A:dev:test -Stree | grep tools.reader
X org.clojure/tools.reader 1.0.0-beta1 :use-top
X org.clojure/tools.reader 1.0.0-beta3 :use-top
X org.clojure/tools.reader 1.3.2 :use-top
X org.clojure/tools.reader 1.3.3 :use-top
X org.clojure/tools.reader 1.3.2 :use-top
X org.clojure/tools.reader 1.3.2 :use-top
X org.clojure/tools.reader 0.7.2 :use-top
X org.clojure/tools.reader 1.1.1 :excluded
X org.clojure/tools.reader 1.1.1 :excluded
X org.clojure/tools.reader 1.3.2 :excluded
X org.clojure/tools.reader 1.3.2 :excluded
org.clojure/tools.reader 1.3.4
X org.clojure/tools.reader 1.0.5 :use-top
yes, run shadow-cljs clj-repl
then (<http://clojure.java.io/resource|clojure.java.io/resource> "clojure/tools/reader__init.class")
sometimes there are some bad AOT compiled versions on the classpath
I think that helped me solve the problem, yea it was using a version from a nested dependency that I was able to exclude from the package I depend on
that’s a great trick to figure it out 🙏:skin-tone-2: teach a man to fish etc etc. thank you
I forget, does clojurescript have an "explode" operator? Like I can use & to collect arguments but how do I uncollect them?
apply
?
This is in the context of reagent in this particular case, it's warning me I should add keys to a list that is very much static, just because I passed children with & to a component.
into
then
(into [:div] children)
or (into [:<>] children)
if you don't want the extra div
Hmmmm alllmost what I want. Basically I want
(defn foo [& args]
(into [:div [:p "hi"]] args [:p "footer"]))
Gets a bit ugly if you first conj footer into args but I guess it'd work..
(defn foo [& args]
(-> [:div [:p "hi"]]
(into args)
(conj [:p "footer"])))
(defn foo [& args]
[:div
[:p "hi"]
(into [:<>] args)
[:p "footer"]]))
plenty of ways to do this 😛
ohhh