Well, implementing symbol resolution is a pretty huge task. I'd estimate it
accounts for at least 60% of the time I spend working on Cursive. Cursive's
implementation isn't open source, but even if it were it's very tied to the
IntelliJ infrastructure and wouldn't be very useful. Cursive is internally
structured around an extension API which I'm going to open source along
with the current implementations so in theory those implementations could
be used with another core indexing engine implementing the same API, but
like I say it's a pretty enormous task. You'll need a good indexing engine
which is much harder than it sounds - the one in IntelliJ is really
amazing, you definitely don't want to develop that yourself if you can
avoid it.

In general, I think it's extremely difficult to retrofit this sort of
system into an editor such as LightTable that wasn't designed to use it
from the start. IntelliJ's indexing is fundamentally integrated into the
infrastructure, it's not something that you could easily bolt on with a
plugin.


On 4 June 2014 02:17, Andrea Richiardi <[email protected]> wrote:

> On Tuesday, 3 June 2014 15:29:35 UTC+2, Gary Trakhman  wrote:
> > Colin, you might find this project helpful, it's what's driving the
> autocompletion/symbol-info backend for cider-nrepl (you could use
> cider-nrepl too!): https://github.com/gtrak/cljs-tooling
> >
> >
> >
> >
> > On Tue, Jun 3, 2014 at 9:22 AM, Colin Fleming <[email protected]>
> wrote:
> >
> >
> >
> >
> > Hi Andrea,
> >
> > CLJS has been a bit of a second-class citizen in Cursive up till now,
> but I'm actually working on this as we speak. The next version (hopefully
> in a week or so) should have much better symbol resolution for CLJS,
> including resolution of Javascript symbols with their corresponding
> documentation. I'm also planning an easy to use browser REPL, but that will
> probably not make it in unless I'm very lucky - that'll be the following
> release.
> >
> >
> >
> >
> > Cheers,
> > Colin
> >
> >
> >
> >
> >
> >
> > On 3 June 2014 23:02, Andrea Richiardi <[email protected]> wrote:
> >
> >
> >
> > Hello all,
> >
> >
> >
> > I am a Clojure newbie trying to fiddle around with LightTable
> (ClojureScript) sources. The biggest issue so far is to read and find
> documentation on Javascript classes (like js/console.log).
> >
> >
> >
> > I would like to be able to jump to the Javascript source whenever I have
> a doubt and neither LightTable now Cursive can find the source when I try
> to jump (Cursive gives me warnings, for example on (.replace content
> (js/RegExp. "[ \\t]+$" "gm") ""))) it cannot find js/RegExp).
> >
> >
> >
> >
> >
> >
> > Maybe I am missing some configuration in the leiningen script, or in the
> IDE, therefore my question is, where do I have to put (and how) the
> Javascript source in order to jump to it when necessary?
> >
> >
> >
> > Thanks!
> >
> >
> >
> > --
> >
> > Note that posts from new members are moderated - please be patient with
> your first post.
> >
> > ---
> >
> > You received this message because you are subscribed to the Google
> Groups "ClojureScript" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> >
> > To post to this group, send email to [email protected].
> >
> > Visit this group at http://groups.google.com/group/clojurescript.
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > Note that posts from new members are moderated - please be patient with
> your first post.
> >
> > ---
> >
> > You received this message because you are subscribed to the Google
> Groups "ClojureScript" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> >
> > To post to this group, send email to [email protected].
> >
> > Visit this group at http://groups.google.com/group/clojurescript.
>
> Great, I love collaboration between projects! Talking about collaboration,
> Colin, do you think I can include the same tooling system for LightTable? I
> actually have the same problem of symbol resolution and I really would like
> to contribute (maybe with just a plugin at the beginning) to it.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to