cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
borkdude 2019-02-07T09:58:17.100500Z

I have defined a private var in CLJS: https://github.com/borkdude/speculative/blob/master/src/speculative/specs.cljc#L9 It shows up in the docs nonetheless: https://cljdoc.org/d/speculative/speculative/0.0.3-SNAPSHOT/api/speculative.specs Iโ€™ll try adding ^:no-doc to it, but could be a bug?

borkdude 2019-02-07T09:59:12.101200Z

Also, cljdoc says thereโ€™s a newer version available (0.0.1) but thatโ€™s not newer (this also shows at version 0.0.2)

borkdude 2019-02-07T09:59:29.101500Z

Thanks for CLJDOC btw, itโ€™s amazing ๐Ÿ˜„

borkdude 2019-02-07T10:11:08.102100Z

Iโ€™d love to preview this locally, but Iโ€™m getting:

$ ./script/cljdoc ingest -p speculative/speculative -v 0.0.3-SNAPSHOT --git /Users/Borkdude/Dropbox/dev/clojure/speculative
INFO [2019-02-07 11:10:08,932] main - cljdoc.server.system Starting :cljdoc/build-tracker
INFO [2019-02-07 11:10:08,935] main - cljdoc.server.system Starting :cljdoc/storage
INFO [2019-02-07 11:10:08,936] main - cljdoc.server.system Starting :cljdoc/analysis-service nil
ERROR [2019-02-07 11:10:09,046] clojure-agent-send-off-pool-0 - cljdoc.server.api Exception while processing speculative/speculative 0.0.3-SNAPSHOT (build 2)
java.lang.NullPointerException: null
	at clojure.core$name.invokeStatic(core.clj:1587)

borkdude 2019-02-07T10:34:07.102300Z

https://github.com/cljdoc/cljdoc/issues/268

2019-02-07T11:11:54.102900Z

does 0.0.3-SNAPSHOT exist in your .m2?

borkdude 2019-02-07T11:17:05.103100Z

yup:

$ ls ~/.m2/repository/speculative/speculative
0.0.3-SNAPSHOT           maven-metadata-local.xml

martinklepsch 2019-02-07T11:18:42.103500Z

Make sure youโ€™re on master

borkdude 2019-02-07T11:18:58.103900Z

I was. Just did git clone / git pull

borkdude 2019-02-07T11:19:18.104100Z

~/git/cljdoc (master) $ git st
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

borkdude 2019-02-07T11:20:07.104600Z

I guess this is fairly easy to reproduce locally: git clone https://github.com/borkdude/speculative and do a lein install.

martinklepsch 2019-02-07T11:26:08.105400Z

Not on the computer right now but Iโ€™ll give it a try in a bit

๐Ÿ™ 1
martinklepsch 2019-02-07T11:26:20.105800Z

Just wanted to make sure youโ€™re on master

2019-02-07T11:34:35.106500Z

@borkdude and you're sure your dependencies are a-ok etc? I've had this exception a few times myself ๐Ÿ™‚

2019-02-07T11:35:16.107600Z

was thinking maybe to contribute some code to make the reason clearer. the analysis runs in a separate process, if you run that directly, you'll be able to see the original stack trace at least

borkdude 2019-02-07T11:35:31.107800Z

@christian767 FWIW cljdoc has no problem building this online.

2019-02-07T11:35:43.108Z

hah

2019-02-07T11:35:52.108300Z

how are you building the jar?

borkdude 2019-02-07T11:36:06.108500Z

lein install

2019-02-07T11:36:15.108700Z

ok

2019-02-07T11:36:30.109100Z

I had an issue with jars made by specific version of pack.alpha

borkdude 2019-02-07T11:36:44.109400Z

not using tools.deps to create artifacts atm

2019-02-07T11:37:04.109700Z

ok. it works with latest pack.alpha FTR

2019-02-07T11:37:14.110100Z

well, then I'm out of ideas for now ๐Ÿคท

2019-02-07T11:39:22.110400Z

my best tip is to run the analysis process directly

2019-02-07T11:40:11.111200Z

cd cljdoc/modules/analysis-runner
clojure -m cljdoc.analysis.runner-ng "{:project \"my/project\",:version \"0.1.2\",:jarpath \"/Users/me/projects/myproject/myproject.jar\",:pompath \"/Users/me/projects/myproject/pom.xml\",:repos {\"clojars\" {:url \"<https://repo.clojars.org/\>"}, \"central\" {:url \"<http://central.maven.org/maven2/\>"}}}"

borkdude 2019-02-07T11:41:15.111400Z

ok, Iโ€™ll try this later, thanks ๐Ÿ™‚

martinklepsch 2019-02-07T11:49:27.111700Z

@borkdude I can't reproduce with master

martinklepsch 2019-02-07T11:50:24.112300Z

@borkdude ok, master after I pushed the commit I just pushed

martinklepsch 2019-02-07T11:50:41.112500Z

make sure you're at 8751ea7

borkdude 2019-02-07T11:52:07.112800Z

that worked, thanks!

martinklepsch 2019-02-07T11:52:44.113500Z

sorry for the hassle, and thanks for coming by to report this ๐Ÿ™‚

martinklepsch 2019-02-07T12:01:01.114Z

BTW, cljdoc crossed 10.000 builds today ๐ŸŽ‰ https://cljdoc.org/builds

2019-02-07T12:01:32.114200Z

๐Ÿ™Œ

borkdude 2019-02-07T12:03:11.114800Z

Awesome. A minor thing while building locally: https://www.dropbox.com/s/z59ydzi1xxjkq7t/Screenshot%202019-02-07%2013.02.27.png?dl=0 I.e. it tries to load a local asset, but still prefixes it with a github url

martinklepsch 2019-02-07T12:10:30.115300Z

uh, yeah, want to open an issue on that?

borkdude 2019-02-07T12:11:29.115500Z

sure ๐Ÿ™‚

borkdude 2019-02-07T12:13:16.115700Z

https://github.com/cljdoc/cljdoc/issues/269

martinklepsch 2019-02-07T12:36:02.116200Z

Thanks ๐Ÿ‘

martinklepsch 2019-02-07T20:38:17.116500Z

https://twitter.com/martinklepsch/status/1093609657388679168

๐ŸŽ‰ 4