juxt / bidi

Bidirectional URI routing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compilation warnings (from a shadow-cljs project depending on [bidi "2.1.4"])

gmp26 opened this issue · comments

------ WARNING #1 --------------------------------------------------------------
 File: bidi/bidi.cljc:29:12
--------------------------------------------------------------------------------
  26 | actually a valid UUID (this is handled by the route matching logic)."
  27 |   [s]
  28 |   #?(:clj (java.util.UUID/fromString s)
  29 |      :cljs (cljs.core.UUID. s)))
------------------^-------------------------------------------------------------
 Wrong number of args (1) passed to cljs.core.UUID
--------------------------------------------------------------------------------
  30 | 
  31 | ;; When forming paths, parameters are encoded into the URI according to
  32 | ;; the parameter value type.
  33 | 
--------------------------------------------------------------------------------

That's interesting. Is there a function in clojurescript which turns a string into a uuid?

FWIW you are only seeing this in shadow-cljs currently since CLJS does not handle symbols with a dot in properly.

See https://dev.clojure.org/jira/browse/CLJS-712 and vote