Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
steinarb opened this issue Jan 11, 2024 · 2 comments

Comments

@steinarb
Copy link
Contributor

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

Copy link

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!

@bbatsov
Copy link
Owner

bbatsov commented Feb 3, 2025

This should be fairly easy to fix.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants