-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
project-switch-project stuck in current Clojure project #571
Comments
I can't really test this, as it seems it's something added in Emacs 27 or 28, and I'm still on 26. Not to mention I use only Projectile. 😆 Anyways, I'm assuming it won't be hard to fix.
I guess you can file a separate ticket for this. I assumed this |
I could try my way around this, but I'd probably need an input from @dgutov to understand the inner workings of @bbatsov if you feel this discussion should be taken somewhere else, feel free to close this ticket and I'll see if I can find my way through some Emacs mailing list. |
It's fine to keep the ticket open, but we definitely need more data points, and I don't have much time to investigate anything these days. |
FTR, I sent an email on emacs-devel just to avoid missing the core devs not active on GitHub: https://lists.gnu.org/archive/html/emacs-devel/2020-09/msg01590.html |
The
After swithing to
Maybe Or maybe add the |
Thank you for looking into it. Those "maybes" are what I hope to clear out and understand. :) |
The
I hope this answer you questions on emacs-devel ;) |
Great, thanks. But what is the best approach here, then? You found two possible solutions, but which one is the right thing to do? |
IMO the |
Oh, I did open an MR with your other suggestion though. :) |
That way |
Do you suggest not using |
As a quick workaround for the issue, yes. |
Let me updated the PR then. |
Wait, though. |
Oh, I've misread the |
And there is also the defcustom |
Turns out the PR is not needed at all, because setting @bbatsov it's up to you now. If you think appending |
Note, that this might cripple CIDER in some cases, that's why the caching exists. I'll review this more carefully later on. |
Have you seen the latest version of Commentary? There is no Check it out here: https://elpa.gnu.org/packages/project.html |
CIDER uses project.el? |
Nope, it uses the |
Interesting. If that's the case, than something along the lines of appending |
Can I perhaps suggest to remove the integration with project.el from clojure-mode? As mentioned in the Commentary I linked to above, it probably creates more problems than it solves. And for users who don't employ Git or Hg in their projects, there could be a documented manual way to set up that integration. |
Saw it just now. Looks pretty good.
I was thinking exactly the same thing. The |
That would make my PR obsolete, you evil man! ;) Do you want me to close it? |
Expected behavior
Once in a Clojure project, I am able to use C-x p p (
project-switch-project
) to select a different (non-Clojure) project and move there.Actual behavior
C-x p p and the following f to find a file in another project display the files of the current Clojure project.
Steps to reproduce the problem
From
emacs -Q
, after having installedclojure-mode
:(require 'clojure-mode)
.emacs.d
)init.el
and hit RETdeps.edn
)aassdd
) and hit RET.emacs.d
) and hit RETEnvironment & Version information
clojure-mode version
Probably it's because I am using
straight
but I getclojure-mode (version nil)
when I useclojure-mode-display-version
. In any case, I am on the commit84ed16c * origin/master grafted Mention my ko-fi account
.System information
GNU Emacs 28.0.50
➤ Master branch commit:
92f342f38dd82aae4a662708dd6280fdfb2e013b
D-Bus: keep type information in D-Bus events
➤ Configured with the following options:
--with-harfbuzz
--with-json
--with-mailutils
➤ Running on:
Ubuntu 20.04 LTS
GNOME Shell 3.36.4 (x11)
GTK+ Version 3.24.18, cairo version 1.16.0
The text was updated successfully, but these errors were encountered: