If you have :main foo.my-main-ns in the project.clj and:
(defn -main )
Then lein run gives:
Phil told me this is due to a FileNotFoundException falling back to running java classes, and that this is a feature he'd be happy to let go.
Hoping to patch this myself but wanted to get an issue on record in case I totally forget.
Just posted #1183. Not sure how to tie these two together.
One can create an issue, create a commit which fixes the problem, and write e.g. "closes #1182" in a commit message. Though there's no need, one can close them manually as well.