Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
I solved the problem 1. There was an error in cljs code :) 2. You should open http://localhost:9000 because it opens index.html file and it should be index.html file. As experiment i renamed that to repl.html opened http://localhost:9000/repl.html and got xpc error. So to make things easier i n

Re: Browser as an Evaluation Environment error

2012-09-10 Thread Hubert Iwaniuk
Clue here is file:/// protocol. REPL will not work with mixed protocols, if you go to http://localhost:9000/ it will not refer to file:/// HTH, Hubert. goracio wrote: well manual says Once the REPL has started, you will see the message "Starting server on port 9000". At this point, open the

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
well manual says Once the REPL has started, you will see the message "Starting server on port 9000". At this point, open the html page by going to http://localhost:9000 to complete the connection. Once the page is open and the connection is made, the REPL prompt will be displayed. Any way opene

Re: Browser as an Evaluation Environment error

2012-09-10 Thread Gijs S.
I once ran into this error message when I entered the address "http://localhost:9000/repl"; into the address bar of the browser by mistake. This address should only be used in ClojureScript code. You should open a page in the browser that contains compiled ClojureScript that connects to this

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
i checked script file and problem with this function and in this var temp__3971__auto6287 = clojure.browser.net.xpc_connection.call(null); clojure.browser.net.xpc_connection.call(null) returns null and that's because (new goog.Uri(window.location.href)).getParameterValue("xpc"); returns u

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
i checked script file and problem with this function and in this var temp__3971__auto6287 = clojure.browser.net.xpc_connection.call(null); clojure.browser.net.xpc_connection.call(null) returns null clojure.browser.repl.start_evaluator = function start_evaluator(url) { var temp__3971__auto

Re: Browser as an Evaluation Environment error

2012-09-10 Thread goracio
i checked script file and problem with this function and in this var temp__3971__auto6287 = clojure.browser.net.xpc_connection.call(null); which returns false i guess and then clojure.browser.net.xpc_connection.call(null) returns false. clojure.browser.repl.start_evaluator = function start_

Re: Browser as an Evaluation Environment error

2012-09-09 Thread goracio
i get clojurescript from repo couple of days ago- git clone clojurescript then bootrstraped and it installed clojure and closure libs in lib so all should be new i guess This particular error doesn't tell anything ? i thought it could point to the problem right away. On Sunday, September 9, 2012

Re: Browser as an Evaluation Environment error

2012-09-09 Thread goracio
i get clojurescript from repo couple of days ago- git clone clojurescript then bootrstraped and it installed clojure and closure libs in lib so all should be new i guess This particular error doesn't tell anything ? i thought it could point to the problem right away. On Sunday, September 9, 2012

Browser as an Evaluation Environment error

2012-09-09 Thread David Nolen
Could we get a bit more information about your environment. What release are you using? What version of closure, clojure? Thanks, David On Sunday, September 9, 2012, goracio wrote: > I don't use master - what's this ? > Yes i used bootstrap at the begging. > I added to the path :~/cljcode/clojur

Browser as an Evaluation Environment error

2012-09-09 Thread David Nolen
Could we get a bit more information about your environment. What release are you using? What version of closure, clojure? Thanks, David On Sunday, September 9, 2012, goracio wrote: > I don't use master - what's this ? > Yes i used bootstrap at the begging. > I added to the path :~/cljcode/clojur

Re: Browser as an Evaluation Environment error

2012-09-09 Thread goracio
I don't use master - what's this ? Yes i used bootstrap at the begging. I added to the path :~/cljcode/clojurescript/script and invoke repl in cljcode folder and there are foo.cljs foo.js and index.html files I enter repl with ~/cljcode$ repl then i enter forms as described in manual and i am at

Re: Browser as an Evaluation Environment error

2012-09-07 Thread David Nolen
On Thu, Sep 6, 2012 at 10:29 AM, goracio wrote: > Hi > I try to follow this guide > https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments > and get an error > No 'xpc' param provided to chid iframe > > when loading http://localhost:9000/repl > and my clojurescript repl

Browser as an Evaluation Environment error

2012-09-06 Thread goracio
Hi I try to follow this guide https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments and get an error No 'xpc' param provided to chid iframe when loading http://localhost:9000/repl and my clojurescript repl hangs Clojure 1.4.0 user=> (require '[cljs.repl :as repl])