Description
Godot v4.0.4.stable.official [fc0b241c9] / Plugin v.3.0.0
This problem has occurred a couple of times. I deleted a file from inside the Godot Editor. Then the file deletion is listed in Commit/Unstaged Changes in the Inspector. When I attempt to stage the change, the project closes, and cannot be re-opened from the Godot project manager.
After that happens, the only solution I found is to restore the project from a working backup. Maybe the project could be fixed using Git commands outside of Godot, but I couldn't find a way to do that. (I'm a Git novice; a Git expert might have ideas.)
A workaround is instead of staging a file deletion using the plugin, use this Git command outside of the Godot editor:
git rm <file>
Then the deleted file will move from Commit/Unstaged Changes to Commit/Staged Changes, and the change can be committed.
This problem does not always happen when deleting files. I tried to create a minimal reproduction project, but was not successful.