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 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 opened html page and get these errors in chrome
Failed to load resource
file:///home/bob/cljproj/hello-world/resources/public/deps.js
Uncaught Error: URI file:/robots.txt is invalid for field ppu
repl:1206
<http://localhost:9000/repl?xpc=%7B%22cn%22%3A%22A2ZSJ4Cm9m%22%2C%22tp%22%3Anull%2C%22ppu%22%3A%22file%3A%2Frobots.txt%22%2C%22lpu%22%3A%22http%3A%2F%2Flocalhost%3A9000%2Frobots.txt%22%7D>
and firefox firebug shows this
12:19:50.653
log:CrossPageChannel created: 5f3T9OECHu
12:19:50.656
log:connect() deferred
12:19:50.678
log:peer iframe created (xpcpeerX80r)
12:19:50.679
log:connect()
12:19:50.681
log:Transport created: NativeMessagingTransport
Error: URI file:/robots.txt is invalid for field ppu
http://localhost:9000/repl?xpc=%7B%22cn%22%3A%22Iz3VclBCyY%22%2C%22tp%22%3Anull%2C%22ppu%22%3A%22file%3A%2Frobots.txt%22%2C%22lpu%22%3A%22http%3A%2F%2Flocalhost%3A9000%2Frobots.txt%22%7D
понедельник, 10 сентября 2012 г., 11:58:57 UTC+4 пользователь 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 address. When you follow the
steps at
https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments
<https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments>
you should have a foo.cljs, foo.js and index.html file. Open the
index.html file in your browser to connect the browserrepl.
--
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