projectile icon indicating copy to clipboard operation
projectile copied to clipboard

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

Open steinarb opened this issue 1 year ago • 2 comments

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

steinarb avatar Jan 11 '24 09:01 steinarb

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed soon if no further activity occurs. Thank you for your contribution and understanding!

github-actions[bot] avatar Jan 21 '25 01:01 github-actions[bot]

This should be fairly easy to fix.

bbatsov avatar Feb 03 '25 10:02 bbatsov