The studio script editor’s autocomplete keeps listing my variables as functions, and sometimes just doesn’t show them at all.
Repro steps:
- Create any type of script.
- Create a variable that uses GetService to fetch a service.
- Create a variable that indexes the fetched service with any valid instance/member name, regardless of if it exists, using dot syntax.
- Create a function (doesn’t matter what it does, can be empty)
- Observe that typing the name of the variable defined in step 3 into the function does not bring up autocomplete
- Observe that typing the name of the variable defined in step 3 below the function autocompletes it as a function.
Example repro script:
local ServerStorage = game:GetService('ServerStorage') -- can be any service and variable name
local folder = ServerStorage.Any_Valid_Member_Name_Regardless_Of_It_Exists -- can be any variable name
function someFunction()
-- The variable does not appear in autocomplete here
end
-- type the variable name defined on line 5 into the space below
-- the script editor will autocomplete it to a function, if at all
Video:
https://streamable.com/s8rbs5
This happens regardless of whether or not I have the “Script Editor Beta Features” and “Scripts are Non-Strict By Default” beta features enabled.
PC specs | |
---|---|
Processor | Intel(R) Core™ i5-8400 CPU @ 2.80GHz 2.81 GHz |
Installed RAM | 12.0 GB (11.8 GB usable) |
System type | 64-bit operating system, x64-based processor |
OS | Microsoft Windows 10 Home v10.0.19042 Build 19042 |
GPU | RTX 2060 |