Re: ClojureScript: Problem getting Browser Repl Env to Work

2011-09-26 Thread David Nolen
I don't this is a bug. ClojureScript requires UTF-8.

David

On Mon, Sep 26, 2011 at 5:03 PM, Volker Schlecht
volker.schle...@gmail.comwrote:

 Got it ... here's what was missing from my index.html:

 meta charset=UTF-8

 If I remove that, browser.repl fails. Can anyone else reproduce /
 confirm this?

 --
 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: Problem getting Browser Repl Env to Work

2011-09-24 Thread Volker Schlecht
Not that I could detect any ... monitoring the traffic from Firebug
shows me a GET request that sends a lot of sensible looking
javascript, then I see a POST to localhost:9000 which gets answered by
the goog.provide for the repl. The only detectable difference I see on
the browser side is that the POST is kept open in the example that
comes with ClojureScript and is directly ended after sending the
goog.provide in my own example.

On Sep 23, 10:06 pm, David Nolen dnolen.li...@gmail.com wrote:
 Are you getting any missing resources errors?

 On Fri, Sep 23, 2011 at 4:03 PM, Volker Schlecht
 volker.schle...@gmail.comwrote:







  No unfortunately not, with neither FF nor Chrome, and using the
  Javascript Debuggers of both ...

  On Sep 21, 10:27 pm, David Nolen dnolen.li...@gmail.com wrote:
   Do you get any JS errors from the browser at the JS console?

   David

   On Wed, Sep 21, 2011 at 4:23 PM, Volker Schlecht
   volker.schle...@gmail.comwrote:

Hi,

no, I've tried it against - essentially - a manual replication of the
built-in sample. But thanks for the hint, because the sample does
work, but so far I haven't figured out the deciding difference ... at
least I have a reference now to compare against.

Thanks!
Volker

On Sep 21, 7:26 pm, David Nolen dnolen.li...@gmail.com wrote:
 Hmm in my experience

 1. Start the Browser REPL
 2. Open your project's main html file (index.html)

 And you're good to go. Sometimes you need to refresh the browser but
that's
 about it as far as I can tell.

 Are you trying this against the built in sample?

 David

 On Tue, Sep 20, 2011 at 4:32 PM, Volker Schlecht
 volker.schle...@gmail.comwrote:

  Hi everybody,

  I'm trying out the new browser repl-environment using both the
  tutorial (
 https://github.com/clojure/clojurescript/wiki/The-REPL-and-
  Evaluation-Environments) but so far am unable to get it to work.

  Using current (as of the writing of this mail) master from github,
  and
  following the Steps in the tutorial:

  1. Starting up the repl works, leads me straight to the repl (i.e.
  allows me to enter an expression). I remember trying a previous
  version of the in-browser repl which worked for me, but in which i
  couldn't enter anything before the browser initiated a connection.
  The
  docs mention a wait for a browser connection being neccesary here
  ...

  2. Setting up the XPC communication works, i.e. I see the initial
  GET
  request receiving sensible-looking javascript, and I see a POST of
  ready being answered by a goog.provide('user').

  3. That's it however - connection closed. Non-surprisingly,
  entering
  any expression only hangs the REPL.

  Using curl as per browser.clj:

  1. Startting REPL works, as above
  2. curl -v -d readyhttp://localhost:9000/respondswith

   HTTP/1.1 200 OK
   Server: ClojureScript REPL
   Content-Type: text/javascript; charset=utf-8
   Content-Length: 26
  
  * Connection #0 to host localhost left intact
  * Closing connection #0
  goog.provide('cljs.user');

  3. Looking not too bad except for the closed connection, so
  entering
  (+ 1 1) hangs the REPL

  4. curl -v -d 2http://127.0.0.1:9000thenrespondswith the
  compiled javascript as far as I can tell:

   HTTP/1.1 200 OK
   Server: ClojureScript REPL
   Content-Type: text/javascript; charset=utf-8
   Content-Length: 61
  
  cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
  * Connection #0 to host localhost left intact
  * Closing connection #0

  To me it seems that something is awry with keeping that connection
  really open on my system.

  I'm on Debian SID and tried with firefox 6 and 7-beta as well as
  with
  google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
  stated above a vanilla copy of current master, freshly
  bootstrapped.

  Reverting to select previous states of ClojureScript (i.e. right
  after
  clojure.browser was merged into master, and right before) yielded
  no
  better results, except that those didn't get me to a REPL prompt at
  all and were stuck at Server started The last and only time I
  had that working was with the clojure.browser branch from some time
  around August 26th.

  What am I doing wrong? Any hints?

  regards,
  Volker

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

Re: ClojureScript: Problem getting Browser Repl Env to Work

2011-09-23 Thread Volker Schlecht
No unfortunately not, with neither FF nor Chrome, and using the
Javascript Debuggers of both ...

On Sep 21, 10:27 pm, David Nolen dnolen.li...@gmail.com wrote:
 Do you get any JS errors from the browser at the JS console?

 David

 On Wed, Sep 21, 2011 at 4:23 PM, Volker Schlecht
 volker.schle...@gmail.comwrote:







  Hi,

  no, I've tried it against - essentially - a manual replication of the
  built-in sample. But thanks for the hint, because the sample does
  work, but so far I haven't figured out the deciding difference ... at
  least I have a reference now to compare against.

  Thanks!
  Volker

  On Sep 21, 7:26 pm, David Nolen dnolen.li...@gmail.com wrote:
   Hmm in my experience

   1. Start the Browser REPL
   2. Open your project's main html file (index.html)

   And you're good to go. Sometimes you need to refresh the browser but
  that's
   about it as far as I can tell.

   Are you trying this against the built in sample?

   David

   On Tue, Sep 20, 2011 at 4:32 PM, Volker Schlecht
   volker.schle...@gmail.comwrote:

Hi everybody,

I'm trying out the new browser repl-environment using both the
tutorial (https://github.com/clojure/clojurescript/wiki/The-REPL-and-
Evaluation-Environments) but so far am unable to get it to work.

Using current (as of the writing of this mail) master from github, and
following the Steps in the tutorial:

1. Starting up the repl works, leads me straight to the repl (i.e.
allows me to enter an expression). I remember trying a previous
version of the in-browser repl which worked for me, but in which i
couldn't enter anything before the browser initiated a connection. The
docs mention a wait for a browser connection being neccesary here ...

2. Setting up the XPC communication works, i.e. I see the initial GET
request receiving sensible-looking javascript, and I see a POST of
ready being answered by a goog.provide('user').

3. That's it however - connection closed. Non-surprisingly, entering
any expression only hangs the REPL.

Using curl as per browser.clj:

1. Startting REPL works, as above
2. curl -v -d readyhttp://localhost:9000/respondswith

 HTTP/1.1 200 OK
 Server: ClojureScript REPL
 Content-Type: text/javascript; charset=utf-8
 Content-Length: 26

* Connection #0 to host localhost left intact
* Closing connection #0
goog.provide('cljs.user');

3. Looking not too bad except for the closed connection, so entering
(+ 1 1) hangs the REPL

4. curl -v -d 2http://127.0.0.1:9000thenresponds with the
compiled javascript as far as I can tell:

 HTTP/1.1 200 OK
 Server: ClojureScript REPL
 Content-Type: text/javascript; charset=utf-8
 Content-Length: 61

cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
* Connection #0 to host localhost left intact
* Closing connection #0

To me it seems that something is awry with keeping that connection
really open on my system.

I'm on Debian SID and tried with firefox 6 and 7-beta as well as with
google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
stated above a vanilla copy of current master, freshly bootstrapped.

Reverting to select previous states of ClojureScript (i.e. right after
clojure.browser was merged into master, and right before) yielded no
better results, except that those didn't get me to a REPL prompt at
all and were stuck at Server started The last and only time I
had that working was with the clojure.browser branch from some time
around August 26th.

What am I doing wrong? Any hints?

regards,
Volker

--
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: Problem getting Browser Repl Env to Work

2011-09-23 Thread David Nolen
Are you getting any missing resources errors?

On Fri, Sep 23, 2011 at 4:03 PM, Volker Schlecht
volker.schle...@gmail.comwrote:

 No unfortunately not, with neither FF nor Chrome, and using the
 Javascript Debuggers of both ...

 On Sep 21, 10:27 pm, David Nolen dnolen.li...@gmail.com wrote:
  Do you get any JS errors from the browser at the JS console?
 
  David
 
  On Wed, Sep 21, 2011 at 4:23 PM, Volker Schlecht
  volker.schle...@gmail.comwrote:
 
 
 
 
 
 
 
   Hi,
 
   no, I've tried it against - essentially - a manual replication of the
   built-in sample. But thanks for the hint, because the sample does
   work, but so far I haven't figured out the deciding difference ... at
   least I have a reference now to compare against.
 
   Thanks!
   Volker
 
   On Sep 21, 7:26 pm, David Nolen dnolen.li...@gmail.com wrote:
Hmm in my experience
 
1. Start the Browser REPL
2. Open your project's main html file (index.html)
 
And you're good to go. Sometimes you need to refresh the browser but
   that's
about it as far as I can tell.
 
Are you trying this against the built in sample?
 
David
 
On Tue, Sep 20, 2011 at 4:32 PM, Volker Schlecht
volker.schle...@gmail.comwrote:
 
 Hi everybody,
 
 I'm trying out the new browser repl-environment using both the
 tutorial (
 https://github.com/clojure/clojurescript/wiki/The-REPL-and-
 Evaluation-Environments) but so far am unable to get it to work.
 
 Using current (as of the writing of this mail) master from github,
 and
 following the Steps in the tutorial:
 
 1. Starting up the repl works, leads me straight to the repl (i.e.
 allows me to enter an expression). I remember trying a previous
 version of the in-browser repl which worked for me, but in which i
 couldn't enter anything before the browser initiated a connection.
 The
 docs mention a wait for a browser connection being neccesary here
 ...
 
 2. Setting up the XPC communication works, i.e. I see the initial
 GET
 request receiving sensible-looking javascript, and I see a POST of
 ready being answered by a goog.provide('user').
 
 3. That's it however - connection closed. Non-surprisingly,
 entering
 any expression only hangs the REPL.
 
 Using curl as per browser.clj:
 
 1. Startting REPL works, as above
 2. curl -v -d readyhttp://localhost:9000/respondswith
 
  HTTP/1.1 200 OK
  Server: ClojureScript REPL
  Content-Type: text/javascript; charset=utf-8
  Content-Length: 26
 
 * Connection #0 to host localhost left intact
 * Closing connection #0
 goog.provide('cljs.user');
 
 3. Looking not too bad except for the closed connection, so
 entering
 (+ 1 1) hangs the REPL
 
 4. curl -v -d 2http://127.0.0.1:9000thenresponds with the
 compiled javascript as far as I can tell:
 
  HTTP/1.1 200 OK
  Server: ClojureScript REPL
  Content-Type: text/javascript; charset=utf-8
  Content-Length: 61
 
 cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
 * Connection #0 to host localhost left intact
 * Closing connection #0
 
 To me it seems that something is awry with keeping that connection
 really open on my system.
 
 I'm on Debian SID and tried with firefox 6 and 7-beta as well as
 with
 google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
 stated above a vanilla copy of current master, freshly
 bootstrapped.
 
 Reverting to select previous states of ClojureScript (i.e. right
 after
 clojure.browser was merged into master, and right before) yielded
 no
 better results, except that those didn't get me to a REPL prompt at
 all and were stuck at Server started The last and only time I
 had that working was with the clojure.browser branch from some time
 around August 26th.
 
 What am I doing wrong? Any hints?
 
 regards,
 Volker
 
 --
 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 

Re: ClojureScript: Problem getting Browser Repl Env to Work

2011-09-21 Thread David Nolen
Hmm in my experience

1. Start the Browser REPL
2. Open your project's main html file (index.html)

And you're good to go. Sometimes you need to refresh the browser but that's
about it as far as I can tell.

Are you trying this against the built in sample?

David

On Tue, Sep 20, 2011 at 4:32 PM, Volker Schlecht
volker.schle...@gmail.comwrote:

 Hi everybody,

 I'm trying out the new browser repl-environment using both the
 tutorial (https://github.com/clojure/clojurescript/wiki/The-REPL-and-
 Evaluation-Environments) but so far am unable to get it to work.

 Using current (as of the writing of this mail) master from github, and
 following the Steps in the tutorial:

 1. Starting up the repl works, leads me straight to the repl (i.e.
 allows me to enter an expression). I remember trying a previous
 version of the in-browser repl which worked for me, but in which i
 couldn't enter anything before the browser initiated a connection. The
 docs mention a wait for a browser connection being neccesary here ...

 2. Setting up the XPC communication works, i.e. I see the initial GET
 request receiving sensible-looking javascript, and I see a POST of
 ready being answered by a goog.provide('user').

 3. That's it however - connection closed. Non-surprisingly, entering
 any expression only hangs the REPL.

 Using curl as per browser.clj:

 1. Startting REPL works, as above
 2. curl -v -d ready http://localhost:9000/ responds with

  HTTP/1.1 200 OK
  Server: ClojureScript REPL
  Content-Type: text/javascript; charset=utf-8
  Content-Length: 26
 
 * Connection #0 to host localhost left intact
 * Closing connection #0
 goog.provide('cljs.user');

 3. Looking not too bad except for the closed connection, so entering
 (+ 1 1) hangs the REPL

 4. curl -v -d 2 http://127.0.0.1:9000 then responds with the
 compiled javascript as far as I can tell:

  HTTP/1.1 200 OK
  Server: ClojureScript REPL
  Content-Type: text/javascript; charset=utf-8
  Content-Length: 61
 
 cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
 * Connection #0 to host localhost left intact
 * Closing connection #0

 To me it seems that something is awry with keeping that connection
 really open on my system.

 I'm on Debian SID and tried with firefox 6 and 7-beta as well as with
 google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
 stated above a vanilla copy of current master, freshly bootstrapped.

 Reverting to select previous states of ClojureScript (i.e. right after
 clojure.browser was merged into master, and right before) yielded no
 better results, except that those didn't get me to a REPL prompt at
 all and were stuck at Server started The last and only time I
 had that working was with the clojure.browser branch from some time
 around August 26th.

 What am I doing wrong? Any hints?

 regards,
 Volker

 --
 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: Problem getting Browser Repl Env to Work

2011-09-21 Thread Volker Schlecht
Hi,

no, I've tried it against - essentially - a manual replication of the
built-in sample. But thanks for the hint, because the sample does
work, but so far I haven't figured out the deciding difference ... at
least I have a reference now to compare against.

Thanks!
Volker

On Sep 21, 7:26 pm, David Nolen dnolen.li...@gmail.com wrote:
 Hmm in my experience

 1. Start the Browser REPL
 2. Open your project's main html file (index.html)

 And you're good to go. Sometimes you need to refresh the browser but that's
 about it as far as I can tell.

 Are you trying this against the built in sample?

 David

 On Tue, Sep 20, 2011 at 4:32 PM, Volker Schlecht
 volker.schle...@gmail.comwrote:







  Hi everybody,

  I'm trying out the new browser repl-environment using both the
  tutorial (https://github.com/clojure/clojurescript/wiki/The-REPL-and-
  Evaluation-Environments) but so far am unable to get it to work.

  Using current (as of the writing of this mail) master from github, and
  following the Steps in the tutorial:

  1. Starting up the repl works, leads me straight to the repl (i.e.
  allows me to enter an expression). I remember trying a previous
  version of the in-browser repl which worked for me, but in which i
  couldn't enter anything before the browser initiated a connection. The
  docs mention a wait for a browser connection being neccesary here ...

  2. Setting up the XPC communication works, i.e. I see the initial GET
  request receiving sensible-looking javascript, and I see a POST of
  ready being answered by a goog.provide('user').

  3. That's it however - connection closed. Non-surprisingly, entering
  any expression only hangs the REPL.

  Using curl as per browser.clj:

  1. Startting REPL works, as above
  2. curl -v -d readyhttp://localhost:9000/responds with

   HTTP/1.1 200 OK
   Server: ClojureScript REPL
   Content-Type: text/javascript; charset=utf-8
   Content-Length: 26
  
  * Connection #0 to host localhost left intact
  * Closing connection #0
  goog.provide('cljs.user');

  3. Looking not too bad except for the closed connection, so entering
  (+ 1 1) hangs the REPL

  4. curl -v -d 2http://127.0.0.1:9000then responds with the
  compiled javascript as far as I can tell:

   HTTP/1.1 200 OK
   Server: ClojureScript REPL
   Content-Type: text/javascript; charset=utf-8
   Content-Length: 61
  
  cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
  * Connection #0 to host localhost left intact
  * Closing connection #0

  To me it seems that something is awry with keeping that connection
  really open on my system.

  I'm on Debian SID and tried with firefox 6 and 7-beta as well as with
  google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
  stated above a vanilla copy of current master, freshly bootstrapped.

  Reverting to select previous states of ClojureScript (i.e. right after
  clojure.browser was merged into master, and right before) yielded no
  better results, except that those didn't get me to a REPL prompt at
  all and were stuck at Server started The last and only time I
  had that working was with the clojure.browser branch from some time
  around August 26th.

  What am I doing wrong? Any hints?

  regards,
  Volker

  --
  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: Problem getting Browser Repl Env to Work

2011-09-21 Thread David Nolen
Do you get any JS errors from the browser at the JS console?

David

On Wed, Sep 21, 2011 at 4:23 PM, Volker Schlecht
volker.schle...@gmail.comwrote:

 Hi,

 no, I've tried it against - essentially - a manual replication of the
 built-in sample. But thanks for the hint, because the sample does
 work, but so far I haven't figured out the deciding difference ... at
 least I have a reference now to compare against.

 Thanks!
 Volker

 On Sep 21, 7:26 pm, David Nolen dnolen.li...@gmail.com wrote:
  Hmm in my experience
 
  1. Start the Browser REPL
  2. Open your project's main html file (index.html)
 
  And you're good to go. Sometimes you need to refresh the browser but
 that's
  about it as far as I can tell.
 
  Are you trying this against the built in sample?
 
  David
 
  On Tue, Sep 20, 2011 at 4:32 PM, Volker Schlecht
  volker.schle...@gmail.comwrote:
 
 
 
 
 
 
 
   Hi everybody,
 
   I'm trying out the new browser repl-environment using both the
   tutorial (https://github.com/clojure/clojurescript/wiki/The-REPL-and-
   Evaluation-Environments) but so far am unable to get it to work.
 
   Using current (as of the writing of this mail) master from github, and
   following the Steps in the tutorial:
 
   1. Starting up the repl works, leads me straight to the repl (i.e.
   allows me to enter an expression). I remember trying a previous
   version of the in-browser repl which worked for me, but in which i
   couldn't enter anything before the browser initiated a connection. The
   docs mention a wait for a browser connection being neccesary here ...
 
   2. Setting up the XPC communication works, i.e. I see the initial GET
   request receiving sensible-looking javascript, and I see a POST of
   ready being answered by a goog.provide('user').
 
   3. That's it however - connection closed. Non-surprisingly, entering
   any expression only hangs the REPL.
 
   Using curl as per browser.clj:
 
   1. Startting REPL works, as above
   2. curl -v -d readyhttp://localhost:9000/responds with
 
HTTP/1.1 200 OK
Server: ClojureScript REPL
Content-Type: text/javascript; charset=utf-8
Content-Length: 26
   
   * Connection #0 to host localhost left intact
   * Closing connection #0
   goog.provide('cljs.user');
 
   3. Looking not too bad except for the closed connection, so entering
   (+ 1 1) hangs the REPL
 
   4. curl -v -d 2http://127.0.0.1:9000then responds with the
   compiled javascript as far as I can tell:
 
HTTP/1.1 200 OK
Server: ClojureScript REPL
Content-Type: text/javascript; charset=utf-8
Content-Length: 61
   
   cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
   * Connection #0 to host localhost left intact
   * Closing connection #0
 
   To me it seems that something is awry with keeping that connection
   really open on my system.
 
   I'm on Debian SID and tried with firefox 6 and 7-beta as well as with
   google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
   stated above a vanilla copy of current master, freshly bootstrapped.
 
   Reverting to select previous states of ClojureScript (i.e. right after
   clojure.browser was merged into master, and right before) yielded no
   better results, except that those didn't get me to a REPL prompt at
   all and were stuck at Server started The last and only time I
   had that working was with the clojure.browser branch from some time
   around August 26th.
 
   What am I doing wrong? Any hints?
 
   regards,
   Volker
 
   --
   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

ClojureScript: Problem getting Browser Repl Env to Work

2011-09-20 Thread Volker Schlecht
Hi everybody,

I'm trying out the new browser repl-environment using both the
tutorial (https://github.com/clojure/clojurescript/wiki/The-REPL-and-
Evaluation-Environments) but so far am unable to get it to work.

Using current (as of the writing of this mail) master from github, and
following the Steps in the tutorial:

1. Starting up the repl works, leads me straight to the repl (i.e.
allows me to enter an expression). I remember trying a previous
version of the in-browser repl which worked for me, but in which i
couldn't enter anything before the browser initiated a connection. The
docs mention a wait for a browser connection being neccesary here ...

2. Setting up the XPC communication works, i.e. I see the initial GET
request receiving sensible-looking javascript, and I see a POST of
ready being answered by a goog.provide('user').

3. That's it however - connection closed. Non-surprisingly, entering
any expression only hangs the REPL.

Using curl as per browser.clj:

1. Startting REPL works, as above
2. curl -v -d ready http://localhost:9000/ responds with

 HTTP/1.1 200 OK
 Server: ClojureScript REPL
 Content-Type: text/javascript; charset=utf-8
 Content-Length: 26

* Connection #0 to host localhost left intact
* Closing connection #0
goog.provide('cljs.user');

3. Looking not too bad except for the closed connection, so entering
(+ 1 1) hangs the REPL

4. curl -v -d 2 http://127.0.0.1:9000 then responds with the
compiled javascript as far as I can tell:

 HTTP/1.1 200 OK
 Server: ClojureScript REPL
 Content-Type: text/javascript; charset=utf-8
 Content-Length: 61

cljs.core.pr_str.call(null,cljs.core._PLUS_.call(null,1,1));
* Connection #0 to host localhost left intact
* Closing connection #0

To me it seems that something is awry with keeping that connection
really open on my system.

I'm on Debian SID and tried with firefox 6 and 7-beta as well as with
google-chrome. JDK is Oracle Java 1,6.0_26-b03, ClojureScript is as
stated above a vanilla copy of current master, freshly bootstrapped.

Reverting to select previous states of ClojureScript (i.e. right after
clojure.browser was merged into master, and right before) yielded no
better results, except that those didn't get me to a REPL prompt at
all and were stuck at Server started The last and only time I
had that working was with the clojure.browser branch from some time
around August 26th.

What am I doing wrong? Any hints?

regards,
Volker

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