Fork me on GitHub
#cljdoc
<
2019-02-07
>
borkdude09:02:17

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?

borkdude09:02:12

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)

borkdude09:02:29

Thanks for CLJDOC btw, it’s amazing 😄

borkdude10:02:08

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)

cjohansen11:02:54

does 0.0.3-SNAPSHOT exist in your .m2?

borkdude11:02:05

yup:

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

martinklepsch11:02:42

Make sure you’re on master

borkdude11:02:58

I was. Just did git clone / git pull

borkdude11:02:18

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

nothing to commit, working tree clean

borkdude11:02:07

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

martinklepsch11:02:08

Not on the computer right now but I’ll give it a try in a bit

🙏 5
martinklepsch11:02:20

Just wanted to make sure you’re on master

cjohansen11:02:35

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

cjohansen11:02:16

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

borkdude11:02:31

@christian767 FWIW cljdoc has no problem building this online.

cjohansen11:02:52

how are you building the jar?

borkdude11:02:06

lein install

cjohansen11:02:30

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

borkdude11:02:44

not using tools.deps to create artifacts atm

cjohansen11:02:04

ok. it works with latest pack.alpha FTR

cjohansen11:02:14

well, then I'm out of ideas for now 🤷

cjohansen11:02:22

my best tip is to run the analysis process directly

cjohansen11:02:11

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 \""}, \"central\" {:url \""}}}"

borkdude11:02:15

ok, I’ll try this later, thanks 🙂

martinklepsch11:02:27

@borkdude I can't reproduce with master

martinklepsch11:02:24

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

martinklepsch11:02:41

make sure you're at 8751ea7

borkdude11:02:07

that worked, thanks!

martinklepsch11:02:44

sorry for the hassle, and thanks for coming by to report this 🙂

martinklepsch12:02:01

BTW, cljdoc crossed 10.000 builds today 🎉 https://cljdoc.org/builds

borkdude12:02:11

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

martinklepsch12:02:30

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