godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.49k stars 19.27k forks source link

Attempt to open script 'XXX' resulted in error 'File not found' #92037

Open CsloudX opened 1 month ago

CsloudX commented 1 month ago

Tested versions

v4.3.dev6.mono.official [89850d553]

System information

Godot v4.3.dev6.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 5GB (NVIDIA; 31.0.15.3623) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)

Issue description

Report follow error but I don't known how to fix it(IMO, delete global_script_class_cache.cfg was not a good idea): image

Steps to reproduce

ADDTION: This issue like https://github.com/godotengine/godot/pull/90186

Minimal reproduction project (MRP)

See the steps.

dalexeev commented 1 month ago

delete global_script_class_cache.cfg was not a good idea

If this is the bug I'm thinking about, then as a workaround you can save each file with class_name, after restarting the editor it should be fixed.

CsloudX commented 1 month ago

delete global_script_class_cache.cfg was not a good idea

If this is the bug I'm thinking about, then as a workaround you can save each file with class_name, after restarting the editor it should be fixed.

I'm restarted the editor many times, the error always here.

Piratux commented 3 weeks ago

Seeing these errors printed as well with 4.2.2 stable. Actions I've done are more or less identical to reproduction steps.