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

> 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

Reply via email to