clojure-grimoire / lein-grim

A program for generating Grimoire documentation blobs
Eclipse Public License 1.0
4 stars 2 forks source link

Doesn't load .cljs files #5

Open arrdem opened 9 years ago

arrdem commented 9 years ago

This is probably a nontrivial issue that's going to require calling in the cavalry, but when documenting clojurescript there are actually two cljs.core namespaces - cljs/core.clj and cljs/core.cljs. tools.namespace will only load the .clj version, which means that the existing documentation of org.clojure/clojurescript is actually missing like half of the defs due to not loading the clojurescript source. Not sure how actually doing that is gonna shake out because I can't actually load that source into the JVM clojure instance.

arrdem commented 9 years ago

Okay so CLJS has support for introspecting vars from CLJ

11:42 < arrdem> does the clojurescript compiler expose anything like ns-publics on the JVM side?
11:45 < Bronsa> arrdem: https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/core.clj#L1675
11:47 < arrdem> Bronsa: thanks

This really makes the issue that of getting tools.namespace and tools.classpath to find cljs files.