Various issues with script autocomplete since the last update.

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?

2 Likes

Hi,

Thank you for letting us know about this.

Can you please let us know what Betas you have turned on?

Thank you!

These are the beta features I have enabled:




1 Like

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).
1 Like

Hi,

I have an update on this – we’re working on this and fixes should be starting to show up in a few weeks.

Thanks for your patience.

2 Likes

Also having this issue!
29b1289bb4ed144e4dab1b4740934b18

2 Likes

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?