Finding the source of "Error constructing a GDScriptInstance"?

Godot Version

v4.2.1.stable.official [b09f793f5] (linux)

Question

When trying to run a scene, I get the following error in the debug tab:

E 0:00:00:0226   _create_instance: Error constructing a GDScriptInstance.
  <C++ Error>    Method/function failed. Returning: nullptr
  <C++ Source>   modules/gdscript/gdscript.cpp:188 @ _create_instance()

I understand this means that there’s a problem in one of my scripts, but how do I find which script has the problem? Clicking/double clicking the error doesn’t take me to the offending script.

1 Like