godot 3.1 problem with autocompletion

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

why when I try to autocomplete in gdscript ( example: get_node(“.”). ) , I get only 3 possible functions ( _init(),_process(),_ready()) but no showed get_scale, get_translation,get_transform and etc… ?

extends Spatial

func _ready():
	pass
func _process(delta):
	var n = get_node(".");
    #n. ??????? or get_node("."). why empty ?
	get_node(".").set_scale( Vector3(1,1,1) * abs( sin (  OS.get_ticks_msec() *0.005)) )
:bust_in_silhouette: Reply From: Zylann

You don’t get get_scale() or get_translation() because since Godot 3, the preferred way is to use property instead. So getters and setters of those properties were hidden to avoid confusion. You should be able to see .scale and .translation for example.

However, it seems there is a problem with autocompletion in this specific case…
If I try to write tran only, it autocompletes fine. self.tran works as well. But if I do get_node(".").tran I get nothing, even though it’s equivalent…
Reported here Autocompletion doesn't work on `get_node(".")` · Issue #30812 · godotengine/godot · GitHub

thank you =)

svsdval | 2019-07-26 01:33