Fork me on GitHub
#cider
<
2015-12-11
>
ska11:12:12

Hi. I just upgraded to cider 0.10.0 and after cider-connect it now asks if I want to associate with a local project. Can you please point me to the documentation what this means? I did not find anything in the cider docs.

ska12:12:11

@robert-stuttaford: will do. Still, it would be nice to get an explanation of the concept "association with project" somewhere. simple_smile

malabarba13:12:41

@ska I see that could be better explained. When you start multiple connections, associating each one with a project helps cider figure out which connection should be automatically used for each project.

malabarba13:12:05

If you only ever use one connection at a time, then it probably won't make a difference to you.

bozhidar13:12:20

at any rate - we should definitely add this to the README

robert-stuttaford13:12:09

i do feel there’s scope to automate this question away for the default case of 1 project 1 connection

robert-stuttaford13:12:52

but i admit that’s a rather lazy, surface understanding of the issue simple_smile

ska13:12:41

IMHO, it should be explained in section https://github.com/clojure-emacs/cider#connect-to-a-running-nrepl-server At least, this was where I looked.

bozhidar13:12:14

we can automate it for sure

bozhidar13:12:27

but there’s the small chance of you opening the connection to one project

bozhidar13:12:35

when you’re working in another one

malabarba14:12:03

Maybe we should just assume that the user is creating the connection from inside the project, save a lotof people some confusion. And say on the command's docstring (and the readme instructions) that the command should be invoked from within the project.

malabarba14:12:29

And then have a custom option to not use that assumption

bozhidar15:12:42

yes, you’re totally right

bozhidar15:12:51

I planned to implement this, but had no time

bozhidar15:12:59

someone can at least file a ticket

bozhidar15:12:03

so we won’t forget it

bozhidar15:12:09

it’s like 10 minutes of work