Re: Using the correct cider connection

Troy Daniels <[email protected]> Sat, 12 Dec 2015 18:43:38 -0500
Newsgroups gmane.emacs.jdee.devel
Message-ID <CALSS3zOLT0=Cuw5ByKSY6H_=YfJQA9Z1NmZPi=2yRoqZcAZ-QQ@mail.gmail.com>
--===============2727419847877547136==
Content-Type: multipart/alternative; boundary=001a113db7b4570d360526bc0299

--001a113db7b4570d360526bc0299
Content-Type: text/plain; charset=UTF-8

In the clojure branch, there is a test java project which had the right
structure.  I'm not sure if I saw the behavior there.

However, I did see that for the method I was calling, I can pass in the
correct cider buffer, and I had that available.  So at least for the
moment, I have solved the problem as it applies to me.

Troy
On Dec 11, 2015 8:16 AM, "Phillip Lord" <[email protected]> wrote:

>
>
>
>
> Troy Daniels <[email protected]> writes:
>
> > 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?
>
>
> It's been a while since I did this, but nrepl.el used to use a
> buffer-local to store the current project directory. And this was used
> to return the correct connection.
>
> I think all of the names have changed now (to cider), and cider has a
> somewhat more advanced system for cycling through different connections.
>
> I'm a bit work spammed at the moment, and don't really have the
> bandwidth to look, in detail. Do you have a test case set up?
>

--001a113db7b4570d360526bc0299
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">In the clojure branch, there is a test java project which ha=
d the right structure.=C2=A0 I&#39;m not sure if I saw the behavior there.<=
/p>
<p dir=3D"ltr">However, I did see that for the method I was calling, I can =
pass in the correct cider buffer, and I had that available.=C2=A0 So at lea=
st for the moment, I have solved the problem as it applies to me.</p>
<p dir=3D"ltr">Troy</p>
<div class=3D"gmail_quote">On Dec 11, 2015 8:16 AM, &quot;Phillip Lord&quot=
; &lt;<a href=3D"mailto:[email protected]">[email protected]=
.uk</a>&gt; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote=
" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><=
br>
<br>
<br>
<br>
Troy Daniels &lt;<a href=3D"mailto:[email protected]">udalrich.sc=
[email protected]</a>&gt; writes:<br>
<br>
&gt; I have made some progress on using cider to get values for JDEE.=C2=A0=
 At the<br>
&gt; moment, I am running into a problem when I have a directory structures=
 like<br>
&gt; 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<br>
&gt; lists the last one that I started first.=C2=A0 So if I start the nrepl=
 for prj1,<br>
&gt; then root, then prj2 and call cider from prj1, I get a timeout because=
 it<br>
&gt; 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<br>
&gt; associated with this directory&quot;, but I am not sure what that func=
tion is.<br>
&gt; Does anybody know that?<br>
<br>
<br>
It&#39;s been a while since I did this, but nrepl.el used to use a<br>
buffer-local to store the current project directory. And this was used<br>
to return the correct connection.<br>
<br>
I think all of the names have changed now (to cider), and cider has a<br>
somewhat more advanced system for cycling through different connections.<br=
>
<br>
I&#39;m a bit work spammed at the moment, and don&#39;t really have the<br>
bandwidth to look, in detail. Do you have a test case set up?<br>
</blockquote></div>

--001a113db7b4570d360526bc0299--


--===============2727419847877547136==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

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

--===============2727419847877547136==--