The self reference auto-complete seems to be broken in Godot 4.2
-
Hey!
I've been away from the engine for couple of months and I've noticed a strange behavior on return (to version 4.2.1):
class_name TestNode extends Node @export var my_value := true func apply_settings(my_value: bool) -> void: self.my_value = my_value
For the example above the autocomplete does not see the
my_value
variable on the self node. It doesn't see any other members either. Is that a bug or not?P.S.: this mouthful workaround fixes it:
func apply_settings(my_value: bool) -> void: var this := self as TestNode this.my_value = my_value