My Script Disappeared

Godot Version

Godot 4.4 Stable

Question

When I opened my editor to work on it today, the code in the scripts were not showing up. The game still runs fine. The only thing I can think of having affected it is yesterday I exported the game, but it was still working fine later last night. I have restarted the editor, the script and my computer, I just cant think of anything else to try. TIA!

Disappeared as in it’s not on the disk, or disappeared in that it’s not on the editor’s quick list?

Hopefully it’s still in the file browser, in which case you should be able to get it displayed in the editor again.

As in the script file still shows up, but when I open it, its empty, all the code I wrote does not show up. I know its still somewhere because the game still runs. I can find it in the file manager, but I have already tried closing and reopening the script from within godot.
I can see the code if I open it with notepad, so I could just copy paste it, but I am worried about that causing further issues.

I wonder if it’s a UUID problem? For safety’s sake, I’d suggest making backups and getting your project into revision control if it isn’t already.

Godot does have a cache, which might have got confused.

Godot also switched to a UUID scheme for tracking files in 4.4, IIRC, and I wonder if something is going on there; it’s probably worth filing a bug.