cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
mafcocinco 2021-05-12T00:44:32.486900Z

Newb question: Are there cross file search capabilities which resolve namespace aliases as part of the search within CIDER (or emacs generally)?

dpsutton 2021-05-12T00:52:50.487300Z

Can you give an example of what you mean?

mafcocinco 2021-05-12T01:08:02.488700Z

For example, in the context of a directory and its child directories, I would like to find all uses of foo.bar namespace, including places it is aliased to f.b.

dpsutton 2021-05-12T01:27:20.489300Z

I think there’s something like m-x cider-find-usages

2021-05-12T14:18:07.491300Z

Maybe this is too simplistic, but what about a text search on the ns name (recursively on the dir you are interested in)? If you do this, you can at least collect all files that use the ns. Then, you’d have to look one by one what’s being used. You could algo use LSP, but AFAIK there’s the concept of find usages for vars, but not for namespaces

ericdallo 2021-05-12T16:29:07.491700Z

https://clojure-lsp.github.io/clojure-lsp/ support find references of a var or ns as well

2021-05-12T16:36:48.492Z

didn’t know about ns references, noice