You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, a custom class declared by class_name will stop updating with changes to the class's file.
For example, if you have a class Foo, and then add a variable to it like fooVar, and then try to index that variable from other contexts, such as from other scripts extended Foo or other scripts that type hints Foo, the new fooVar will not appear. Same goes for added functions.
Once this failure to update occurs once, it will always fail for all future changes to this class (other classes in the same project are not affected). Reloading the project will update changes to the class, but only once. Each added variable or function requires a reload to appear elsewhere.
I cannot reproduce this with minimal projects, only during serious production Which also makes it impossible for me to share the code due to NDA.
Something observations:
this bug only appears when a cyclic reference between two custom classes has occurred. Removing cyclic reference does not fix it.
moving the offending files and scenes to a different (nearly empty) project will solve the problem
Steps to reproduce
N/A: bug only encountered during serious production. Minimal projects cannot reproduce bug.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Godot version
v4.0.2.stable.official [7a0977c]
System information
Windows 10, compatibility renderer
Issue description
Sometimes, a custom class declared by
class_name
will stop updating with changes to the class's file.For example, if you have a class
Foo
, and then add a variable to it likefooVar
, and then try to index that variable from other contexts, such as from other scripts extended Foo or other scripts that type hints Foo, the newfooVar
will not appear. Same goes for added functions.Once this failure to update occurs once, it will always fail for all future changes to this class (other classes in the same project are not affected). Reloading the project will update changes to the class, but only once. Each added variable or function requires a reload to appear elsewhere.
I cannot reproduce this with minimal projects, only during serious production Which also makes it impossible for me to share the code due to NDA.
Something observations:
Steps to reproduce
N/A: bug only encountered during serious production. Minimal projects cannot reproduce bug.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: