Steps to reproduce:
Hello,
New user here. Two autocomplete bugs that I encountered on using Godot for the first time, hampering my ability to learn and use the editor/language properly...
Autocomplete not working for instances
Using latest 64-bit Windows 3.1 version standard edition download the 2D Kinematic demo (or simply use the code below)
In the script, move the cursor to directly below line 11 where 'motion' variable is defined as Vector2D
Type motion. and auto complete will present the correct list, e.g. find 'normalized()'
Move cursor to bottom of script and repeat item 3. All you see are generic 'object' constants and methods and specific methods, e.g. 'normalized()' is not available
I saw a bug report for this from a while ago and said it was fixed, clearly not quite. This bug means you simply cannot use autocomplete and scripting (for new users) is trial and error.
Autocomplete fails to run at all after a fault is found, even after fault is cleared:
Using the sample script place the cursor anywhere below the 'var motion=Vector2D()' line
Type 'motion. ' then press enter. You will get an error message saying 'expected identifier' and the line turns brown.
Go back to this line and remove the '.' then press '.' again and no autocomplete is shown
Delete all the text to the start of the line and repeat 'motion.' and still autocomplete is not shown
Delete all the line, then delete again to remove the line, and the error disappears and you can type again
i.e. once an error is found, even after you start editing the error, it never goes away and features such as autocomplete continue.
I have also found sometimes that even after removing a line, and retyping, autocomplete doesn't even give you any hints, you have to remove the line a couple of times and then eventually it works!
Sample code for player.gd is as below:
Minimal reproduction project:
extends KinematicBody2D
# This is a demo showing how KinematicBody2D
# move_and_slide works.
# Member variables
const MOTION_SPEED = 160 # Pixels/second
func _physics_process(delta):
var motion = Vector2()
if Input.is_action_pressed("move_up"):
motion += Vector2(0, -1)
if Input.is_action_pressed("move_bottom"):
motion += Vector2(0, 1)
if Input.is_action_pressed("move_left"):
motion += Vector2(-1, 0)
if Input.is_action_pressed("move_right"):
motion += Vector2(1, 0)
motion = motion.normalized() * MOTION_SPEED
move_and_slide(motion)
Godot version: 3.1 64-bit
OS/device including version: Windows 10
Issue description: Autocomplete does not work
Steps to reproduce: Hello, New user here. Two autocomplete bugs that I encountered on using Godot for the first time, hampering my ability to learn and use the editor/language properly...
Autocomplete not working for instances
I saw a bug report for this from a while ago and said it was fixed, clearly not quite. This bug means you simply cannot use autocomplete and scripting (for new users) is trial and error.
Autocomplete fails to run at all after a fault is found, even after fault is cleared:
i.e. once an error is found, even after you start editing the error, it never goes away and features such as autocomplete continue.
I have also found sometimes that even after removing a line, and retyping, autocomplete doesn't even give you any hints, you have to remove the line a couple of times and then eventually it works!
Sample code for player.gd is as below:
Minimal reproduction project: