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">&lt=
;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;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&#39;d have to restart.<b=
r>
<div><div class=3D"h5"><br>
<br>
On Dec 6, 2015, at 7:36 PM, Troy Daniels &lt;<a href=3D"mailto:udalrich.sch=
[email protected]">[email protected]</a>&gt; wrote:<br>
<br>
&gt; 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>
&gt;<br>
&gt; root/<br>
&gt; -pom.xml<br>
&gt; -prj1/<br>
&gt; --src/main/java/...<br>
&gt; --pom.xml<br>
&gt; -prj2/<br>
&gt; --pom.xml<br>
&gt; --src/main/java/...<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Probably, I just need to call some cider function to say &quot;use the=
 nrepl associated with this directory&quot;, but I am not sure what that fu=
nction is.=C2=A0 Does anybody know that?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Troy<br>
&gt;<br>
</div></div>&gt; ----------------------------------------------------------=
--------------------<br>
&gt; Go from Idea to Many App Stores Faster with Intel(R) XDK<br>
&gt; Give your users amazing mobile app experiences with Intel(R) XDK.<br>
&gt; Use one codebase in this all-in-one HTML5 development environment.<br>
&gt; Design, debug &amp; build mobile apps &amp; 2D/3D high-impact games fo=
r multiple OSs.<br>
&gt; <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&amp;iu=3D/4140_______________________________________________</a><br=
>
&gt; jdee-devel mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]=
ourceforge.net</a><br>
&gt; <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==--