Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-25 Thread Wilkes Joiner
That was it! I add , and it seems to work fine now. Back to being hyper-productive. :) -- 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 - pl

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread David Nolen
Did you remember to include utf-8 meta tag in your html page? On Thu, Nov 24, 2011 at 3:00 PM, Wilkes Joiner wrote: > I got it working, sort of. If I launch inferior-lisp from the > $CLOJURESCRIPT_HOME/samples/repl/src/repl/test.cljs, then I can pull up my > apps page that calls repl/connect and

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Wilkes Joiner
I got it working, sort of. If I launch inferior-lisp from the $CLOJURESCRIPT_HOME/samples/repl/src/repl/test.cljs, then I can pull up my apps page that calls repl/connect and everything works fine from there on out. If I launch inferior-lisp from the cljs in my project, the repl appears to la

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Takahiro
Or you should hook load event. (ns foo (:require [clojure.browser.repl :as repl] [goog.events :as gevents])) (defn main [] (repl/connect "http://localhost:9000/repl";) (gevents/listen js/window (aget gevents/EventType "LOAD") main) 2011/11/25 Takahiro : > In your html, a script t

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Takahiro
In your html, a script tag seems to have to be in body tag, not head tag, when you use browser repl. If you use Chrome, look at a console in Developer Tools. Is there an xpc error? 2011/11/25 Wilkes Joiner : > The browser repl in the samples directory works fine for me in emacs.  I'm > guessing it

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Wilkes Joiner
The browser repl in the samples directory works fine for me in emacs. I'm guessing it has something to do with my app. I'll keep poking around. Thanks for your help. If I figure it out, I'll post a follow up here. -- Wilkes Joiner On Thursday, November 24, 2011 at 11:50 AM, David Nolen wr

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread David Nolen
Another thing, it's important to delete the .repl folder that gets created in your project, this may be stale especially if CLJS has changed. David On Thu, Nov 24, 2011 at 12:39 PM, Wilkes Joiner wrote: > I see a prompt. It just never evaluates an expression. > > -- > Wilkes Joiner > > On Thurs

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread David Nolen
And you don't see a JS error in the browser JS console? On Thu, Nov 24, 2011 at 12:39 PM, Wilkes Joiner wrote: > I see a prompt. It just never evaluates an expression. > > -- > Wilkes Joiner > > On Thursday, November 24, 2011 at 11:38 AM, David Nolen wrote: > > You said the REPL hangs, do you do

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Baishampayan Ghose
On Thu, Nov 24, 2011 at 11:08 PM, David Nolen wrote: > You said the REPL hangs, do you don't see a prompt? I was absolutely affected by the "lack of prompt" hanging for a while, but it's working now. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- You received this message because

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Wilkes Joiner
I see a prompt. It just never evaluates an expression. -- Wilkes Joiner On Thursday, November 24, 2011 at 11:38 AM, David Nolen wrote: > You said the REPL hangs, do you don't see a prompt? > > David > > On Thu, Nov 24, 2011 at 12:12 PM, Wilkes Joiner (mailto:wilkesjoi...@gmail.com)> wrote:

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread David Nolen
You said the REPL hangs, do you don't see a prompt? David On Thu, Nov 24, 2011 at 12:12 PM, Wilkes Joiner wrote: > No dice on the browser refresh. I'm wondering if it something with my > emacs config. I'm going to strip it down to the simplest set up I can > manage and see if it resolves the i

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Wilkes Joiner
No dice on the browser refresh. I'm wondering if it something with my emacs config. I'm going to strip it down to the simplest set up I can manage and see if it resolves the issue. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread David Nolen
On Thu, Nov 24, 2011 at 11:49 AM, Baishampayan Ghose wrote: > On Thu, Nov 24, 2011 at 10:15 PM, Wilkes Joiner > wrote: > > The server appears to start up fine as the inferior-lisp process, but > when I > > enter an expression it is never evaluated. Looking in the web inspector, > > there is one

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Baishampayan Ghose
On Thu, Nov 24, 2011 at 10:15 PM, Wilkes Joiner wrote: > The server appears to start up fine as the inferior-lisp process, but when I > enter an expression it is never evaluated.  Looking in the web inspector, > there is one request to localhost:9000 that sits in a pending state.  When I > run "br

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Wilkes Joiner
The server appears to start up fine as the inferior-lisp process, but when I enter an expression it is never evaluated. Looking in the web inspector, there is one request to localhost:9000 that sits in a pending state. When I run "browser-repl" from the command line, I see a series of request

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Baishampayan Ghose
On Thu, Nov 24, 2011 at 9:23 PM, David Nolen wrote: >  "/path/to/repl/script/browser-repl" > NOT >  "/path/to/repl/script/repljs" > I just tried browser-repl and it works just fine for me. What do you mean by > "hangs"? Do you see the REPL prompt? It's hanging for me as well right now. When I sta

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread David Nolen
"/path/to/repl/script/browser-repl" NOT "/path/to/repl/script/repljs" I just tried browser-repl and it works just fine for me. What do you mean by "hangs"? Do you see the REPL prompt? David On Thu, Nov 24, 2011 at 10:13 AM, Wilkes Joiner wrote: > I'm seeing the same behavior. The browser-r

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-11-24 Thread Wilkes Joiner
I'm seeing the same behavior. The browser-repl script works fine from the command line, but it hangs when run in emacs. Were you able to resolve this? Mine was working fine, but quit working a few weeks ago. I'm not sure what changed. - Wilkes -- You received this message because you are

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-27 Thread Volker Schlecht
s/repl/repljs/ -- 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

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-27 Thread Volker Schlecht
Hi Paul, sorry, I was blindly assuming you were starting a browser repl without hooking it up with a browser :) Reversing your posts, that becomes clear ... What happens when you do the following M-x set-variable enter: inferior-lisp-program enter: "/path/to/repl/script" M-x inferior-lisp ?

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-27 Thread Paul Koerbitz
Hi Volker, not sure I understand you correctly. You should still be able to type into the repl and get results, even if it is 'in-browser', right? At least that works for me if I start the browser repl on the command line. So it should also work in Emacs, I am pretty sure its something weird with

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-26 Thread Volker Schlecht
The example given in the wiki uses an in-browser repl. If you want to work with the "regular" rhino-repl, replace (require '[cljs.repl.browser :as browser]) with (require '[cljs.repl.rhino :as rhino]) And you should be all set. On Sep 26, 4:28 pm, Paul Koerbitz wrote: > Hi David! > > thanks f

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-26 Thread Paul Koerbitz
Hi David! thanks for the fast reply and this solution. I haven't gotten it to work yet, but this is more than likely due to me not really understanding how to put all the moving parts together. Here is what I did: Put your code into 'browser-repl'. Now if I execute this on the command line I ge

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-26 Thread Paul Koerbitz
Hi David, everyone, oops, my bad, sending forms to the *inferior-lisp* buffer actually works with C-c C-e. I just can't type anything in directly but I assume that is due to my Emacs setup (as a die-hard vim user I am using viper and that sometimes makes things behave a little weird). Thanks again

Re: ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-26 Thread David Nolen
I've created the following wiki - https://github.com/clojure/clojurescript/wiki/Emacs-&-inferior-lisp-mode Let me know if this needs more clarification. David On Mon, Sep 26, 2011 at 9:15 AM, Paul Koerbitz wrote: > Dear Clojurians, > > I was toying with Clojurescript and really like using the R

ClojureScript Repl -- Swank-like workflow with Emacs?

2011-09-26 Thread Paul Koerbitz
Dear Clojurians, I was toying with Clojurescript and really like using the Repl as described here https://github.com/clojure/clojurescript/wiki to try things out. (thanks for all the great to everyone involved!!) Has anyone hooked this into Emacs in a Swank-like fashion? I would love to be able t