bbatsov / helm-projectile

Helm UI for Projectile
329 stars 71 forks source link

Projectile Files out of sync when switching between projects #88

Closed rymndhng closed 7 years ago

rymndhng commented 7 years ago

Expected behavior

When switching projects and then immediately invoking projectile-find-files, I expect the "projectile files" buffer to be up to date.

Actual behavior

I see "projectile files" from the previous project. I need to re-run helm-projectile-find-file in order to find the updated files.

Steps to reproduce the problem

  1. Open the directory of one project project and run helm-projectile-find-file
  2. Go to another project and run helm-projectile-find-file.
  3. Look at the Projectile Files list in helm and see files from previous project.

Backtraces if necessary (M-x toggle-debug-on-error)

Environment & version information

asok commented 7 years ago

@rymndhng do you have projectile-rails-global-mode enabled?

KMontag42 commented 7 years ago

I am seeing this same error across Ubuntu 17.10, 16.04, and OS X 10.11

With both Emacs 25.3.1 and 27.0.50

rymndhng commented 7 years ago

@asok I do have it enabled (using spacemacs)

I worked around this by re-binding my keys (M-m p f) to projectile-find-file instead of helm-projectile-find-file

asok commented 7 years ago

@rymndhng I've pushed a change. If you do use unstable melpa please update projectile-rails and let me know if it helped.

KMontag42 commented 7 years ago

I am not using projectile-rails and am seeing this behavior when switching between projects.

Using projectile-find-file works for me, but not when doing helm-persp-switch-project. When using the latter command, it does not properly change the project files until I hit Esc and run projectile-find-file

The same also happens when using helm-projectile-switch-project

rymndhng commented 7 years ago

@asok I tried the latest projectile-rails. It seems to have fixed the problem 👍

KMontag42 commented 7 years ago

I reinstalled my emacs packages and it worked! Thanks so much for your fix!

rymndhng commented 7 years ago

I'm going to mark this as closed since updating projectile-rails fixes this issue.