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

2011-11-25 Thread Wilkes Joiner
That was it!

I add meta content=text/html;charset=UTF-8 http-equiv=content-type, 
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 - 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

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 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

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 wilkesjoi...@gmail.comwrote:

 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 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


-- 
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

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 dnolen.li...@gmail.com 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 start the inferior lisp,
I get a new buffer called *inferior-lisp* but I see nothing in the
buffer.

I am on Mac OS X Lion.

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

-- 
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


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 to 
localhost:9000, and evaluating an expression functions as expected.

-- 
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

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 wilkesjoi...@gmail.com 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 browser-repl from the command line, I see a series of request to
 localhost:9000, and evaluating an expression functions as expected.

It works now for me. I tried killing and restarting the browser repl
in emacs and I finally saw the prompt.

If evaluation inside emacs is not working, then try refreshing the
index.html page.

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

-- 
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


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 b.gh...@gmail.comwrote:

 On Thu, Nov 24, 2011 at 10:15 PM, Wilkes Joiner wilkesjoi...@gmail.com
 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 browser-repl from the command line, I see a series of request to
  localhost:9000, and evaluating an expression functions as expected.

 It works now for me. I tried killing and restarting the browser repl
 in emacs and I finally saw the prompt.

 If evaluation inside emacs is not working, then try refreshing the
 index.html page.

 Regards,
 BG


Yes, browser-repl takes a while to warm up. Something to improve. If you
ever see it hang, just refresh your browser and you browser-repl should
become responsive again.

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

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 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

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 wilkesjoi...@gmail.comwrote:

 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 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


-- 
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

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 wilkesjoi...@gmail.com 
 (mailto:wilkesjoi...@gmail.com) 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 issue. 
  
  -- 
  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 
  (mailto: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 
  (mailto:clojure%2bunsubscr...@googlegroups.com)
  For more options, visit this group at
  http://groups.google.com/group/clojure?hl=en
 -- 
 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 
 (mailto: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 
 (mailto:clojure+unsubscr...@googlegroups.com)
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en 

-- 
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

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 dnolen.li...@gmail.com 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 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


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 wilkesjoi...@gmail.comwrote:

 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 wilkesjoi...@gmail.comwrote:

 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 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


  --
 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


  --
 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


-- 
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

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 wilkesjoi...@gmail.comwrote:

 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 wilkesjoi...@gmail.comwrote:

 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 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


  --
 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


  --
 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


-- 
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

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 wrote:

 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 wilkesjoi...@gmail.com 
 (mailto:wilkesjoi...@gmail.com) 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 don't see a prompt?
   
   David
   
   On Thu, Nov 24, 2011 at 12:12 PM, Wilkes Joiner wilkesjoi...@gmail.com 
   (mailto:wilkesjoi...@gmail.com) 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 issue. 

-- 
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 
(mailto: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 
(mailto:clojure%2bunsubscr...@googlegroups.com)
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
   -- 
   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 
   (mailto: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 
   (mailto:clojure+unsubscr...@googlegroups.com)
   For more options, visit this group at
   http://groups.google.com/group/clojure?hl=en 
  
  -- 
  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 
  (mailto: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 
  (mailto:clojure%2bunsubscr...@googlegroups.com)
  For more options, visit this group at
  http://groups.google.com/group/clojure?hl=en
 -- 
 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 
 (mailto: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 
 (mailto:clojure+unsubscr...@googlegroups.com)
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en 

-- 
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

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 wilkesjoi...@gmail.com:
 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 wrote:

 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 wilkesjoi...@gmail.com
 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 don't see a prompt?
 David

 On Thu, Nov 24, 2011 at 12:12 PM, Wilkes Joiner wilkesjoi...@gmail.com
 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 issue.

 --
 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

 --
 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

 --
 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

 --
 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

 --
 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

-- 
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


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 fat...@googlemail.com:
 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 wilkesjoi...@gmail.com:
 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 wrote:

 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 wilkesjoi...@gmail.com
 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 don't see a prompt?
 David

 On Thu, Nov 24, 2011 at 12:12 PM, Wilkes Joiner wilkesjoi...@gmail.com
 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 issue.

 --
 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

 --
 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

 --
 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

 --
 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

 --
 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


-- 
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


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 launch fine, but hangs when I try to evaluate an expression. 
 There are no visible errors in the browser, the repl just sits there 
waiting for evaluation to finish.  This is leading me to think it is a path 
issue of some sort.  I'll dig into that tomorrow.  Off to spend time with 
the family.  

Thanks for all the help.

-- 
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

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 wilkesjoi...@gmail.comwrote:

 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 launch fine, but hangs when I try to evaluate an expression.
  There are no visible errors in the browser, the repl just sits there
 waiting for evaluation to finish.  This is leading me to think it is a path
 issue of some sort.  I'll dig into that tomorrow.  Off to spend time with
 the family.

 Thanks for all the help.

 --
 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


-- 
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

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 my setup.

(Btw. My previous shorter reply should have arrived __after__ the
longer (see timestamps), not sure why google groups is mixing up the
order of my emails)

cheers
Paul

On Sep 26, 11:14 pm, Volker Schlecht volker.schle...@gmail.com
wrote:
 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 paul.koerb...@gmail.com wrote:







  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 get this prompt

  #'user/env
  Type:  :cljs/quit  to quit
  Starting Server on Port: 9000
  ClojureScript:cljs.user

  and when I open up some page with clojure script (e.g.
  samples/repl/index.html) I can execute sutff in the browser such as
  (js/alert hello, world!).

  However, if I run the script as an inferior-lisp process I also get this
  output in the *inferior-lisp* window

  #'user/env
  Type:  :cljs/quit  to quit
  Starting Server on Port: 9000
  ClojureScript:cljs.user

  but I can't connect the browser. the file still loads but if I enter stuff
  in the repl the repl just hangs.

  I am sure I am missing something, right now I just don't see what.

  thanks for the help so far.
  Paul

  On Mon, Sep 26, 2011 at 15:55, David Nolen dnolen.li...@gmail.com wrote:
   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 
   paul.koerb...@gmail.comwrote:

   Dear Clojurians,

   I was toying with Clojurescript and really like using the Repl as
   described herehttps://github.com/clojure/clojurescript/wikitotry
   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 to send forms to C-c C-c or ''compile'' a file with C-c C-k.

   thanks
   Paul

   --
   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

    --
   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

-- 
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


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

?

regards,
Volker
On Sep 27, 9:02 am, Paul Koerbitz paul.koerb...@gmail.com wrote:
 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 my setup.

 (Btw. My previous shorter reply should have arrived __after__ the
 longer (see timestamps), not sure why google groups is mixing up the
 order of my emails)

 cheers
 Paul

 On Sep 26, 11:14 pm, Volker Schlecht volker.schle...@gmail.com
 wrote:







  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 paul.koerb...@gmail.com wrote:

   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 get this prompt

   #'user/env
   Type:  :cljs/quit  to quit
   Starting Server on Port: 9000
   ClojureScript:cljs.user

   and when I open up some page with clojure script (e.g.
   samples/repl/index.html) I can execute sutff in the browser such as
   (js/alert hello, world!).

   However, if I run the script as an inferior-lisp process I also get this
   output in the *inferior-lisp* window

   #'user/env
   Type:  :cljs/quit  to quit
   Starting Server on Port: 9000
   ClojureScript:cljs.user

   but I can't connect the browser. the file still loads but if I enter stuff
   in the repl the repl just hangs.

   I am sure I am missing something, right now I just don't see what.

   thanks for the help so far.
   Paul

   On Mon, Sep 26, 2011 at 15:55, David Nolen dnolen.li...@gmail.com wrote:
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 
paul.koerb...@gmail.comwrote:

Dear Clojurians,

I was toying with Clojurescript and really like using the Repl as
described herehttps://github.com/clojure/clojurescript/wikitotry
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 to send forms to C-c C-c or ''compile'' a file with C-c C-k.

thanks
Paul

--
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

 --
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

-- 
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


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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 to send forms to C-c C-c or ''compile'' a file with C-c C-k.

thanks
Paul

-- 
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

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 paul.koerb...@gmail.comwrote:

 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 to send forms to C-c C-c or ''compile'' a file with C-c C-k.

 thanks
 Paul

 --
 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

-- 
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

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 for your help.

cheers
Paul

On Mon, Sep 26, 2011 at 16:28, Paul Koerbitz paul.koerb...@gmail.comwrote:

 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 get this prompt

 #'user/env
 Type:  :cljs/quit  to quit
 Starting Server on Port: 9000
 ClojureScript:cljs.user

 and when I open up some page with clojure script (e.g.
 samples/repl/index.html) I can execute sutff in the browser such as
 (js/alert hello, world!).

 However, if I run the script as an inferior-lisp process I also get this
 output in the *inferior-lisp* window

 #'user/env
 Type:  :cljs/quit  to quit
 Starting Server on Port: 9000
 ClojureScript:cljs.user

 but I can't connect the browser. the file still loads but if I enter stuff
 in the repl the repl just hangs.

 I am sure I am missing something, right now I just don't see what.

 thanks for the help so far.
 Paul


 On Mon, Sep 26, 2011 at 15:55, David Nolen dnolen.li...@gmail.com wrote:

 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 
 paul.koerb...@gmail.comwrote:

 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 to send forms to C-c C-c or ''compile'' a file with C-c C-k.

 thanks
 Paul

 --
 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


  --
 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




-- 
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

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 get this prompt

#'user/env
Type:  :cljs/quit  to quit
Starting Server on Port: 9000
ClojureScript:cljs.user

and when I open up some page with clojure script (e.g.
samples/repl/index.html) I can execute sutff in the browser such as
(js/alert hello, world!).

However, if I run the script as an inferior-lisp process I also get this
output in the *inferior-lisp* window

#'user/env
Type:  :cljs/quit  to quit
Starting Server on Port: 9000
ClojureScript:cljs.user

but I can't connect the browser. the file still loads but if I enter stuff
in the repl the repl just hangs.

I am sure I am missing something, right now I just don't see what.

thanks for the help so far.
Paul

On Mon, Sep 26, 2011 at 15:55, David Nolen dnolen.li...@gmail.com wrote:

 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 paul.koerb...@gmail.comwrote:

 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 to send forms to C-c C-c or ''compile'' a file with C-c C-k.

 thanks
 Paul

 --
 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


  --
 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

-- 
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