Script Editor rarely fatally errors and breaks autofill/error checking entirely until restart

Rarely (once every several hours of scripting) the script editor will completely break with the following error in the Script Analysis widget:


I’m unsure if the “Lazy Type expands…” error is related to the issue but I included it just in case.

Once this happens, autofill, error checking and anything beyond syntax coloring and basic typing breaks until Studio is completely restarted. This can be quite annoying especially when mid-typing it occurs, and at times I spend several minutes trying to figure out why a path I’m typing isn’t autofilling.

(Edit: I do have the Luau Type Solver enabled in the place where this screenshot is from, so this bug report might be related: previous bug report)

I notice this seems to happen while I’m typing out paths for recently edited UI instances in StarterGui most often. I cannot confirm a 100% reproducible method though.

Expected behavior

Ideally, if Luau completely crashes then there could be a user-facing method of restarting it without restarting Studio, or it could auto-restart upon failure a few times before asking the user to fully restart.

Hello! We’ve been aware of this class of issue, but yes, we can probably do something a little better here than disable type checking entirely for the session.

I do not have the new Luau Type Solver enabled so this beta feature is not the cause unlike in a previous bug report.

You should double check the workspace property UseNewLuauTypeSolver; we recently rolled out the new solver to places with no strict mode files.

Yep just checked and this is enabled, this explains it then! Should I close this bug report or keep it open for tracking?

Keep it open please :slight_smile: we still want to tackle this issue