Re: Can't start clojurescript browser-connected repl

2012-10-29 Thread vemv
Hi Tim, I followed your recipe and unfortunately it doesn't work - one keeps waiting for the output at the repl. The `foo` namespace seems to be loaded twice. So I modified index.html to load main.js only. This doesn't fix the issue though. Could you please verify this? Thanks - Victor On We

Re: Can't start clojurescript browser-connected repl

2012-08-21 Thread Timothy Washington
Hey guys, This is an interesting thread, as I was playing around with Clojurescript. But I also had a hard time setting up a browser-connected repl. I wanted to do this from a raw leiningen2 project. I finally got it working and thought I would put this up as a reference to anyone wanting to do th

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
David, I have just tried hosting index.html, main.js and out/ under tomcat7/webapps/my/ directory, executed the cljs repl, navigated to localhost:8080/my/index.html, and it worked! Thanks, that was very helpful! Dmitry P.S. I think, the note about hosting index.html on some kind of webserver

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread David Nolen
Loading the file directly in your browser will not work. The Closure transport we use does not support that anymore. David On Tue, May 22, 2012 at 10:40 AM, D.Bushenko wrote: > Hey guys, > > Something is going totally wrong in the project samples/repl. This is OK > that navigating to localhost:

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
Hey guys, Something is going totally wrong in the project samples/repl. This is OK that navigating to localhost:9000 wakes up the repl. But there is a file index.html which loads the compiled src/repl/test.cljs. As the test.cljs file contains the code (repl/connect "http://localhost:9000/repl"

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread David Nolen
The README.md was up-to-date. test.cljs is now also up-to-date in master. On Tue, May 22, 2012 at 10:26 AM, Raju Bitter wrote: > Ok, you mean if you open the HTML page from disk, the REPL is not > working for you. I can confirm that. > > > There are conflicting instructions in the test.cljs file,

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
Raju, This is great that you have found the problem! But is there a way I can connect a REPL to my web-page? What should I do for that? Do I need to load the page through the request to the web-server? Dmitry вторник, 22 мая 2012 г., 17:26:37 UTC+3 пользователь Raju Bitter написал: > > Ok, you

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Raju Bitter
Ok, you mean if you open the HTML page from disk, the REPL is not working for you. I can confirm that. There are conflicting instructions in the test.cljs file, and in the README.md https://github.com/clojure/clojurescript/blob/master/samples/repl/src/repl/test.cljs " ;; Open the file samples/rep

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
The browser is opened and the test page is loaded (after the repl is started). This is the most weird bcs it should work. At least if I navigate to localhost:9000 it works pretty well. вторник, 22 мая 2012 г., 16:55:06 UTC+3 пользователь Raju Bitter написал: > > Dimitry, > > are you trying to e

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Raju Bitter
Dimitry, are you trying to evaluate the expressinon (+ 1 1) with the browser window closed? That's not going to work! With the browser-connected REPL, the browser JS engine is used to evaluate the JavaScript. If you don't use the browser-connected REPL, ClojureScript will use the embedded Rhino J

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
Raju, That's correct, I'm talking about the project https://github.com/clojure/clojurescript/tree/master/samples/repl . Dmitry вторник, 22 мая 2012 г., 16:51:16 UTC+3 пользователь Raju Bitter написал: > > Pierre-Henry, > > I think you are referring to the ClojureScript One tutorial? > http://

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Raju Bitter
Pierre-Henry, I think you are referring to the ClojureScript One tutorial? http://clojurescriptone.com/getting-started.html The commands listed there will only work with ClojureScript One, not with the ClojureScript examples in Git. Dimitry is trying to get the browser-connected REPL in the Cloju

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
This is the README.md shipped with the clojurescript/samples/repl project. I also tried the steps from the comments to the clojurescript/samples/repl/src/repl/test.cljs -- the same result. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread David Nolen
Which README.md? Might have missed updating one. Thanks On Tuesday, May 22, 2012, Дмитрий Бушенко wrote: > No, I didn't try that since it wasn't in the README.md file. I thought the > steps described in the readme should be sufficient to run the repl, isn't > it? > > 2012/5/22 Pierre-Henry Perre

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
No, it doesn't. That's why I'm here looking for help. -- 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 pos

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Pierre Henry Perret
Right, just follow that, it should work. -- Pierre 2012/5/22 Дмитрий Бушенко > No, I didn't try that since it wasn't in the README.md file. I thought the > steps described in the readme should be sufficient to run the repl, isn't > it? > > > 2012/5/22 Pierre-Henry Perret > >> Hoops -> Ha

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Дмитрий Бушенко
No, I didn't try that since it wasn't in the README.md file. I thought the steps described in the readme should be sufficient to run the repl, isn't it? 2012/5/22 Pierre-Henry Perret > Hoops -> Have you started the dev server ? repl > (dev-server) ? > > Le mardi 22 mai 2012 10:29:00 UTC+2,

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Pierre-Henry Perret
Hoops -> Have you started the dev server ? repl > (dev-server) ? Le mardi 22 mai 2012 10:29:00 UTC+2, D.Bushenko a écrit : > > I have just tried http://localhost:8080/development as well as > http://localhost:9000/development -- > nothing happens. The se

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Дмитрий Бушенко
I have just tried http://localhost:8080/development as well as http://localhost:9000/development -- nothing happens. The server doesn't respond to the first URI at all, the second URI just doesn't exist. 2012/5/22 Pierre Henry Perret > Hi Dimitry, > > Have yo

Re: Can't start clojurescript browser-connected repl

2012-05-22 Thread Pierre Henry Perret
Hi Dimitry, Have you tried http://localhost:8080/development ? -- Pierre 2012/5/22 D.Bushenko > Hi all, > > I'm trying to run clojurescript repl connected to browser and have failed > in all my attempts. I'm running the "clojurescript/samples/repl" project > provided with the clojurescript

Can't start clojurescript browser-connected repl

2012-05-22 Thread D.Bushenko
Hi all, I'm trying to run clojurescript repl connected to browser and have failed in all my attempts. I'm running the "clojurescript/samples/repl" project provided with the clojurescript distribution. I'm following the README.md step by step and doing the following: dim@tarantoga:~/clojure/clo