-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkouts no longer working #2446
Comments
Looks like I can manually connect the file with cider-connect. |
Automatic linking with checkouts is a bit tricky. One could inspect the path to the project and check if it's in checkouts, but for that to work it should be a symlinked path. So it's a bit brittle. A generic solution which would work for all dependencies is to detect if a namespace is loaded and auto-link regardless of the project. |
There have been so many reports from users that want to eval code from random context into whatever their most recent REPL is that we should probably add an option to allow this. There's at least 1 person complaining about the changes we've made every day. :-) For that particular issue I agree with your second suggestion. |
The current situation is fine, since connecting works. But since in the previous version it worked without the extra connect step, it caused some panic... :) |
Same issue here. The connecting solution break when multiple projects checkouts the same lib. I have to reconnect to different REPL to get thing work. |
You don't need to connect a different repl. Just link to the existing REPL from the checked-out project ( Sorry for not bringing the fix as yet. Got sick last week and September is a busy month in here. |
The lack of explicit support voor checkouts is burning me more than I thought after my previous comment: the problem is that the default repl will always see the maven version of the code by default, and I keep forgetting that changes to the other checkout projects arent visible until I do a repl install or after explicitly loading the code in the repl. So actually the behavior seems to have changed by completely dropping support for checkouts, which was there in the previous version. Is this because you're creating the repl in a different way now? I can imagine that others who depend on the checkouts mechanism are feeling the same pain... |
not to mention of course that I keep forgetting to re-install when switching branches... |
Just for the sake of completeness - there was never any special support for checkouts. We simply weren't associating a project directory with a connection in the previous versions of CIDER, which meant you could eval files outside the project dir into whatever was the current REPL. I think that linking the checkouts dir to a project is a simple workaround for now.
I don't quite get what you mean here. I've never used checkouts before, so I'm not even sure how people are using them most of the time. |
Hi Bozhidar, |
I can't imagine how this can be related to the connection management changes - they simply establish file/buffer contexts for connections (think of this as a map telling CIDER which connection to use for operations related to each file/buffer) and the ability to group connections in a session. Everything else is exactly the same as it was before. |
yeah, sorry about that: there was a typo causing this. Sorry for the confusing remarks today. |
Expected behavior
When switching to a namespace for a code file that's in checkouts, the REPL should go there. Same for evaluating a form in that code file.
Actual behavior
Cider says "no linked CIDER sessions"
Steps to reproduce the problem
Create project with checkouts. Open file from one of the checkouts folders.
Environment & Version information
CIDER version information
Lein/Boot version
Leiningen 2.7.1
Emacs version
25.3.50.2
Operating system
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: