Fork me on GitHub
#specter
<
2018-11-07
>
pepe07:11:30

Hello. With latest shadow-cljs and clojurescript I am getting theese warnings:

------ WARNING #1 --------------------------------------------------------------
 File: com/rpl/specter.cljc:1275:19
--------------------------------------------------------------------------------
1272 |           ns (namespace structure)]
1273 |       (cond (keyword? structure) (keyword ns new-name)
1274 |             (symbol? structure) (symbol ns new-name)
1275 |             :else (i/throw-illegal "NAME can only be used on symbols or keywords - " structure)
-------------------------^------------------------------------------------------
 Use of undeclared Var com.rpl.specter/java
--------------------------------------------------------------------------------
1276 |             ))))
1277 | 
1278 | (defnav ^{:doc "Navigates to the namespace portion of the keyword or symbol"}
1279 |   NAMESPACE
--------------------------------------------------------------------------------

------ WARNING #2 --------------------------------------------------------------
 File: com/rpl/specter.cljc:1288:19
--------------------------------------------------------------------------------
1285 |           new-ns (next-fn (namespace structure))]
1286 |       (cond (keyword? structure) (keyword new-ns name)
1287 |             (symbol? structure) (symbol new-ns name)
1288 |             :else (i/throw-illegal "NAMESPACE can only be used on symbols or keywords - " structure)
-------------------------^------------------------------------------------------
 Use of undeclared Var com.rpl.specter/java
--------------------------------------------------------------------------------
1289 |             ))))
1290 | 
1291 | (defdynamicnav
1292 |   ^{:doc "Adds the result of running select with the given path on the
--------------------------------------------------------------------------------

pepe07:11:30

I had some warnings about js in my project, so I think it is connected to the new type interence in latest clojurescript

nathanmarz13:11:22

@pepe the cljs throw-illegal is:

(defn throw-illegal [& args]
     (throw (js/Error. (apply str args)))))

nathanmarz13:11:42

there's no var named java in the specter source

nathanmarz13:11:44

sounds like a cljs issue

pepe13:11:50

I was looking into the code also, and have not found anything. Thank you! I will try to investigate it.