bbatsov / projectile

Project Interaction Library for Emacs
https://docs.projectile.mx
GNU General Public License v3.0
3.99k stars 584 forks source link

Can't open file because projectile-index-directory stops when encountering directory where it has no permissions #1873

Open steinarb opened 8 months ago

steinarb commented 8 months ago

Expected behavior

That I can use 'C-p p f' to open a git-versioned file in my home directory on Windows.

Actual behavior

The 'C-p p f'' command starts projectile-index-directory, which stops with the following error message:

projectile-index-directory: Opening directory: Permission denied, c:/Users/sbang/AndrMask

Steps to reproduce the problem

I'm guessing it is enough to (on windows) to add a directory to a project and remove the user's access to that directory and then try to open a file in the project with 'C-p p f'.

I can't even see the AndrMask directory in windows explorer so I can't tell what ownership and/or access rights it has.

Environment & Version information

Projectile version information

Projectile 2.8.0

Emacs version

GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31

Operating system

Windows 11 Enterprise version 22H2 build 22621.2861