Re: Using the correct cider connection
Troy Daniels <[email protected]> Mon, 7 Dec 2015 12:51:27 -0500
| Newsgroups | gmane.emacs.jdee.devel |
|---|---|
| Message-ID | <CALSS3zOEL+rzV4u3WCF8ekFD45vn_9xv1sJetnuO-PVnXzROxQ@mail.gmail.com> |
--===============8146107688865683401== Content-Type: multipart/alternative; boundary=001a11c2ee20c8017605265282d8 --001a11c2ee20c8017605265282d8 Content-Type: text/plain; charset=UTF-8 I am starting multiple cider instances. The problem is that cider thinks that the wrong one is the one it should use. Troy On Mon, Dec 7, 2015 at 10:07 AM, Paul Landes <[email protected]> wrote: > I'm not sure you can do this. The way I use cider (default) is start in a > directory that has a project.clj file in the same directory or parent > directory and then since it uses that to set up the classpath. > > Not sure of the details, but I think it would be the same situation where > based on a different dependency set in the poms you'd have to restart. > > > On Dec 6, 2015, at 7:36 PM, Troy Daniels <[email protected]> > wrote: > > > I have made some progress on using cider to get values for JDEE. At the > moment, I am running into a problem when I have a directory structures like > this > > > > root/ > > -pom.xml > > -prj1/ > > --src/main/java/... > > --pom.xml > > -prj2/ > > --pom.xml > > --src/main/java/... > > > > If I have an nrepl running for all three pom.xml, then cider-connections > lists the last one that I started first. So if I start the nrepl for prj1, > then root, then prj2 and call cider from prj1, I get a timeout because it > uses the nrepl for prj2, even though I am in prj1. > > > > Probably, I just need to call some cider function to say "use the nrepl > associated with this directory", but I am not sure what that function is. > Does anybody know that? > > > > Thanks, > > Troy > > > > > ------------------------------------------------------------------------------ > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > Give your users amazing mobile app experiences with Intel(R) XDK. > > Use one codebase in this all-in-one HTML5 development environment. > > Design, debug & build mobile apps & 2D/3D high-impact games for multiple > OSs. > > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140_______________________________________________ > > jdee-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/jdee-devel > > --001a11c2ee20c8017605265282d8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I am starting multiple cider instances.=C2=A0 The problem = is that cider thinks that the wrong one is the one it should use.<div><br><= /div><div>Troy</div></div><div class=3D"gmail_extra"><br><div class=3D"gmai= l_quote">On Mon, Dec 7, 2015 at 10:07 AM, Paul Landes <span dir=3D"ltr"><= ;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>= ></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0= 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not sure you c= an do this.=C2=A0 The way I use cider (default) is start in a directory tha= t has a project.clj file in the same directory or parent directory and then= since it uses that to set up the classpath.<br> <br> Not sure of the details, but I think it would be the same situation where b= ased on a different dependency set in the poms you'd have to restart.<b= r> <div><div class=3D"h5"><br> <br> On Dec 6, 2015, at 7:36 PM, Troy Daniels <<a href=3D"mailto:udalrich.sch= [email protected]">[email protected]</a>> wrote:<br> <br> > I have made some progress on using cider to get values for JDEE.=C2=A0= At the moment, I am running into a problem when I have a directory structu= res like this<br> ><br> > root/<br> > -pom.xml<br> > -prj1/<br> > --src/main/java/...<br> > --pom.xml<br> > -prj2/<br> > --pom.xml<br> > --src/main/java/...<br> ><br> > If I have an nrepl running for all three pom.xml, then cider-connectio= ns lists the last one that I started first.=C2=A0 So if I start the nrepl f= or prj1, then root, then prj2 and call cider from prj1, I get a timeout bec= ause it uses the nrepl for prj2, even though I am in prj1.<br> ><br> > Probably, I just need to call some cider function to say "use the= nrepl associated with this directory", but I am not sure what that fu= nction is.=C2=A0 Does anybody know that?<br> ><br> > Thanks,<br> > Troy<br> ><br> </div></div>> ----------------------------------------------------------= --------------------<br> > Go from Idea to Many App Stores Faster with Intel(R) XDK<br> > Give your users amazing mobile app experiences with Intel(R) XDK.<br> > Use one codebase in this all-in-one HTML5 development environment.<br> > Design, debug & build mobile apps & 2D/3D high-impact games fo= r multiple OSs.<br> > <a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D254741911&a= mp;iu=3D/4140_______________________________________________" rel=3D"norefe= rrer" target=3D"_blank">http://pubads.g.doubleclick.net/gampad/clk?id=3D254= 741911&iu=3D/4140_______________________________________________</a><br= > > jdee-devel mailing list<br> > <a href=3D"mailto:[email protected]">[email protected]= ourceforge.net</a><br> > <a href=3D"https://lists.sourceforge.net/lists/listinfo/jdee-devel" re= l=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/list= info/jdee-devel</a><br> <br> </blockquote></div><br></div> --001a11c2ee20c8017605265282d8-- --===============8146107688865683401== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 --===============8146107688865683401== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ jdee-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-devel --===============8146107688865683401==--