-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Racket 8.2 on Mac Monterey Beta - Can't save files #4010
Comments
On Mac, there are settings in the Privacy tab like "Full Disk Access" and "Files and Folders". I wonder if adding DrRacket to the list will fix the problem. |
Unfortunately not. Tried that already. |
Note: FYI, If you open an existing file from the Finder, you can save that file, but any new file fails. |
Here are some relevant from the console when I try to save a document:
|
I've run into this now on two different machines running the beta. I can imagine that quite a few freshman CS majors are going to update their macs in a couple of weeks and be in a real pickle. |
If you exit drracket, run racket, and evaluate these two, then exit racket and start up drracket again, can you save (with an uglier dialog box)?
|
Thanks. That works! |
…c dialogs for save and open on windows and mac os related to racket/racket#4010
…c dialogs for save and open on windows and mac os related to racket/racket#4010 (cherry picked from commit 1e55515)
…d open to the preferences dialog related to racket/racket#4010
I've added a preference to the dialog box so folks can make this switch a bit more simply and I'm optimistic we'll get it included in the release. |
Should we change the default here so that people don't have to look this up and then change a preference? Could we change the default just for the new macOS version? |
There's this that we might use, but I'm not sure how to get the right number for the beta (I don't have it). |
The current beta has NSAppKitVersionNumber as 2109. Anything >= to that should be fine. |
…d open to the preferences dialog related to racket/racket#4010
related to racket/racket#4010 this affects only the release; hopefully we (or apple) will sort the problem out before the next release
@rfindler I also noticed today after upgrading to Monterey that the I'm assuming your patch is to handle all file system dialogs? Also is that the permanent solution or just temporary until someone can investigate what changes need to happen to get native dialogs back? |
The current situation is that a new preference allows you to use racket/gui-based get and put file dialogs (you can find a preference for this in the "General" section of the preferences dialog: "Use platform-specific file dialogs"). The preference's default value used to mean "use the platform's dialogs" but in a recent change it was changed to "use the platform's dialogs, except on a particular beta of monterey and newer, where the racket/gui-based dialogs should be used instead". What this means, however, is that people who started DrRacket on an older version and then update to the newer version need to go manually check this check box in order to avoid this bad behavior. |
Oh, I should say that the current situation described above applies to the release candidate builds, not to the git head build or the snapshot builds. |
I see - thanks for the intel and the fix. I wasn't sure how this worked as I'm new to using Racket. |
Hopefully we'll get it into a better state before the release actually goes out! :) |
I am running the racket version 8.3.0.5 [cs] on a Mac Mini (M1) with Monterey. In the following code: `#lang racket/gui (define frame (instantiate frame% ("Test") (define button (instantiate button% ("Open" frame) (send frame show #t) I get the same error as cwhatley. Strange, but, (get-file "Open") works but (get-file "Open" frame) will not. If it is any help, I get the same errors using askopenfilename() in tkinter (Python 3.10) . |
The latest snapshot includes a change (to be included in v8.3) that avoids that crash: https://www.cs.utah.edu/plt/snapshots/. That workaround is basically what @eddierucker observed: don't create a file dialog with a parent frame. The next snapshot will include a more complex workaround that allows a file dialog to have a parent frame, but it's complicated enough to delay inclusion in a release. |
What version of Racket are you using?
e.g., 8.2 [cs]
What program did you run?
Open DrRacket and create a new file out of the Downloads folder.
Make small change
Try to save
Error message: "The save file operation failed to connect to the open and save panel service."
What should have happened?
The open panel should have opened successfully and allowed me to proceed with saving the file.
If you got an error message, please include it here.
Please include any other relevant details
e.g., the operating system used or how you are running the code.
Mac Monterey Beta 7 on intel (final version releasing soon)
The text was updated successfully, but these errors were encountered: