-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
projectile-switch-project does not show known projects outside search path #1927
Comments
Is this something you can reproduce without Helm? I'm asking mostly because I haven't made changes to the project tracking logic recently, and it seems to work fine for me. |
Yes, if helm is disabled I get the same results. |
Hmm. The tracking is done by this function, which is triggered by (defun projectile-track-known-projects-find-file-hook ()
"Function for caching projects with `find-file-hook'."
(when (and projectile-track-known-projects-automatically (projectile-project-p))
(projectile-add-known-project (projectile-project-root)))) I'd suggested adding a breakpoint or a bit of logging in it to see if it's properly triggered for you. |
Thanks to some article on Emacs Redux I could setup a debug on this function. By switching to a project I indeed go into debug and successfully add project as known to projectile. However if I try to switch to
And |
Seems like some NPE, but it's hard to tell from where exactly. When I'm playing locally with dummy git projects everything works just fine. I'll add a bit of extra logging to help with the debugging this, but in the mean time you can tweak your code locally to print debug messages with |
I enabled debug on error and now get this:
|
That's because of Helm inserting font-locked strings in the bookmarks file for some reason. See bbatsov/helm-projectile#185 and the related fix. |
Is this only helm thing? I do not use helm and still I observe this behavior. I think it started after I upgraded to latest release. |
@gnufied The bookmark's file corruption is Helm-specific for sure. I'm not sure if you're referring to this or to the tracking of known projects not working properly for you. |
Here is my projectile config:
I used to switch to my project at
~/.emacs.d
a lot withC-c p p
, but now this project never shows up.I can only see projects that are in
~/ws
and~/ws-private
directories.However projects in sub-folders of those (e.g.
~/ws/subfolder/some-project
) also never show up.My projectile version installed from MELPA:
The text was updated successfully, but these errors were encountered: