There have been many issues with studio autocomplete in the past few days. Autocomplete will just randomly not work requiring constant backspacking and retyping to fix (I can’t even provide repo steps for this, you just need to try using the editor and you will run into it), and many type patterns no longer provide autocomplete (especially relating to self on methods that are defined with : over .). One specific pattern that no longer works is this:
type Service = {
Start: (self: Service) -> (),
}
local Service: Service = {}
function Service:Start()
print(self. ) -- nothing using self will autocomplete even though self is type Service when you hover over it
end
Instead you must now define functions like this if you want autocomplete to work:
type Service = {
Start: (self: Service) -> (),
}
local Service: Service = {}
function Service.Start(self)
print(self. ) -- has full autocomplete works just fine
end
This is extremely irritating, can whatever update that was made last week please be reverted until this can be resolved?
A few cases where autocomplete doesn’t work (where it previously did before):
Within if ... then ... else ... statements (note: anything after else autocompletes fine, but between if ... then and elseif ... then there is no autocomplete).
Within string interpolation brackets (sometimes this works for filling in variables, but it currently never works when indexing with a table or instance).
Hi! Are you able to share a reproduction video / gif of your if statement recommendations not working? I’m not able to repro on my end. Also, which version of Studio are you running?