Variable autocomplete changes to a less relevant suggestion

Wasn’t really sure whether to put this in Feature Requests or Bug Reports, but here we are.

When I’m typing a variable name, I usually write 3 letters before pressing Tab to autocomplete. Most of the time this works fine, but I am surprisingly often left in this scenario:

Here I’m trying to type the variable I just defined, cloned. I type 2 letters and everything is looking great:
image

In my head, I now fully commit to pressing the 3rd letter and then the Tab key. However, as soon as I type the third letter, the top suggestion changes to the second suggestion. The variable I’m actually looking for has now completely disappeared from the suggestions, even if I scroll down? I’m not really sure why.
image

I press Tab and for a few seconds, I get pretty confused. Then I’ve got to go back and delete and try again.
image

This doesn’t happen all the time, only when I’m typing a variable name where there is another similar name somewhere else in the script.

It’s quite a small issue, but it does hinder my workflow enough that I’m writing this post. Thanks!

15 Likes

Thank you for reporting! The issue is being looked into.

4 Likes

This happens to me constantly for everything. Typing too much of the symbol results in irrelevant suggestions until a certain point where it works correctly again.

It’s like it’s designed to trick you.

1 Like

I really hope Luau will bring better autocomplete. Most of the time autocomplete doesn’t even work, and when it does things like this happen :S

Here’s another example that keeps happening to me today. I’m trying to type GuiService but the autocomplete is certain I definitely want GuidRegistryService. Very frustrating!

image

1 Like

Spoiler alert: there is going to be a beta release of a brand new auto-complete feature within weeks. I am happy to say that all problems mentioned in this topic have been fixed.

9 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.