i checked script file and problem with this function and in this var
temp__3971__auto____6287 = 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_evaluator(url) {
var temp__3971__auto____6287 =
clojure.browser.net.xpc_connection.call(null);
if(cljs.core.truth_(temp__3971__auto____6287)) {
var repl_connection__6288 = temp__3971__auto____6287;
var connection__6289 = clojure.browser.net.xhr_connection.call(null);
clojure.browser.event.listen.call(null, connection__6289,
"\ufdd0'success", function(e) {
return clojure.browser.net.transmit.call(null, repl_connection__6288,
"\ufdd0'evaluate-javascript",
e.currentTarget.getResponseText(cljs.core.List.EMPTY))
});
clojure.browser.net.register_service.call(null, repl_connection__6288,
"\ufdd0'send-result", function(data) {
return clojure.browser.repl.send_result.call(null, connection__6289,
url, clojure.browser.repl.wrap_message.call(null, "\ufdd0'result", data))
});
clojure.browser.net.register_service.call(null, repl_connection__6288,
"\ufdd0'print", function(data) {
return clojure.browser.repl.send_print.call(null, url,
clojure.browser.repl.wrap_message.call(null, "\ufdd0'print", data))
});
clojure.browser.net.connect.call(null, repl_connection__6288,
cljs.core.constantly.call(null, null));
return setTimeout(function() {
return clojure.browser.repl.send_result.call(null, connection__6289,
url, clojure.browser.repl.wrap_message.call(null, "\ufdd0'ready", "ready"))
}, 50)
}else {
return alert("No 'xpc' param provided to child iframe.")
}
};
воскресенье, 9 сентября 2012 г., 19:49:22 UTC+4 пользователь 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/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 clojurescript repl
>> then i open http://localhost:9000/repl and get xpc error
>> enter (+ 1 1) in clojurescript repl and it hangs.
>>
>> пятница, 7 сентября 2012 г., 20:19:20 UTC+4 пользователь David Nolen
>> написал:
>>>
>>> On Thu, Sep 6, 2012 at 10:29 AM, goracio <[email protected]> wrote:
>>> > Hi
>>> > I try to follow this guide
>>> > https://github.com/clojure/**clojurescript/wiki/The-REPL-**
>>> and-Evaluation-Environments<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])
>>> > nil
>>> > user=> (require '[cljs.repl.browser :as browser])
>>> > nil
>>> > user=> (def env (browser/repl-env))
>>> > #'user/env
>>> > user=> (repl/repl env)
>>> > "Type: " :cljs/quit " to quit"
>>> > ClojureScript:cljs.user> (+ 1 1)
>>> >
>>> >
>>> > what could be wrong with this ?
>>>
>>> I just tried this with master, it seems to work fine. Sometimes you
>>> need to refresh the browser.
>>>
>>> I'm assuming you are using master and that you have bootstrapped?
>>>
>>> David
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to [email protected]
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> [email protected]
>> 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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en