Deleting a GDScript doesn't detach it
Godot version: 3.2.3
Issue description: In the editor, deleting a GDScript file using the FileSystem panel doesn't remove it from the file in the Scene view.
Steps to reproduce:
- Add any node
- Attach a script to it
- FileSystem panel -> Right click on the script you just created (i.e. Node.gd) -> Delete
- Confirm "Remove".
There is still a script attached to the node in the scene.
Minimal reproduction project: See Repro steps.
Is that reproducible with any kind of resource? (textures, models, styleboxes, materials, shaders, etc) Also I suspect it also doesnt remove it from non-open scenes?
Greetings from Godot 4.3 - four years later and experiencing what appears to be the same bug. Started with a main.gd script attached to the Main node of project and after deciding to change to a MainScript.cs replacement and not finding any way to expunge main.gd attempted deleting it in the FileSystem yet still can't get rid of the file association - instead main node is associated with res://main.tscn::GDScript_2ejnh that contains the content of the former main.gd and am yet to find a way of assigning my cs code.
Select the node and in the inspector, scroll all the way down until you find a small section for the script attached to the node. Select it and click on "Clear" and that should detach it from the node.