Variable Prediction Activating on Key Terms

Studio is using variable name predictions on key terms. It affects all of them, which I’ll list just to be clear: ‘if’, ‘then’, 'for, ‘do’, ‘in’, ‘while’, ‘repeat’, ‘until’, ‘function’, ‘end’, ‘and’, ‘or’. I’ve tested all of these, and it happens with all of them.
This only actually causes problems for ‘do’, ‘repeat’, ‘until’, ‘then’, and ‘end’, since it is common to press enter for a new line after typing them.

Some quick examples, it’s a very simple bug:

local this_has_do = "example"

for k = 1, 5 do
print(k)
end

I should be able to type this all in one easy movement.

Here’s what really happens if I try to type it in one easy movement:
https://gfycat.com/WelldocumentedArtisticHoneybee
Here’s what happens while being careful:
https://gfycat.com/ElatedLawfulCrow

This problem occurs if prediction spots any variable with any of these ‘key terms’ in its name. For example, I came across this bug because of a variable named ‘mrandom’, which triggered after typing ‘do’.

5 Likes

Luckily admins already know about this and have been working on a fix:

Not sure how soon we can expect the fix though. This is also a problem with numbers btw

1 Like