Autocomplete 'do' Bug

After the upgrade you can no longer have variables that start with ‘do’ because if you later try to use ‘do’ as a keyword, it will be overwritten.

Type

local dollar = 5
for i = 1, 5 do

And press enter. Your “do” gets turned into “dollar”.
This has been mentioned but I didn’t see any bug report thread regarding it, so figured I’d make one so this can hopefully be repaired by next release! Other than this, the new feature is great.

8 Likes

Hence why tab should be what selected it.

1 Like

Aren’t you able to use the escape key to get rid of the window?

Nevertheless, it’s still annoying.

I have a very similar issue with Autocomplete: when I press Shift+Tab (to backwards indent), this happens-
Screenshot_7.png
It seems to take the variable after where I am shift-tabbing and tries to force me to autocomplete it. Kind of annoying…

What should happen: If you type a keyword, intellisense should not be activated. Sublime Text is good about this. Try this same scenario in Sublime Text with Lua selected as the language. When you write ‘do’ it does not try to complete it to dollar. Once you break from the keyword by typing “dol” then it lets you complete it to dollar.

1 Like