get_name doesn't autocomplete

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

I have been looking on how to access a node’s name, and have found get_name() method as well as node.name, and get('name'). All of these works the same, but only get_name() doesn’t autocomplete nor does it tell me it’s a valid method until i put parentheses on the end.

Is that a bug or am i missing something ?

What may be happening is that the editor can’t resolve the object to a known Node. If I recall, when you put parentheses on it, the editor shows it as a function, even when it isn’t a function of the object.

Ertain | 2019-04-07 23:29

:bust_in_silhouette: Reply From: eons

The editor won’t show you the getters if there is a property access to it, otherwise it will flood the suggestions with redundant methods.

Thank you, is there such information in the docs about such rules ?

Primoz128 | 2019-04-08 09:05