How to track cause of errors.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By krasnavin

I deleted not needed problem file “character_input.gd”, but another file seeks files I deleted. Any ideas on how to find files seeking deleted file “character_input.gd”?

modules/gdscript/gdscript.cpp:775 - Condition “err” is true. Returned: err
Cannot load source code from file ‘res://SCENES/Cave1/src/input/character_input.gd’.
Failed loading resource: res://SCENES/Cave1/src/input/character_input.gd. Make sure resources have been imported by opening the project in the editor at least once.
res://SCENES/FPS In Cave2/scenes/character/Input.gd:1 - Parse Error: Couldn’t load the base class: res://SCENES/Cave1/src/input/character_input.gd
modules/gdscript/gdscript.cpp:566 - Method failed. Returning: ERR_PARSE_ERROR

Maybe you can find it by using the “orphan” tool from the Tool menu (sorry, the name escapes me at the moment)?

Ertain | 2022-04-13 20:56

:bust_in_silhouette: Reply From: jgodfrey

The way I read that error, your Input.gd class is derived from the (now missing) characterinput.gd script. So, I’d start by looking at Input.gd.

In addition to the above, you can always search your scene files and script files for references to the offending file. On Windows, I’d recommend something like the free Agent Ransack to search everything in your project folder structure. Otherwise, for *nix machines, some form of grep should do.

jgodfrey | 2022-04-13 22:58