This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # beginners (24)
- # cider (53)
- # clara (4)
- # clj-kondo (3)
- # cljdoc (2)
- # clojars (1)
- # clojure (17)
- # clojure-dev (48)
- # clojure-russia (14)
- # clojure-uk (10)
- # clojuredesign-podcast (5)
- # clojurescript (11)
- # cursive (4)
- # events (5)
- # joker (1)
- # juxt (1)
- # kaocha (1)
- # re-frame (13)
- # reagent (1)
- # reitit (2)
- # sql (28)
I don't know where to ask this, sorry for OT. Does anyone know what is the status of
clj-refactor? We are trying to implement some refactorings/utilities based on it and for something like
find-symbol it only supports
.clj files. And if I use it on such a file that requires a
.cljc file, it throws me back an exception.
the way forward is rewrite-clj based static analysis i think. i started a POC and a tool building a generic AST with this approach called #trin . does not have support for find global symbols atm
that said clj-kondo uses the same approach (and some other recent tooling projects as well) and it has support. afaik in the next release clj-kondo will be able to emmit this analysis info to some extent
@benedek, thanks. I have been looking a bit at clj-kondo lately and dreamed about how it could help. But for Calva I need something that I can either reach through ClojureScript, as a library, or through nrepl, injected into the application. I can't bundle clj-kondo.
Please use this funding window in a pooled way. Moving towards a common goal would be awesome!
You might have seen I’ve implemented a variant of find-usages in Orchard that’s not using static code analysis, but currently it’s clj-only and doesn’t give you the precise locations where something is used (only the containing definition). I think that making that work for cljs won’t be hard, but the limitations are likely going to remain, so we have to get creative and figure out some better approach.
https://clojurians.slack.com/archives/C0617A8PQ/p1564943390194000 this is already out
but even then, I'm using a forked version with some tweaks very specific to clj-kondo
e.g. stripping out things at parse time (whitespace and comments) and patches for namespaced maps, metadata, etc.
The patch for namespaced maps should be applied to rewrite-clj, right? (If it is what I think it is)