Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

illegal operation on folder? #162

Open
kevinlearnscoding opened this issue Nov 4, 2024 · 4 comments
Open

illegal operation on folder? #162

kevinlearnscoding opened this issue Nov 4, 2024 · 4 comments
Labels
bug Something isn't working enhancement New feature or request question Further information is requested

Comments

@kevinlearnscoding
Copy link

I accidentally hit "deny" when macOS asked for the security/privacy permissions for Repomix, and now when I run repomix I get this error:
Unexpected error: EISDIR: illegal operation on a directory, open '/users/myUserNameHere'
even if I cd to another directory it won't let me run anything.
I've tried uninstalling, reinstalling, and doing a full tccuntil reset.

@yamadashy
Copy link
Owner

yamadashy commented Nov 6, 2024

Hi @kevinlearnscoding!

You can fix this by updating macOS privacy settings:

  1. Open System Settings > Privacy & Security > Privacy
  2. Select "Full Disk Access" from the left menu
  3. Click the lock icon to unlock (if needed)
  4. Click "+" and add Repomix

Let me know if you still have issues!

I'll update the code to show clear instructions when macOS permissions are denied.

@yamadashy yamadashy added enhancement New feature or request question Further information is requested labels Nov 6, 2024
@kevinlearnscoding
Copy link
Author

Adding it this way has proven difficult.
Since it has no app representation in the Applications folder I'm assuming you want me to add the bin alias.
When I run which repomix I get the usual bin location, (/opt/homebrew/bin/repomix) but navigating to this folder while in the System Settings "Add" window greys out repomix.
Screenshot 2024-11-06 at 12 59 45 PM

@yamadashy yamadashy added the bug Something isn't working label Nov 7, 2024
@yamadashy
Copy link
Owner

@kevinlearnscoding
I apologize for suggesting untested solutions.

I'll try to reproduce this issue on my Mac when I get home and find a proper solution.
Thank you for the detailed report!

@yamadashy
Copy link
Owner

@kevinlearnscoding
After testing several scenarios, I suspect this might be related to your terminal app's permissions rather than repomix itself. Could you try checking the permissions for your terminal app in:

System Settings > Privacy & Security > Files and Folders

Let me know if checking/updating the terminal permissions helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants