As a Roblox developer, it is currently too hard to get up-to-date script analysis across my game. When I make a change in one module that breaks any other modules, I won’t get any warnings in script analysis until I navigate to the affected module and make a change.
The only two ways to refresh script analysis and get a complete picture of the game’s warnings is to:
- Restart Studio
- Open Settings and toggle off/on Enable Script Analysis
I made a plugin to do the latter with a single shortcut:
local action = plugin:CreatePluginAction(
"refreshScriptAnalysis",
"Refresh Script Analysis",
"Start and stop script analysis to trigger a reanalysis of the entire codebase",
"",
true
)
action.Triggered:Connect(function()
settings().Studio["Enable Script Analysis"] = false
task.wait()
settings().Studio["Enable Script Analysis"] = true
end)
But it doesn’t work because the setting can’t be changed by plugins:
So the only ways to get up-to-date analysis are to restart Studio or go into the settings menus.
If Roblox is able to address this issue, it would improve my development experience because I would instantly be notified of issues in my game’s codebase.