bbatsov / helm-projectile

Helm UI for Projectile
327 stars 71 forks source link

One buffer missing when switching to project #175

Open pataquets opened 1 year ago

pataquets commented 1 year ago

Expected behavior

When using helm-projectile from a non-project file, the project list appears. After choosing a project, the Helm list with opened buffers and project files appears. At this point, the non-project file is still open in the only window visible. Then, if a project with two files opened in their respective buffers is selected, the open buffers listing is missing one of the open files, where there should be two listed. Happens also when only one file is open in the project, thus listing no open buffers.

Steps to reproduce the problem

  1. Open two project files in their respective buffers.
  2. Open another, non-project unrelated file in another buffer (e.g. *Messages*).
  3. Run helm-projectile (I run it via its <f6> keybind).
  4. Select the project corresponding to files opened in step 1.
  5. When the helm list presented afterwards with the project buffers and files, only one of the two open files is listed in the Project buffers section.

Note: if the error is not reproduced (which sometimes I experienced while writing these steps), try repeating twice. If files have not been visited before in the current session, first time seems to work OK.

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

N/A

Environment & version information

(I've just updated packages before filing the issue and writing the repro steps)

shaynez commented 9 months ago

as same as switch open project buffer command.