lein-sub
doesn't put your subprojects on the classpath; if they're available at all, I expect that's due to a lein sub install
issued at some point?
For the type of simultaneous interactive development you're asking about you can use Leiningen's built-in checkouts feature. Just create a directory called checkouts
in the root of your top-level project and in there create symbolic links to the root directories of the dependencies. You still need to add them as :dependencies
to project.clj
, but the fresh code from the checkouts will be used. You can then run your REPL in the top-level project while simultaneously working on all of them, reloading the individual namespaces from the dependencies just like you would with those from the top-level project.
See the tutorial (link to the version on master) for a detailed description.