leiningen

Joel 2024-03-21T03:10:19.970969Z

I’d like to rummage around source code and find variables with my metadata. How do I acquire all the namespaces? I can load a known namespace using ns-publics and discover the vars I’m interested in, but I don’t know how to discover the namespaces to iterate thru. That is, the file/namespaces under src.

vemv 2024-03-21T03:40:13.415989Z

(all-ns) does the trick :) n.b. only require d namespaces will show up. If you have started your app at least once, of if you use tools.namespace, most/all of them will have been required already

Joel 2024-03-26T17:31:45.555269Z

FYI, i ended up going with tools.namespace. Does what i need.

vemv 2024-03-26T17:43:18.150979Z

Happy to hear 🤝

Joel 2024-03-22T18:03:15.606109Z

Yes, exactly my problem. I need to discover the namespaces, they will not be loaded. What do you mean by “use tools.namespace”? @vemv

vemv 2024-03-22T18:04:42.639129Z

tools.namespace (or a recent alternative https://github.com/tonsky/clj-reload) will require all code in your project e.g. src/ test/ dev/

Joel 2024-03-22T18:17:39.161289Z

That looks promising, I see you can just do src which is also what I need. Thanks!

🍻 1