rewrite-clj

2022-09-17T16:28:47.574109Z

haha yeah, I'm trying to bring back self instrumentation to it

lread 2022-09-17T00:01:25.419199Z

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.

2022-09-17T00:02:53.609869Z

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

2022-09-17T00:06:57.934709Z

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?

lread 2022-09-17T00:07:28.697949Z

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.

2022-09-17T00:09:14.914709Z

I'll take a look tomorrow at all those ideas, thanks!

2022-09-17T00:10:03.222629Z

and thanks for creating rewrite-clj, is super useful!

lread 2022-09-17T00:10:12.002409Z

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.

👍 1
lread 2022-09-17T00:11:49.902849Z

Oh I am but a humble adoptive parent of rewrite-clj. It was created by rundis (rewrite-cljs) and xsc (rewrite-clj).

lread 2022-09-17T00:12:42.467359Z

Check back here tomorrow, I expect others will chime in with their ideas.

2022-09-17T00:12:56.232259Z

will do, thanks again!

lread 2022-09-17T00:13:34.559199Z

My pleasure!

lread 2022-09-17T03:30:51.699669Z

@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! simple_smile