This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-20
Channels
- # aleph (2)
- # boot (18)
- # cider (3)
- # cljs-dev (14)
- # cljsrn (28)
- # clojure (428)
- # clojure-austin (3)
- # clojure-hk (1)
- # clojure-ireland (5)
- # clojure-mexico (1)
- # clojure-quebec (2)
- # clojure-russia (49)
- # clojure-spec (138)
- # clojure-uk (45)
- # clojurescript (70)
- # core-async (1)
- # cursive (8)
- # datomic (13)
- # defnpodcast (3)
- # devops (1)
- # editors (4)
- # events (1)
- # funcool (14)
- # hoplon (17)
- # jobs-rus (1)
- # luminus (5)
- # mount (51)
- # off-topic (21)
- # om (9)
- # om-next (8)
- # onyx (43)
- # planck (6)
- # re-frame (13)
- # reagent (18)
- # ring-swagger (1)
- # spacemacs (17)
- # untangled (18)
- # vim (13)
- # yada (21)
(defn x [{:keys [extract]
:or {extract #"\w"}}])
This throws ERROR: Not supported: class java.util.regex.Pattern
for me. Works if s/defn/fn
.@anmonteiro: can reproduce with CLJS master
this is definitely related to writing the analysis cache with Transit
relevant piece of the stacktrace:
Caused by: java.lang.RuntimeException: java.lang.Exception: Not supported: class java.util.regex.Pattern
at com.cognitect.transit.impl.WriterFactory$1.write(WriterFactory.java:129)
at cognitect.transit$write.invokeStatic(transit.clj:149)
at cognitect.transit$write.invoke(transit.clj:146)
at cljs.analyzer$write_analysis_cache.invokeStatic(analyzer.cljc:2956)
at cljs.analyzer$write_analysis_cache.invoke(analyzer.cljc:2943)
at cljs.compiler$emit_source.invokeStatic(compiler.cljc:1283)
at cljs.compiler$emit_source.invoke(compiler.cljc:1232)
at cljs.compiler$compile_file_STAR_$fn__3646.invoke(compiler.cljc:1304)
at cljs.compiler$with_core_cljs.invokeStatic(compiler.cljc:1154)
at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1145)
at cljs.compiler$compile_file_STAR_.invokeStatic(compiler.cljc:1293)
@martinklepsch, @anmonteiro: yup. i can reproduce the issue as well and I agree that its related to the analysis cache with Transit.
@martinklepsch: could you confirm if this fixes your issue?
looking at the code for edn - surprising thing is that the .edn file has a regex in it, even though a regex is not valid edn afaik.
@rohit: your patch seems to work 👍
@martinklepsch: sweet. a larger issue is if there should be regex in the cache file. i don’t know the answer to that