-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
C# Selecting an error makes a "Save Resource As" menu appears when running the project #76415
Comments
Does this occur with errors that are caused by a GDScript file in a Mono build? |
C# Only, at least with the test I have done the error in GDScript appear in "Debugger/Stack Trace" while the error in C# appears in "Debugger/Errors" thats where the problem take place. |
I'm unable to reproduce this issue, could you upload a minimal reproduction project? Also, a few questions to try and better understand the issue:
Clicking on the errors in the Debugger's Error panel should open the script in your configured editor. When running the project, Godot saves every open resource (like scenes and scripts). So it's possible that clicking on an error opened an invalid script or the script was deleted afterwards, and then running the project will ask you to save it. |
It does happen in every C# project I have, here is the project I used for the test it's just an empty project with the script that produce the error (4.1 rc2, but it happen in previous versions too). There is nothing else open, only the main scene and the only modified setting is the external editor as Visual Studio Code. Here is a video recreating the error.
I have Visual Studio Code configured as an external editor, expanding the error details and clicking one of those lines does open the editor without any error only clicking on the red text produces the error. |
Godot version
4.0.2
System information
Windows 10
Issue description
If an error in the Debugger/Errors menu caused by a C# script is selected every time the project is executed a "Save Resource As" menu appears.
The only way to stop it for appearing is restarting Godot.
Steps to reproduce
Minimal reproduction project
Example code with error:
The text was updated successfully, but these errors were encountered: