Wow, just started playing around with the inspector and it’s great! Two small things it choked on: it can’t seem to inspect into reagent’s ratoms the same way it inspects normal atoms, and it doesn’t seem to be able to inspect items inside of LazySeqs. The latter can be easily worked around by just running (into [] $o)
though, so not a huge deal. Awesome tool!
@max.r.rothman yeah the support for lazy seqs is incomplete. you can extend support for reagent atoms by extending the datafy protocol
something like this
(extend-protocol p/Datafiable
reagent.ratom/RAtom
(datafy [r]
(with-meta [(deref r)] (meta r))))
with p
being (:require [clojure.core.protocols :as p])
can do it from a REPL or a ns you load via :preloads
Why is this not legal in shadow-cljs.edn?
:git-inject {:version-pattern #"^v\/(.*)$"
:ignore-dirty? false}
shadow says this is an Unsupported escape character: \/.
because EDN does not support regexp
don't know why they have it as an example but default clj/cljs EDN readers do not support regular expressions
I guess I could maybe change it to use the regular CLJ parsers but as of now it is treated as EDN
Got it, thanks!
just use a string, it'll be converted. just requires a bit more escaping the \\
@schpaencoder That bug (and the documentation) in shadow-git-inject
has been fixed. We have also moved re-frame-template
to use this update. Thanks for report.
doesn't seem like it has anything to do with shadow-cljs, you just can't (read: don't have to) escape a /
?
you probably meant to do \\
to escape a \
so you match \/
in the final regex (or you just want to remove the \
so you match a single /
, if that's what you want)
also seems like this is not a standard shadow-cljs feature but rather coming from https://github.com/day8/shadow-git-inject so it might be that you get better answers there