This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-17
Channels
- # announcements (1)
- # aws (7)
- # babashka (5)
- # calva (56)
- # cider (13)
- # clj-commons (1)
- # clj-kondo (12)
- # clj-yaml (35)
- # clojure (84)
- # clojure-europe (93)
- # clojure-sg (2)
- # clojure-uk (1)
- # clojurescript (10)
- # conjure (37)
- # core-typed (1)
- # cursive (31)
- # duct (1)
- # figwheel-main (4)
- # fulcro (2)
- # holy-lambda (2)
- # humbleui (3)
- # membrane (118)
- # off-topic (46)
- # pathom (8)
- # podcasts-discuss (5)
- # releases (2)
- # rewrite-clj (13)
- # sci (27)
- # shadow-cljs (17)
- # tools-deps (12)
You could try to do the work of analyzing ns forms yourself, but I think you might be able to reuse (or at least borrow from) something that exists.
yeah, I have some ideas, but not sure how to do it yet. Was super easy before the conditionals since I was just moving the zipper over the requires and imports and editing symbols
I'm not sure, but isn't something like (z/of-file some-file :clj)
useful to have? where the zipper constructors accept a parameter so the built zipper walks as it was read in :clj or :cljs etc?
Yup. Like Alex suggested in the clojure channel, you could also eval. I think I took the approach for https://github.com/lread/test-doc-blocks a while back… but I’d probably look at clj-kondo data analysis first.
I'll take a look tomorrow at all those ideas, thanks!
and thanks for creating rewrite-clj, is super useful!
Here’s https://github.com/lread/test-doc-blocks/blob/main/src/lread/test_doc_blocks/impl/amalg_ns.clj. It’s a bit fuzzy in my brain now and not necessarily a good idea.
Oh I am but a humble adoptive parent of rewrite-clj. It was created by rundis (rewrite-cljs) and xsc (rewrite-clj).
will do, thanks again!
@jpmonettas, it dawned on me to wonder how the flow-storm-debugger might be doing this sort of thing... https://github.com/jpmonettas/flow-storm-debugger... there I found you!
haha yeah, I'm trying to bring back self instrumentation to it