Re: Using the correct cider connection
[email protected] (Phillip Lord) Fri, 11 Dec 2015 13:16:48 +0000
| Newsgroups | gmane.emacs.jdee.devel |
|---|---|
| Message-ID | <[email protected]> |
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? ------------------------------------------------------------------------------