The new Luau type analyzer fails to provide method autocompletion for loop variables after a continue statement, even when the type is correctly recognized.
Steps to Reproduce:
Declare a loop iterating over objects (e.g., BasePart List).
Add a condition that uses continue (e.g., if value::IsA(“BasePart”) == false == false then continue end).
Attempt autocompletion for the value variable after the continue block.
Code Example:
local testList = {Instance.new("Part") , Instance.new("Part") , Instance.new("Part")}
for _ , iterPart in ipairs(testList) do
if iterPart:IsA("BasePart") == false or iterPart.Parent == nil then
continue
end
iterPart. -- No autocomplete suggestions
end
Expected Behavior:
After "continue script , AutoComplete suggests methods/properties for the variable.
Actual Behavior:
The variable’s type is recognized, but no autocomplete suggestions appear.
Hello! Thank you for the report, and for beta testing the new Luau type solver. I’m sorry you’re running into this issue. As a programmer I get super frustrated when my autocomplete doesn’t do what I expect. However, I was not able to reproduce the issue as you specified. Here is what I see:
What beta features aside from New Luau Type Solver do you have enabled? I also tried turning on/off “Incremental typechecking and autocompletion in studio.” Is this happening in a larger place file?
Interestingly enough the same happens for me. Can’t reproduce this one although I have noticed it happen to me in the past at times. Weird.
Whilst attempting to repro this I also came across a separate bug, where auto-complete options disappear and reappear after each character that’s typed. See below.
Would you be able to look into this? Can file a separate bug report if needed. Has been bugging me for a while now!
Thank you very much.
After I tried open ‘Incremental typechecking and autocompletion’ , the Autodocompletion function is restored.
I can’t remember why I turned off this feature before. It’s my problem…
2 Hour later Sad . When I enable Incremental typechecking and autocompletion. Autodocompletion frequently unable to use normallywhen i use “require” in method script…
Studio中的增量類型檢查與自動完成 means Incremental typechecking and autocompletion
新Luau類型處理器 means New Luau Type Solver
Like this video
Hey all; I believe all of the issues mentioned in this report have been resolved (autocomplete breaking after continue, autocomplete on requires not working as expected). If either y’all are still experiencing issues, please open a new ticket.