Since today, Godot is very annoying and weird. It shows some scripts as [scene name].tscn::GDScript_[some ID] in the script list, and the cogwheel before the name is not filled as usual. Show in file system also hightlights the scene, not the script.
This is only started today with a new project but it is persistent for all new projects now, not matter how many new projects/scenes/scripts I create. The old projects are not affected, though, as far as I can tell.
I have deleted the cache in the project folder and godot’s cache for the project a few dozen times by now but to no avail. What is going on?
Your script is embedded, somehow it has been made unique, maybe you accidentally clicked the chain icon beside the script resource in the Inspector. You should replace the built-in script with the one from your filesystem.
Where exactly is the chain icon supposed to be? I know I didn’t click it but I might as well check.
I did the same steps as usual, select a node, attach script, (no built-in script), create.
It just randomly fixes itself for a few minutes sometimes and then breaks again whenever it wants. Godot has some quirks but I don’t think I encountered something like this before.
It just happened again, is there any more cache that I can delete?
It was gone after reloading it from the project list this time but who knows how it is gonna be next time…
The last time, I had tried deleting the .godot folder, the godot cache, the app userdata, and the shader cache.
If anything I’d imagine deleting caches could induce it. I think I’d basically have to watch over your shoulder to understand how it happens. Avoid editing or moving files with your file explorer, instead use Godot’s FileSystem panel in the editor.