Fork me on GitHub
#cider
<
2021-12-22
>
shem11:12:54

cider-jack-in stopped working here today as well after updating it. this is leiningen project. it runs a couple of minutes and dies with:

shem11:12:58

Retrieving mx/cider/enrich-classpath/1.5.1/enrich-classpath-1.5.1.jar from clojars java.lang.Exception: Couldn't create directories: at leiningen.core.utils$mkdirs.invokeStatic (utils.clj:71) leiningen.core.utils$mkdirs.invoke (utils.clj:67) leiningen.core.eval$prep.invokeStatic (eval.clj:83)

shem11:12:43

my uid should be well capable of creating directories

bozhidar11:12:36

I'm puzzled by those permission issues, but at least the workaround is simple.

Brett Kromkamp11:12:03

Hi! What is the workaround (I cannot seem to find it)?

vemv12:12:23

This appears to be an issue in Lein itself. I've tried this plugin over a year, in many projects, personally and in an extensive CI matrix alike.

vemv12:12:18

Anyway here are some questions that would help us debugging it cc/ @shem https://github.com/clojure-emacs/cider/issues/3108#issuecomment-999536065

shem12:12:30

The workaround works, thanks. FWIW, I saw it download lots of dependencies (apparently storing them somewhere) before it bailed not being able to make directories.

shem12:12:23

If I create a new minimal leiningen project without any dependencies except clojure, I get the same error about not being able to create directories.

Brett Kromkamp12:12:49

@shem Hi. I'm new to Clojure/Cider... how do you apply the work-around?

vemv12:12:10

It's odd because enrich-classpath does not use leiningen.core.utils$mkdirs which is what your stacktrace reflects. So it looks like enrich-classpath did its job correctly and completed, and then Lein failed for some reason, which might be related, but indirectly

vemv12:12:26

@U0125NB5XLG M-x customize, set cider-enrich-classpath to nil there, restart Emacs it will persist across Emacs sessions

Brett Kromkamp12:12:10

@U45T93RA6 Ok, thanks! I will give it a try and report back

shem12:12:11

or if you just want to try it once, Esc : <then write> (setq cider-enrich-classpath nil) <enter>

Brett Kromkamp12:12:43

Yep! That worked! 🙂

vemv12:12:40

> If I create a new minimal leiningen project without any dependencies except clojure, I get the same error about not being able to create directories. oh wow @shem :/ could you post that in the GH issue along with your JDK + lein version + OS?

shem12:12:37

will do

👍 1
shem12:12:01

I only have {:antq {} } in my ~/.lein/profiles.clj so that shouldn't bring surprises

vemv12:12:39

I've created https://github.com/technomancy/leiningen/pull/2778, which hopefully will either solve the issue or make it more debuggable

bozhidar14:12:03

(`cider-enrich-classpath` was disabled for the time being until we figure out the issue with Leiningen)

mister_m17:12:21

question RE using eldev for hacking; after starting eldev emacs in the top level of my fork, I seem to be unable to "jack in" to a fresh lein project. I am 1. creating a fresh project with lein new sample , 2. opening the project.clj, then 3. M-x c-j-i to jack in. https://gist.github.com/matt-y/c0302b961901a78cc305fe5888750ef6. I am very unfamiliar with eldev, are there additional steps I am missing in these steps in order to load up a lein project?

dpsutton17:12:08

if you scroll up a bit you can see that people hit this issue and there’s a workaround and a disabling of some feature. I don’t think it is related to eldev emacs (which i don’t actually know what that is. I thought eldev was a new test runner?)

mister_m17:12:53

I should pay attention more, thanks! That works for the time being.

dpsutton17:12:32

no worries 🙂