On Sat, Oct 6, 2012 at 1:32 PM, Frank Siebenlist <frank.siebenl...@gmail.com
> wrote:

> David, please do not apologize… your contributions to clojurescript have
> been invaluable, and the last time I checked you still have a full-time job
> with that village-newspaper somewhere on the East coast...
>
> My current efforts are to help improve the clojurescript help facilities.
> I have working versions of the apropos, ns-resolve, find-ns, source-fn,
> ns-map&friends, and managed to make our clj-ns-browser work with that
> clojurescript metadata such that you can browse the cljs-namespaces (see
> https://gist.github.com/3803119 and
> https://raw.github.com/franks42/clj-ns-browser/cljs/Cljs%20Browser%202012-10-05.pngfor
>  some "proof of progress").
>
> All those facilities run on the clj-jvm and make use of the meta-data in
> the cljs.analyzer/@namespaces map. You can invoke them from any clj-repl
> that connects to the same jvm while you interact with the cljs-repl.
>
> To make them available to the cljs-repl, you ideally need some form of
> rpc-like calls to get that info from the clj-jvm, like the
> clojure.reflect/doc implementation (the repl-prompting is a little awkward,
> though - with all the asynchronous processing it may be better to drive the
> promp-printing from the js-side… but that's a different discussion)
>
> As I didn't get clojure.reflect/doc to work, I've used the "special-fns"
> interface that you pass into the "cljs.repl/repl" function. However, and I
> don't think I will offend anyone, the way how those "special-fns" are
> implemented is one huge ugly hack…;-), and I do not really want to share my
> project while it depends on that.
>
> So… that's why I was trying so hard to make that clojure.reflect/doc work
> with lein-cljsbuild.
>
> Regards, FrankS.


special-fns is not the way to go :) clojure.reflect should be fixed to do
the right thing - it was a oversight to make the interaction asynchronous -
it should work precisely as browser REPL does now - synchronously. There's
an open ticket for this in JIRA.

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to