josephh
January 24, 2023, 10:21am
4
Ok, I found the original issue:
opened 09:30AM - 24 Oct 22 UTC
closed 10:49PM - 24 Nov 22 UTC
Hi!
I have an issue with Processing
**Description**
I have installed Proces… sing 4.0.1. When I close the program and restart again, it shows me this error message:
![error](https://user-images.githubusercontent.com/46849400/197497193-e0103693-ef5a-43d4-98d0-3120a825803a.png)
I have changed permission for /Documents/Processing/modes folder, allowing to everybody to write and read, but it doesn't work.
After trying different things, I have found a way to make it work:
1. Uninstall Processing.
2. Delete /Documents/Processing folder.
3. Install Processing.
4. Run Processing - it says to me that there is no /Documents/Processing folder, so it's going to create it.
5. While running Processing, I go and change permission allowing to everybody write and read to /Documents/Processing folder. I do the same with every folder that is contained in it.
6. Now, I can close Processing and restarting with no problem.
I have opened this issue as @SableRaf told me. I think that it's a good idea because, if you fix it, some users will not have this problem.
**My Environment**
* Processing version: 4.0.1
* Operating System and OS version: macOS Big Sur
**Possible Solution**
Can't you modify /Processing folder permission when Processing creates them?
Thanks.
From the source code:
/**
* Updates all the flagged Mode and Tool folders.
*/
static private void updateFlagged(Base base, File root) throws Exception {
// https://github.com/processing/processing/issues/6034
if (!root.exists()) return; // folder doesn't exist, nothing to update
if (!root.canRead() || !root.canWrite()) {
// Sometimes macOS users disallow access to the Documents folder,
// then wonder why there's a problem accessing the Documents folder.
// https://github.com/processing/processing4/issues/581
// TODO would like this to be in a more central location, but this is
// where it's triggered most consistently, so it's here for now.
if (Platform.isMacOS()) {
// we're on the EDT here, so it's safe to show the error
Messages.showError("Cannot access sketchbook",
"""
There is a problem with the “permissions” for the sketchbook folder.
Processing needs access to the Documents folder to save your work.
Try the fix SmantikVJ found at the end of the issue and let me know if it works. Or reinstall Processing and allow access to the sketchbook folder. (if it doesn’t work, try to run thetccutil
as root with sudo
?)