You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reproduced the problem with helm-projectile ver. 20220820.826, helm ver.20220917.1817, and projectile ver.20220828.1421.
I investigated the issue.
helm-source-projectile-files-list collects candidates under with-helm-current-buffer
projectile-switch-project-by-name in projectile.el change default-directory to the project to switch, and then switches projects (= do helm-projectile in this case) under with-temp-buffer
helm-current-buffer isn't set a temporary buffer, so helm-projectile invoked from projectile-switch-project-by-name doesn't update helm-current-buffer.
As a result, helm-source-projectile-files-list collects candidates in the old directory after second project change.
I'm going to change with-helm-current-buffer to with-temp-buffer + (hack-dir-local-variables-non-file-buffer) in helm-source-projectile-files-list. Are there any problems with this change?
Expected behavior
When
projectile-switch-project-action
ishelm-projectile
,helm-projectile
should show project contents on 2nd and later project changes.Actual behavior
helm-projectile
shows project contents on first project change, but it doesn't update the contents on 2nd and later project changes.Steps to reproduce the problem
When
load-path
is set correctly, doDo
helm-projectile
, change project to "project1", and change project to "project2". "Project files" still shows files in "project1".Environment & version information
helm-projectile
version: 20220820.826helm
version (inhelm-pkg.el
): 20210520.1523projectile
version (M-x projectile-version
): 20210503.738M-x emacs-version
): 27.2The text was updated successfully, but these errors were encountered: