Oh this is great. Thanks for the feedback. I tried the "*M-x nrepl-ritz-lein *" command. But I got this error eventhough I definitely have cljsbuild in my project.
lein trampoline cljsbuild repl-listen ;; ( "*lein cljsbuild repl-listen*" also fails ) 'cljsbuild' is not a task. See 'lein help'. Suppressed exit Lein failed - exit code 1 I'll play around with it a bit more. But having middleware for those tasks would be very useful. I've put up a new issue<https://github.com/pallet/ritz/issues/59> . Thanks again Tim On Mon, Oct 15, 2012 at 5:09 PM, Hugo Duncan <duncan.h...@gmail.com> wrote: > Timothy Washington <twash...@gmail.com> writes: > > > I have a ritz and nrepl.el session running. I'd also like to be able to > > > > *i)* auto compile cljs ("lein cljsbuild auto") and > > *ii)* have a browser repl ("lein trampoline cljsbuild repl-listen") in > the > > same session. > > The latest ritz has a M-x nrepl-ritz-lein command, that allows you to > run lein commands in your project vm. > > > I can do them in separate sessions. But it would be nice to have it all > > inside of an "nrepl-ritz-jack-in" session. Is this at all possible? > > Essentially it would involve running those lein tasks from the nrepl. But > > I'm not sure how to do that. I've tried *(require 'leiningen.cljsbuild)* > , > > but that namespace is not on the classpath. > > It may be more appropriate to have a middleware for `cljsbuild auto` and > for `cljsbuild repl-listen`. For example, we could inspect the > project.clj file sent to the "project" middleware in [1] (which > currently provides support for switching projects inside a REPL), and > automatically start these. > > If you think this is useful, maybe you could add this as an issue to ritz > [2]. > > Hugo > > > [1] https://github.com/pallet/ritz/tree/develop/nrepl-project > [2] https://github.com/pallet/ritz/issues > > -- 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