godotengine / godotengine/godot
Script editor opens script on crash when using external editor
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
4.2.1.stable
### System information
MacOS and Windows 11
### Issue description
When using an external editor such as VSCode, if the game crashes from debug, Godot will open the script in the Script Editor. This will sometimes cause an issue where if the code is changed in VSCode, Godot will revert it to a previous state when the game is ran again.
### Steps to reproduce
Make a mistake in an external editor and run the game. After the crash, the script will be opened in the internal Godot editor. It is very inconsistent, and I'm not sure how to get it to revert the code to a previous state after a change in the external editor and ran again.
### Minimal reproduction project (MRP)
Any project should work with external editor configured.
Contributor guide
Research direction
No source file, test, or entry point is named in the issue. Start by reproducing the crash with VSCode configured as the external editor on macOS or Windows 11, then trace why the script opens in Godot's internal editor and can be reverted on the next run. Done means the external-editor workflow no longer opens or overwrites the script unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- desktop-dev, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100