Description
Tested versions
v4.4.1.stable.official [49a5bc7b6]
System information
Windows 10 Education (but probably doesn't matter)
Issue description
Description:
Contents of EditorInspectorPlugins do not always display correctly.
More specific: Trying to call any function in an inspector opened from a Debugger Inspector on the object input into the the EditorInspectorPlugin will result in the following error (and the added control being skipped):
res://addons/myplugin/inspector.gd:8 - Invalid call function 'get_the_info' in base 'EditorDebuggerRemoteObject (SomeClass)': Attempt to call a method on a placeholder instance. Check if the script is in tool mode.
Educated guess:
There are 2 Inspectors, one "normal" one, that only displays all the @export
information, one "debug" one, that displays all the information of an object. The debug inspector does not seem to correctly resolve all of its placeholders correctly.
Steps to reproduce
Steps:
- Open and extract the MRP and start it in
Godot 4.4.1
. - Create a breakpoint at line 12 of
main.gd
(var x = 1 + 1
) and run the game. - Open the Inspector of the
some_class
variable, by clicking on the object link in the members section of the debugger.
Result:
The Inspector opens without the added element of the plugin. In the Output section, the following error is displayed:
ERROR: res://addons/myplugin/inspector.gd:10 - Invalid call function 'get_the_info' in base 'EditorDebuggerRemoteObject (SomeClass)': Attempt to call a method on a placeholder instance. Check if the script is in tool mode.
Additional Info:
A similar Issue occurs when using some_info
instead of calling get_the_info()
in line 10 of inspector.gd
Minimal reproduction project (MRP)
Metadata
Metadata
Assignees
Type
Projects
Status