Reproduction Steps
Call plugin:CreateDockWidgetPluginGui with a guid string that contains a space. For example, save this script as a plugin and run it:
local toolbar = plugin:CreateToolbar("Mechanism Inspector")
local showButton = toolbar:CreateButton("Show", "Show", "rbxassetid://4458901886")
showButton.ClickableWhenViewportHidden = true
local function clicked()
print("clicked")
local widgetInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Right, -- Widget will be initialized in floating panel
true, -- Widget will be initially enabled
false, -- Don't override the previous enabled state
200, -- Default width of the floating window
300, -- Default height of the floating window
150, -- Minimum width of the floating window
150 -- Minimum height of the floating window
)
local widget = plugin:CreateDockWidgetPluginGui("Mechanism Inspector", widgetInfo) -- Silently fails to create a widget
widget.Title = "Mechanism Inspector"
Instance.new("Frame", widget)
print("setup")
end
showButton.Click:Connect(clicked)
Expected Behavior
The widget should appear. Or, if guids with spaces are disallowed, the function call should throw an error. (I haven’t made a plugin in a long time so I spent 15 minutes trying to figure out why the widget wasn’t showing up - I wasn’t sure if I was using the API correctly).
Actual Behavior
When the guid contains a space, the call to plugin:CreateDockWidgetPluginGui appears to do nothing. No widget appears. No error is thrown. When I remove the space, using the guid “MechanismInspector”, the widget appears as expected.
Issue Area: Studio
Issue Type: Other
Impact: Moderate
Frequency: Rarely