cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
tony.kay 2020-01-16T03:27:31.005500Z

I’m having trouble trying to ingest locally to test docs…I’m getting:

{:project "com.fulcrologic/fulcro",
 :version "3.1.4",
 :jarpath
 "/Users/tonykay/.m2/repository/com.fulcrologic/fulcro/target/fulcro-3.1.4.jar",
 :pompath "/Users/tonykay/fulcrologic/fulcro/pom.xml",
 :repos
 {"clojars" {:url "<https://repo.clojars.org/>"},
  "central" {:url "<http://central.maven.org/maven2/>"}}}
/Users/tonykay/fulcrologic/fulcro/pom.xml {clojars {:url <https://repo.clojars.org/>}, central {:url <http://central.maven.org/maven2/>}}
Failed to read artifact descriptor for javax.servlet:javax.servlet-api:jar:4.0.1

STDERR -----------------------------------------------------

ERROR [2020-01-15 19:27:11,027] clojure-agent-send-off-pool-0 - cljdoc.server.api analysis job failed for project: com.fulcrologic/fulcro, version: 3.1.4, build-id: 5
clojure.lang.ExceptionInfo: Analysis with local AnalysisService failed
	at cljdoc.analysis.service.Local.wait_for_build(service.clj:151)
	at cljdoc.server.api$analyze_and_import_api_BANG_.invokeStatic(api.clj:29)
	at cljdoc.server.api$analyze_and_import_api_BANG_.invoke(api.clj:10)
	at cljdoc.server.api$kick_off_build_BANG_$fn__29612.invoke(api.clj:77)
	at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

tony.kay 2020-01-16T03:28:03.005900Z

not sure why it can’t find servlet api (though I’m not using it)

tony.kay 2020-01-16T03:30:03.006200Z

I tried changing maven repos…

tony.kay 2020-01-16T03:31:08.006600Z

doesn’t seem to be getting those from pom.xml…trying using he pom.xml from formal location in m2

tony.kay 2020-01-16T03:32:34.007Z

ah, looks like my paths were wrong…crapper error message I think.

tony.kay 2020-01-16T03:44:09.007400Z

got it…weird errors, but just getting all params right gets it

tony.kay 2020-01-16T03:48:01.008200Z

So, I use shadow-cljs for this project, and one of my requires does NOT have a cljsjs package, so the node dep is failing. Is there any way to get it to skip certain nses? I tried ^:no-doc on ns, but that didn’t hlp

tony.kay 2020-01-16T04:07:51.008700Z

skipping an entire folder would be fine…reading source, I am not seeing an exclude option yet

martinklepsch 2020-01-16T11:47:56.011600Z

@tony.kay :no-doc still requires analyzing the namespace unfortunately (which fails as you discovered) there has been some work to support string requires but so far that hasn’t been fully integrated yet. What node libs do you need? With the preliminary work we’ve done on this currently only “react” is supported but very happy to extend that until we figure out a way to allow any string require. https://github.com/cljdoc/cljdoc-analyzer/pull/6

tony.kay 2020-01-16T16:28:48.012800Z

@martinklepsch I’m using ["*socket*.io-client" :as io-client]. I have plans to port to sente, just no time to do so right now.

tony.kay 2020-01-16T16:28:56.013100Z

everything else was working prior to that add