oh my good. sorry about all that work. I'll fix the cljs-start template in a specular way.
Thanks so much for your hard work. Mimmo p.s. we should mark any lein-temaple or lein-plugin with a IDE compliant certificate :-) On Jan 9, 2014, at 9:53 PM, Laurent PETIT <[email protected]> wrote: > Mimmo, Frank, > > To make this work out-of-the box with the current version of CCW, I had to do > the following: > > - move the dev-resources/tools/ directory as a top-level directory under the > project's root > - update profiles.clj accordingly (removing "dev-resources/" 2 times in > :source-paths > - move the :test-paths section of the profiles.clj to project.clj, because I > had the same problem again: leaving project.clj without any :test-paths > specified, leiningen automatically added "test/" as an additional test path, > causing the same nesting problem again. And by thinking about it twice, I > thought it made sense to have the user project's main test folders declared > in project.clj, anyway. > - a minor problem: in project.clj, :source-paths declares "src/clj" but > there's no src/clj folder created by the template. This leads to an error in > CCW, but it's easy to deal with it, so I don't know if you should do > something for this one. > > After that, I had to use the brand new "Leiningen generic task launcher", > because a lein project with so many configurations can only be launched by > leiningen itself, no other tool can emulate it. > > So I did the following: Alt+L L => then type repl :headless so that the popup > looks like : "my-projet $ lein repl :headless" > > => it starts the project with leiningen, and I get the process output in a > console. > > from then on, I can just use the repl port to connect to via Window > Connect > to REPL, and then : > > - type (run) to start the Clojure Ring server > - type (browser-repl) to start the browser repl client (alternatively, I can > open a second REPL view on the same connection so that I have both a clojure > repl and a clojurescript repl) > > This has been an interesting exercise, thanks ! > > > > > 2014/1/9 Laurent PETIT <[email protected]> > Nevermind, I see that they must be separate for some compilation purposes > > > 2014/1/9 Laurent PETIT <[email protected]> > What about directly placing 2 files directly inside dev_resources : > brepl_connect.cljs and ring_server.clj ? And get rid of the 2 additional > :source-paths? > > > 2014/1/9 Mimmo Cosenza <[email protected]> > On Jan 9, 2014, at 8:29 PM, Laurent PETIT <[email protected]> wrote: > >> Well, there are 2 sides to this "problem": >> >> - I am not a big fan of doing this, because it is more complex than it >> needs. I have to think twice: "was there a special reason to nest one >> source-path inside another?" > > the reason was that those are the tools used as resources during development > (something sometimes I do with the dev DB connection). As I said, I can move > them directly in the main directory of the project. I did not do that because > I did not want to dirt the stadnard project directory layout of any lein > project. > >> - Java allows this, and so does Leiningen, so examples like that will pop >> again. Some will be solved if people can join the authors and they agree to >> change things (as you kindly suggested). Sometimes it will not be possible. >> So, as a tools author, I will have to support this, I fear :-). > > sorry about that…. > >> >> For your particular starter, I can try to do the tests locally, to see if >> there are other problems waiting for me around the corner, and once >> everything is okay, I'll report here with all the changes I had to make. > > Ok. Thanks so much > > mimmo > >> >> -- >> Laurent >> >> >> Mimmo >> >>> >>> >>> 2014/1/9 Laurent PETIT <[email protected]> >>> Argh, Mimmo, I cannot make your example work: Eclipse doesn't like the fact >>> that dev-resources/ is a source-path, while at the same time, >>> dev-resources/tools/repl/ and dev-resources/tools/http/ are also >>> source-paths (they are sub-folders of dev-resources/). >>> >>> Is there an easy way around this? >>> >>> >>> 2014/1/9 Laurent PETIT <[email protected]> >>> Thanks, I will give it a try ! >>> >>> >>> 2014/1/9 Mimmo Cosenza <[email protected]> >>> On Jan 9, 2014, at 6:25 PM, Mimmo Cosenza <[email protected]> wrote: >>> >>> I intended >>> >>> …start evaluating in the repl >>> >>> >>>> >>>> start evaluating cljs code in the repo >>>> >>>> >>>> >>>> >>>> On Jan 9, 2014, at 6:02 PM, Laurent PETIT <[email protected]> wrote: >>>> >>>>> Hello, >>>>> >>>>> The current stable ( 0.20.0 ) version of CCW uses nrepl 0.2.1. >>>>> >>>>> I've just updated it to 0.2.3 in the release that is coming out today. >>>>> Maybe that can help? >>>>> >>>>> I'd like to help you, but not doing any ClojureScript development atm, I >>>>> need some guidance to be able to quickly setup something to test without >>>>> having to dig through tons of docs. >>>>> >>>>> If you can help me get started (the Austin README is real huge, what >>>>> portion of it are you referring to? What assumed knowledge should I >>>>> gather first?, etc.) >>>>> >>>>> >>>>> >>>>> >>>>> 2014/1/9 Frank Gerhardt <[email protected]> >>>>> Hi, >>>>> >>>>> I can run the Austin example fine from a shell. When running it from >>>>> Eclipse/CCW I can do everything except the last step, turning the repl >>>>> into a cljs-repl. >>>>> >>>>> This (cemerick.austin.repls/cljs-repl repl-env) gives me >>>>> IllegalStateException Can't change/establish root binding of: >>>>> *cljs-repl-options* with set clojure.lang.Var.set (Var.java:233) >>>>> >>>>> From a shell exactly the same code as cloned from github works. >>>>> >>>>> I noticed that the CCW REPL and the Eclipse Console are both getting >>>>> some output. >>>>> >>>>> This is in the Eclipse Console: >>>>> 2014-01-09 17:03:28.511:INFO:oejs.Server:jetty-7.6.8.v20121106 >>>>> 2014-01-09 17:03:28.556:INFO:oejs.AbstractConnector:Started >>>>> [email protected]:8090 >>>>> Browser-REPL ready @ http://localhost:37583/4/repl/start >>>>> >>>>> And in the CCW REPL I have the usual output like: >>>>> Browser-REPL ready @ http://localhost:37583/4/repl/start >>>>> >>>>> I even saw the cljs-repl prompt in the Eclipse Console. >>>>> >>>>> Has anbody go this working in Eclipse? >>>>> >>>>> Frank >>>>> >>>>> -- >>>>> Note that posts from new members are moderated - please be patient with >>>>> your first post. >>>>> --- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "ClojureScript" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/clojurescript. >>>>> >>>>> >>>>> -- >>>>> Note that posts from new members are moderated - please be patient with >>>>> your first post. >>>>> --- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "ClojureScript" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/clojurescript. >>>> >>> >>> >>> >>> >>> >>> -- >>> Note that posts from new members are moderated - please be patient with >>> your first post. >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "ClojureScript" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/clojurescript. >> >> >> >> -- >> Note that posts from new members are moderated - please be patient with your >> first post. >> --- >> You received this message because you are subscribed to the Google Groups >> "ClojureScript" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/clojurescript. > > > > > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript.
signature.asc
Description: Message signed with OpenPGP using GPGMail
