Fork me on GitHub
#tools-deps
<
2021-09-09
>
golanweiss13:09:25

Hi, A small question. I had some problems with my machine so I had to re-clone everything. Now when trying to run my Clojure project, deps are being downloaded but it gets stuck. I tried every possible flag but they all get stuck in the same way

~/dev/git/clj-data/clojure [release/vnext●] (doordawn-eks/data) % clojure -Sforce -Sverbose -Strace -M:1.8:zinc
version      = 1.10.3.967
install_dir  = /usr/local/Cellar/clojure/1.10.3.967
config_dir   = /Users/golanweiss/.clojure
config_paths = /usr/local/Cellar/clojure/1.10.3.967/deps.edn /Users/golanweiss/.clojure/deps.edn deps.edn
cache_dir    = .cpcache
cp_file      = .cpcache/2424673877.cp

Refreshing classpath
DEPRECATED: Libs must be qualified, change incanter => incanter/incanter (/Users/golanweiss/dev/git/clj-data/clojure/zinc/deps.edn)
Downloading: postgresql/postgresql/maven-metadata.xml from madlan-releases
Downloading: social/exif-processor/0.1.2-socialsuperstore-SNAPSHOT/maven-metadata.xml from madlan-releases
Downloading: com/google/guava/guava/maven-metadata.xml from madlan-releases
Downloading: com/google/guava/guava/maven-metadata.xml from madlan-snapshots
Downloading: postgresql/postgresql/maven-metadata.xml from madlan-snapshots
Downloading: org/clojure/clojure/maven-metadata.xml from madlan-snapshots
Downloading: social/exif-processor/0.1.2-socialsuperstore-SNAPSHOT/maven-metadata.xml from madlan-snapshots
Downloading: org/apache/commons/commons-math3/maven-metadata.xml from madlan-snapshots
Downloading: org/apache/commons/commons-math3/maven-metadata.xml from madlan-releases
Downloading: refactor-nrepl/refactor-nrepl/2.0.0-SNAPSHOT/maven-metadata.xml from madlan-snapshots
Downloading: cider/cider-nrepl/0.11.0-SNAPSHOT/maven-metadata.xml from madlan-snapshots
Downloading: refactor-nrepl/refactor-nrepl/2.0.0-SNAPSHOT/maven-metadata.xml from madlan-releases
Downloading: cider/cider-nrepl/0.11.0-SNAPSHOT/maven-metadata.xml from madlan-releases
Downloading: org/javassist/javassist/maven-metadata.xml from madlan-releases
Downloading: org/javassist/javassist/maven-metadata.xml from central
Is there a way to debug and find the problematic dependency (assuming that's the case) without doing it "by elimination"? (btw I don't have javassist dependency declared directly anywhere)

Alex Miller (Clojure team)13:09:52

is your deps.edn something you can share?

Alex Miller (Clojure team)13:09:02

geez, I think you missed a few deps :)

golanweiss13:09:22

eventually the culprit was in these

{:deps  {amazonica/amazonica                                             #:mvn{:version "0.3.121"},
         org.jpmml/pmml-evaluator                                        #:mvn{:version "1.4.3"},
         org.jpmml/pmml-evaluator-extension                              #:mvn{:version "1.4.3"},}
once I changed to latest version problem went away...

golanweiss13:09:37

it would be nice if -Sverbose would have print when fetching each direct dependency...

Alex Miller (Clojure team)13:09:39

do you have more :mvn/repos set up in your ~/.clojure/deps.edn?

golanweiss13:09:08

yes we use private repo too.

golanweiss13:09:10

yeah I can share it The point is that debugging with -Strace needs to complete the whole deps cycle first. So it wasn't so helpful to me in finding that problematic dependency.

Alex Miller (Clojure team)13:09:15

yes, I'm aware of that. there is no "as you go" debugging.

Alex Miller (Clojure team)13:09:10

you could try not using your ~/.m2 in case there is something corrupt in there, by adding -Sdeps '{:mvn/local-repo "tmp"}'

Alex Miller (Clojure team)13:09:25

that will download deps anew into the ./tmp directory

💯 2