Fork me on GitHub
#cljdoc
<
2021-10-31
>
lread01:10:21

Just taking a look @tobyclemson… I think… it seems that cljdoc-analyzer is barfing on managed dependencies, can’t remember if it understands these…

Toby Clemson01:10:41

Hmm, following the docs to run cljdoc locally (https://github.com/cljdoc/cljdoc/blob/master/doc/running-cljdoc-locally.adoc#import-a-published-library) I get an error (regardless of whether I'm pointing at my own library or the one in the docs):

$ docker run --rm \
  --volume "$HOME/.m2:/root/.m2" \
  --volume /tmp/cljdoc:/app/data \
  --entrypoint clojure \
  cljdoc/cljdoc -M:cli ingest \
    --project lread/cljdoc-exerciser \
    --version 1.0.57
Syntax error (FileNotFoundException) compiling at (cljdoc/cli.clj:1:1).
Could not locate cli_matic/core__init.class, cli_matic/core.clj or cli_matic/core.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.

Full report at:
/tmp/clojure-4940749648063377187.edn

Toby Clemson01:10:09

@lee Ah ok, thanks for looking into it

lread01:10:47

Also, cljdoc-analyzer error reporting is pretty awful when it trips on this. Will make an issue to improve that.

lread01:10:29

Yeah, the cljdoc-analyzer has no understanding of <dependencyManagement> in the pom. So when it later sees a dependency without a version, it just does not expect that and dies.

lread01:10:15

I kinda sorta remember this coming up before…

lread01:10:38

Oh yeah, @tobyclemson, here’s an issue that sounds the same as yours: https://github.com/cljdoc/cljdoc-analyzer/issues/34. Same symptom and same cause but the issue more focuses on the bad error reporting.