This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-31
Channels
- # aleph (8)
- # announcements (11)
- # aws (1)
- # babashka (7)
- # beginners (104)
- # calva (52)
- # clara (1)
- # clj-kondo (28)
- # cljdoc (8)
- # cljsrn (2)
- # clojure (20)
- # clojure-europe (8)
- # clojure-uk (1)
- # clojurescript (26)
- # core-typed (3)
- # datomic (6)
- # holy-lambda (1)
- # jobs (1)
- # jobs-discuss (14)
- # malli (7)
- # pathom (31)
- # polylith (19)
- # re-frame (8)
- # reitit (1)
- # releases (1)
- # shadow-cljs (5)
- # tools-build (92)
Just taking a look @tobyclemson… I think… it seems that cljdoc-analyzer is barfing on managed dependencies, can’t remember if it understands these…
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
@lee Ah ok, thanks for looking into it
Also, cljdoc-analyzer error reporting is pretty awful when it trips on this. Will make an issue to improve that.
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.
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.