> Note that the browser-connected REPL (at least, when run via > one.sample.repl/go) hoists itself up on top of the REPL you start via Run > > Clojure >Application, and assumes that it's in a console, and therefore > doesn't play well with the ccw REPL, assumes the opposite.
I assume this means the browser repl from cljs-template would not work from ccw either? (I tried it, and I get a continuous stream of EOF errors scrolling by.) Turcio, did you figure anything else out about your configuration of One in ccw? Thanks, Nick. On Feb 20, 7:05 am, Chas Emerick <c...@cemerick.com> wrote: > Yes, I just cloned and started ClojureScript One usingccw. I was able to get > the dev server up and running, and click around in all the tabs without any > exceptions. > > You didn't say whether you did this or not, but in addition to the > directories specified in :extra-classpath-dirs, you need to add the > :source-path, as well as all of the jars in lib/. > > Note that thebrowser-connectedREPL(at least, when run via one.sample.repl/go) > hoists itself up on top of theREPLyou start via Run > Clojure Application, > and assumes that it's in a console, and therefore doesn't play well with > theccwREPL, assumes the opposite. Specifically, thebrowser-connectedREPLuses > stdin, one of the few places where "regular" REPLs outpaceREPLservers like > nREPL (whichccwuses) and swank. For this reason, you can't use > thebrowser-connectedREPLfrom within SLIME either AFAIK. > > That shouldn't stop you from being able to useccwfor editing ClojureScript > files, managing the server side of things in accwREPL, etc. You'd just need > to use lein for thebrowser-connectedREPL. > > Quality support for ClojureScript inccwwould probably require: > > 1. Finishing the leiningen integration (underway now, though we're targeting > Leiningen 2 to start, and perhaps backfilling Leiningen 1.x support depending > on various factors). > 2. One of: adding an "inferior-clojure" mode so that > thebrowser-connectedREPLwill work sanely; or, figuring out how to support > thebrowser-connectedREPLwithin the scope of nREPL; or, something else I've > not thought of in the last 5 minutes. :-) > > Cheers, > > - Chas > > On Feb 19, 2012, at 5:28 PM, turcio wrote: > > > > > > > > > Actually, has anybody succeeded to run ClojureScript One from Eclipse? > > > Daniel > > > On Feb 17, 12:14 pm, turcio <tur...@gmail.com> wrote: > >> Hi, > >> I'm trying to run ClojureScript One usingCCWplugin in Eclipse. I > >> created a new project and imported all the source code into it. Then I > >> added folders to the build path that reflect the following > >> configuration from project.clj: > > >> :git-dependencies [["https://github.com/clojure/clojurescript.git" > >> "886d8dc81812962d30a741d6d05ce9d90975160f"] > >> ["https://github.com/levand/domina.git" > >> "8933b2d12c44832c9bfaecf457a1bc5db251a774"]] > >> :extra-classpath-dirs [".lein-git-deps/clojurescript/src/clj" > >> ".lein-git-deps/clojurescript/src/cljs" > >> ".lein-git-deps/domina/src/cljs" > >> "src/app/cljs" > >> "src/app/cljs-macros" > >> "src/lib/clj" > >> "src/lib/cljs" > >> "templates"] > > >> I also executed "lein bootstrap" and added libraries to the build path > >> in Eclipse. > > >> Now I'm running the app by right clicking on project folder, then Run > >> as->Clojure application. InreplI execute: (in-ns 'one.sample.repl) > >> (dev-server)). Thebrowsershows up the homepage, but when I click on > >> Development tab the exception listed below occurs. Some files > >> ClojureScript fiiles are generated but not all. Also empty "out" > >> directory is created in the root folder. > > >> Any ideas? > > >> Thanks, > >> Daniel > > >> *************************************************************************** > >> ********************************************* > > >> 2012-02-17 12:06:17.393:WARN::/development > >> java.lang.AssertionError: Assert failed: Can't recur here|frame > >> at cljs.compiler$fn__877.invoke(compiler.clj:762) > >> at clojure.lang.MultiFn.invoke(MultiFn.java:177) > >> at cljs.compiler$analyze_seq.invoke(compiler.clj:1033) > >> at cljs.compiler$analyze.invoke(compiler.clj:1086) > >> at cljs.compiler$analyze.invoke(compiler.clj:1079) > >> at cljs.compiler$fn__801.invoke(compiler.clj:606) > >> at clojure.lang.MultiFn.invoke(MultiFn.java:177) > >> at cljs.compiler$analyze_seq.invoke(compiler.clj:1033) > >> at cljs.compiler$analyze.invoke(compiler.clj:1086) > >> at cljs.compiler$analyze.invoke(compiler.clj:1079) > >> at cljs.compiler$parse_invoke$fn__1014.invoke(compiler.clj:979) > >> at clojure.core$map$fn__3811.invoke(core.clj:2432) > >> at clojure.lang.LazySeq.sval(LazySeq.java:42) > >> at clojure.lang.LazySeq.seq(LazySeq.java:60) > >> at clojure.lang.Cons.next(Cons.java:39) > >> at clojure.lang.PersistentVector.create(PersistentVector.java:50) > >> at > >> clojure.lang.LazilyPersistentVector.create(LazilyPersistentVector.java: > >> 31) > >> at clojure.core$vec.invoke(core.clj:345) > >> at cljs.compiler$parse_invoke.invoke(compiler.clj:979) > >> at cljs.compiler$analyze_seq.invoke(compiler.clj:1034) > >> at cljs.compiler$analyze.invoke(compiler.clj:1086) > >> at cljs.compiler$analyze.invoke(compiler.clj:1079) > >> at cljs.compiler$fn__801.invoke(compiler.clj:607) > >> at clojure.lang.MultiFn.invoke(MultiFn.java:177) > >> at cljs.compiler$analyze_seq.invoke(compiler.clj:1033) > >> at cljs.compiler$analyze.invoke(compiler.clj:1086) > >> at cljs.compiler$analyze.invoke(compiler.clj:1079) > >> at cljs.compiler$parse_invoke$fn__1014.invoke(compiler.clj:979) > >> at clojure.core$map$fn__3811.invoke(core.clj:2432) > >> at clojure.lang.LazySeq.sval(LazySeq.java:42) > >> at clojure.lang.LazySeq.seq(LazySeq.java:60) > >> at clojure.lang.RT.seq(RT.java:466) > >> at > >> clojure.lang.LazilyPersistentVector.create(LazilyPersistentVector.java: > >> 31) > >> at clojure.core$vec.invoke(core.clj:345) > >> at cljs.compiler$parse_invoke.invoke(compiler.clj:979) > >> at cljs.compiler$analyze_seq.invoke(compiler.clj:1034) > >> at cljs.compiler$analyze.invoke(compiler.clj:1086) > >> at cljs.compiler$analyze.invoke(compiler.clj:1079) > >> at cljs.compiler$parse_invoke$fn__1014.invoke(compiler.clj:979) > >> at clojure.core$map$fn__3811.invoke(core.clj:2432) > >> at clojure.lang.LazySeq.sval(LazySeq.java:42) > >> at clojure.lang.LazySeq.seq(LazySeq.java:60) > >> at clojure.lang.Cons.next(Cons.java:39) > >> at clojure.lang.PersistentVector.create(PersistentVector.java:50) > >> at > >> clojure.lang.LazilyPersistentVector.create(LazilyPersistentVector.java: > >> 31) > >> at clojure.core$vec.invoke(core.clj:345) > >> at cljs.compiler$parse_invoke.invoke(compiler.clj:979) > >> at cljs.compiler$analyze_seq.invoke(compiler.clj:1034) > >> at cljs.compiler$analyze.invoke(compiler.clj:1086) > >> at cljs.compiler$analyze.invoke(compiler.clj:1079) > >> at cljs.compiler$analyze_file.invoke(compiler.clj:1105) > >> at cljs.compiler$compile_file_STAR_.invoke(compiler.clj:1136) > >> at cljs.compiler$compile_file.invoke(compiler.clj:1184) > >> at cljs.compiler$compile_root.invoke(compiler.clj:1244) > >> at cljs.closure$compile_dir.invoke(closure.clj:304) > >> at cljs.closure$fn__1377.invoke(closure.clj:336) > >> at cljs.closure$fn__1322$G__1317__1329.invoke(closure.clj:215) > >> at cljs.closure$fn__1370.invoke(closure.clj:350) > >> at cljs.closure$fn__1322$G__1317__1329.invoke(closure.clj:215) > >> at cljs.closure$build.invoke(closure.clj:785) > >> at one.reload$watch_cljs$fn__340.invoke(reload.clj:53) > >> at ring.middleware.file$wrap_file$fn__464.invoke(file.clj:29) > >> at one.sample.dev_server$rewrite_design_uris > >> $fn__454.invoke(dev_server.clj:53) > >> at ring.middleware.file_info$wrap_file_info > >> $fn__483.invoke(file_info.clj:40) > >> at one.templates$apply_templates$fn__318.invoke(templates.clj:77) > >> at one.sample.dev_server$js_encoding$fn__448.invoke(dev_server.clj: > >> 41) > >> at ring.middleware.params$wrap_params$fn__504.invoke(params.clj:76) > >> at one.sample.dev_server$set_active_menu > >> $fn__461.invoke(dev_server.clj:75) > >> at ring.middleware.stacktrace$wrap_stacktrace_log > >> $fn__1156.invoke(stacktrace.clj:15) > >> at ring.middleware.stacktrace$wrap_stacktrace_web > >> $fn__1188.invoke(stacktrace.clj:79) > >> at one.reload$reload_clj$fn__353.invoke(reload.clj:76) > >> at clojure.lang.Var.invoke(Var.java:401) > >> at ring.adapter.jetty$proxy_handler$fn__411.invoke(jetty.clj:16) > >> at > >> ring.adapter.jetty.proxy$org.mortbay.jetty.handler.AbstractHandler > >> $0.handle(Unknown Source) > >> at > >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: > >> 152) > >> at org.mortbay.jetty.Server.handle(Server.java:326) > >> at > >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > >> 542) > >> at org.mortbay.jetty.HttpConnection > >> $RequestHandler.headerComplete(HttpConnection.java:926) > >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > >> at org.mortbay.jetty.bio.SocketConnector > >> $Connection.run(SocketConnector.java:228) > >> at org.mortbay.thread.QueuedThreadPool > >> $PoolThread.run(QueuedThreadPool.java:582) > > > -- > > 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