Open spacegangster opened 4 years ago
I think this is a good idea if anyone wants to submit a patch to implement it.
I am getting the same issue
Removing the :source-paths
from :dev
profile fixed the issue, but its a deal breaker
This workaround resolved my issue: https://github.com/technomancy/leiningen/issues/1477#issuecomment-960624941
Dear Leiningen team, big thanks for all the great work you do.
I have a java source file in my codebase and I was playing around with
lein javac
. If I run it afterlein clean
it somehow pulls Clojure code that requires that java class from the source file. So it throws aClassNotFoundException
as the class isn't compiled yet. After lots of experimentation I managed to successfully runlein with-profile base javac
. This, apparently doesn't pull and Clojure code, so javac compiles successfully.Maybe DEBUG mode could have been more helpful here if it told me which profiles it used.
Output from
lein with-profile base javac
looks like:Output from plain
lein javac
project.clj looks like
So, would be cool if instead of:
I would get a list of profiles and the merged deps / source-paths and ideally a reason why it is this way. And maybe a reference of a doc section to read. I think this would be big for you as well as this eliminates lots of potential issues and fruitless discussions.
P.S. again – big thanks for your work. Using lein for many years, and so far was satisfied. I look forward to be supporting lein more in the future as soon as I'll have some income back again.