On Jan 1, 2014, at 3:26 PM, Dave Tenny <
dave....@gmail.com> wrote:
> When I use 'lein repl' in some project context and get to the REPL prompt, there's an available but as yet not ... present ... namespace, i.e. (all-ns) won't list the namespace(s) created in the lein project directory tree.
>
> Is there some API I can use to see a list these available but not active namespaces?
I’m not aware of one.
> I'm guessing that looking at what's on the class path doesn't necessarily tell me what namespaces might be USE-able via (use 'x).
Walking the classpath including the contents of jar files would be a way to construct such a list of USE-able (or REQUIRE-able) namespaces. It would involve traversing the directory structure under each entry in the classpath and reading at least the first ns form in each candidate file (or jar entry).
—Steve