Closed vemv closed 2 years ago
This exception comes from this code: (throw (Exception. (str "Couldn't create directories: " (io/file f))))
so it is already trying to tell you what directory it failed to make; the problem is it must be trying to create a directory named ""
which of course fails.
Leiningen will never try to create a directory like that on its own. This must be happening due to either a mistake in your project.clj
file (did you add something like :source-paths [""]
?) or a bug in a plugin you're using.
Looks like #2778 takes care of this.
This must be happening due to either a mistake in your project.clj file (did you add something like :source-paths [""]?) or a bug in a plugin you're using.
Yes that was the case, we faced a corner case in a plugin. Probably Lein handling could have been more informative, but https://github.com/technomancy/leiningen/pull/2778 already improves things.
From my side the chances of that plugin making the same mistake again are pretty low so it seems good to leave things as-is.
Thanks!
Forwarding from https://github.com/clojure-emacs/cider/issues/3108
The following stacktrace has been observed:
I don't know what this stacktrace means, or what directory was Lein trying to create. The stacktrace doesn't appear to relate to the plugins that Lein was running (enrich-classpath + lein-git-down).
It would be appreciated if at least this defn failed a little more informatively.
Anyway does it ring a bell?
Environment
Leiningen 2.9.3 on Java 16.0.1 OpenJDK 64-Bit Server VM