Re: Using the correct cider connection

Paul Landes <[email protected]> Mon, 7 Dec 2015 14:45:50 -0600
Newsgroups gmane.emacs.jdee.devel
Message-ID <[email protected]>
--===============7741328758938229300==
Content-Type: multipart/alternative;
	boundary=Apple-Mail-15604651-BF25-4F14-A696-386072B66154
Content-Transfer-Encoding: 7bit


--Apple-Mail-15604651-BF25-4F14-A696-386072B66154
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable

How about binding default-directory explicitly?   (let ((default-directory..=
.

> On Dec 7, 2015, at 11:51 AM, Troy Daniels <[email protected]> wr=
ote:
>=20
> I am starting multiple cider instances.  The problem is that cider thinks t=
hat the wrong one is the one it should use.
>=20
> Troy
>=20
>> 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 direc=
tory and then since it uses that to set up the classpath.
>>=20
>> 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.
>>=20
>>=20
>> On Dec 6, 2015, at 7:36 PM, Troy Daniels <[email protected]> wr=
ote:
>>=20
>> > I have made some progress on using cider to get values for JDEE.  At th=
e moment, I am running into a problem when I have a directory structures lik=
e 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-connection=
s 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 u=
ses 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.  D=
oes 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 multipl=
e OSs.
>> > http://pubads.g.doubleclick.net/gampad/clk?id=3D254741911&iu=3D/4140___=
____________________________________________
>> > jdee-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/jdee-devel
>=20

--Apple-Mail-15604651-BF25-4F14-A696-386072B66154
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div></div><div>How about binding default-d=
irectory explicitly? &nbsp; (let ((default-directory...</div><div><br>On Dec=
 7, 2015, at 11:51 AM, Troy Daniels &lt;<a href=3D"mailto:udalrich.schermer@=
gmail.com">[email protected]</a>&gt; wrote:<br><br></div><blockquo=
te type=3D"cite"><div><div dir=3D"ltr">I am starting multiple cider instance=
s.&nbsp; The problem is that cider thinks that the wrong one is the one it s=
hould use.<div><br></div><div>Troy</div></div><div class=3D"gmail_extra"><br=
><div class=3D"gmail_quote">On Mon, Dec 7, 2015 at 10:07 AM, Paul Landes <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">lan=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not=
 sure you can do this.&nbsp; The way I use cider (default) is start in a dir=
ectory that 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 ba=
sed on a different dependency set in the poms you'd have to restart.<br>
<div><div class=3D"h5"><br>
<br>
On Dec 6, 2015, at 7:36 PM, Troy Daniels &lt;<a href=3D"mailto:udalrich.sche=
[email protected]">[email protected]</a>&gt; wrote:<br>
<br>
&gt; I have made some progress on using cider to get values for JDEE.&nbsp; A=
t the moment, I am running into a problem when I have a directory structures=
 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-connection=
s lists the last one that I started first.&nbsp; So if I start the nrepl for=
 prj1, then root, then prj2 and call cider from prj1, I get a timeout becaus=
e 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 "use the nrepl=
 associated with this directory", but I am not sure what that function is.&n=
bsp; 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 for=
 multiple OSs.<br>
&gt; <a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D254741911&am=
p;iu=3D/4140_______________________________________________" rel=3D"noreferr=
er" target=3D"_blank">http://pubads.g.doubleclick.net/gampad/clk?id=3D254741=
911&amp;iu=3D/4140_______________________________________________</a><br>
&gt; jdee-devel mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]=
urceforge.net</a><br>
&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/jdee-devel" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listin=
fo/jdee-devel</a><br>
<br>
</blockquote></div><br></div>
</div></blockquote></body></html>=

--Apple-Mail-15604651-BF25-4F14-A696-386072B66154--


--===============7741328758938229300==
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
--===============7741328758938229300==
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

--===============7741328758938229300==--