Re: ClojureScript integration with Emacs/Cider ?

2014-01-24 Thread Gary Trakhman
Bozhidar, I created an issue summing up my concerns: https://github.com/clojure-emacs/cider/issues/460 On Wed, Jan 22, 2014 at 9:10 AM, Bozhidar Batsov wrote: > Sorry about the late response, Gary. Would you mind taking the discussion > over to cider’s issue tracker? (I tend to miss emails, but

Re: ClojureScript integration with Emacs/Cider ?

2014-01-22 Thread Bozhidar Batsov
Sorry about the late response, Gary. Would you mind taking the discussion over to cider’s issue tracker? (I tend to miss emails, but I don’t miss issues :-) ). The second change seems totally reasonable. I guess ritz’s complete middleware returns the completion candidates in some odd format.

Re: ClojureScript integration with Emacs/Cider ?

2014-01-18 Thread Gary Trakhman
Bozhidar, I had to slightly modify cider-interaction.el to make autocomplete work for cljs. --- cider-interaction.el2014-01-18 13:51:28.082131609 -0500 +++ /home/gary/.emacs.d/elpa/cider-0.4.0/cider-interaction.el 2014-01-17 19:06:45.872591834 -0500 @@ -469,12 +469,12 @@ (let ((strlst

Re: ClojureScript integration with Emacs/Cider ?

2014-01-13 Thread Gary Trakhman
Austin's lein-plugin already manipulates project middlewares, so that's an easy target. Onward! On Mon, Jan 13, 2014 at 10:10 AM, Bozhidar Batsov wrote: > Cider’s completion understands a `complete` op, so the middleware is the > best approach if you ask me. The only reason that there’s also an

Re: ClojureScript integration with Emacs/Cider ?

2014-01-13 Thread Bozhidar Batsov
Cider’s completion understands a `complete` op, so the middleware is the best approach if you ask me. The only reason that there’s also an eval based completion mechanism (the one used by default) is that clojure-complete is present as a REPLy (which is used by lein) dependency and many newcomer

Re: ClojureScript integration with Emacs/Cider ?

2014-01-13 Thread Gary Trakhman
On talking to Chas, https://github.com/cemerick/piggieback/issues/22 it seems like the right approach is to reify ac-nrepl's use of eval into a real "complete" op, and reimplement it to use that, then a common middleware can either use clojure's environment (clojure-complete) or piggieback's compi

Re: ClojureScript integration with Emacs/Cider ?

2014-01-13 Thread Gary Trakhman
I've released a cljs port of clojure-complete: Here's the mailing list announcement, also inlined. https://groups.google.com/forum/#!topic/clojurescript/Dt1s4laHFXc cljs-complete, A Clojure library designed to auto-complete clojurescript based on cljs compiler state. - With leiningen: [clj

Re: ClojureScript integration with Emacs/Cider ?

2014-01-11 Thread Gary Trakhman
In response to this thread, I've hacked lein-cljsbuild to dump the compiler state, and built a version of autodoc to parse it and generate api docs. I'm trying to figure out how exactly cider and austin will talk to each other so I can make it happen, and I approach that I'm considering now is to

Re: ClojureScript integration with Emacs/Cider ?

2014-01-07 Thread Colin Fleming
Great, let me know if you have any questions. I'm definitely planning ClojureScript support sometime soon. I think most of the symbol resolution for core cljs should work (since it's mostly the same as clj) for for pure cljs (including the core libs) everything at http://cursiveclojure.com/userguid

Re: ClojureScript integration with Emacs/Cider ?

2014-01-07 Thread Alexandru Nedelcu
On Mon, Jan 6, 2014 at 11:10 PM, Colin Fleming wrote: > Since Cursive (http://cursiveclojure.com) resolves everything statically > from source, ClojureScript completion and navigation works for most > symbols. There are still a lot that it doesn't know about since > cljs-specific functionality is

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Bozhidar Batsov
I'm cider's maintainer. The problem with code completion for ClojureScript is that the default mechanism is based on the Clojure-only library https://github.com/ninjudd/clojure-complete. As I don't use ClojureScript I haven't paid much attention to it so far. If there is a similar library for C

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Colin Fleming
Since Cursive (http://cursiveclojure.com) resolves everything statically from source, ClojureScript completion and navigation works for most symbols. There are still a lot that it doesn't know about since cljs-specific functionality is still pretty low, so js/* symbols have no support, and any func

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Tim Visher
On Mon, Jan 6, 2014 at 3:01 PM, David Nolen wrote: > Limitation of tooling. ClojureScript analyzer exposes the necessary > information. That is seriously great to hear. I had no idea we were that far along. -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread David Nolen
Limitation of tooling. ClojureScript analyzer exposes the necessary information. On Monday, January 6, 2014, Tim Visher wrote: > Hi Alexandru, > > On Sun, Jan 5, 2014 at 3:30 PM, Alexandru Nedelcu > > > wrote: > > I can’t get auto-completion or jumping to the definition of a function in > > Emac

Re: ClojureScript integration with Emacs/Cider ?

2014-01-06 Thread Tim Visher
Hi Alexandru, On Sun, Jan 5, 2014 at 3:30 PM, Alexandru Nedelcu wrote: > I can’t get auto-completion or jumping to the definition of a function in > Emacs, while working with ClojureScript. Is this a limitation of Emacs’ > Cider plugin? IIUC, completing et al does not work for ClojureScript beca

ClojureScript integration with Emacs/Cider ?

2014-01-05 Thread Alexandru Nedelcu
Hi, I can’t get auto-completion or jumping to the definition of a function in Emacs, while working with ClojureScript. Is this a limitation of Emacs’ Cider plugin? I managed to get nRepl working by using the awesome com.cemerick/austin