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
insert-directory: Listing directory failed but ‘access-file’ worked #51
Comments
I can't say I've had this issue myself. If you haven't already, could you try adding your Emacs.app to the "Developer Tools" list under System Preferences > Security & Privacy > Privacy? I had almost forgotten I had Emacs listed as a dev tool there cause I added it years ago, so potentially I've not run into this issue myself because of this. |
Sadly I run into the exact same error. At the moment, and for future reference, have tried, without luck:
Best, |
Are you launching Emacs.app by double clicking on it in finder? Or are you launching it via terminal? Is this error related specifically to viewing folders in dired which are backed by iCloud Drive, like Desktop/Documents/etc? or just any/all folders on the whole system? Also the ruby stuff should be irrelevant cause we don't use a Ruby-based launcher script like builds from https://emacsformacosx.com does. |
Thanks for the clarifications! I'm actually glad there is no real need to give Full disk Access to ruby, it feels wrong. Thank you so much for the quick responses @jimeh! |
Giving additional thought to the solution, the problem is within the --group-directories-first option. I imagine it would be interesting to give out a warning for this, instead of the generic, can't access dired, I can access the files. |
Ah, interesting. I assume you're using using If so, does |
Nope, I wasn't using any additional gls package, just the plain old ls. |
Ah, that would do it. macOS' BSD-based built-in Also worth mentioning is that the |
In case it's of any help, here is my personal dired setup to configuring the underlying ls command usage. |
Thanks @jimeh for the detailed responses! Have a great end of the day! |
Hi there!
I have built Emacs from source using your script, concretely one of your "Known good commits".
As is common with MacOS, after Catalina, there is a ton more security involved in folder handling, and for Emacs there is no exception. When trying to access any folder (dired really) using "Emacs.app", emacsclient or emacs commands, I get following error:
insert-directory: Listing directory failed but ‘access-file’ worked
The
emacs --version
command outputs:Following the subsequent resources, I have tried the following:
There is also Chris' post, but the workaround cannot be applied, considering we do not have any binary (besides
Emacs
) in the/Applications/Emacs.app/Contents/MacOS
folder.I would love some comment on this issue. It has surprised my not seeing any active issues on the matter in the repo, does anyone has had trouble with this?
The text was updated successfully, but these errors were encountered: