-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Modified GDScript code gets saved to disk without a prompt #18010
Comments
I do not know the system of the reported issue but I can confirm this on Ubuntu in master and 3.0.2 too. |
I got a similar issue, and I'm able to trigger it by doing this:
Now even if the editor show saving process the file was not saved and it became impossible to save. The only way to make it saving again is Close then Open the editor. |
Maybe script text editor is applying (saving to disk) changes on exit? |
Apparently this is just a feature of the editor and can be enabled/disabled with the interface/editor/save_each_scene_on_quit property. So this isn't a bug and can probably be closed? EDIT: Don't mind that, it still saves with that property disabled :/ |
Still reproducible in the current master branch. |
This one's nasty! Combined with #40199 I think the only way to safely discard bad changes to a script is to forcibly kill the Godot process. |
This is likely due to the script editor remembering script state across sessions. Can someone try to reproduce this on the latest cc @Paulb23 |
I could reproduce it on master branch with the same steps. |
Godot version:
master
branch commit eaa5dfbSteps to reproduce:
I've also noticed that when editing a GDScript that was just saved, it is not getting marked as modified in the editor as soon as you start typing.
Minimal reproduction project:
saved_without_asking.zip
The text was updated successfully, but these errors were encountered: