Script editor autocomplete falsely detects service member as function, or sometimes nothing at all

The studio script editor’s autocomplete keeps listing my variables as functions, and sometimes just doesn’t show them at all.

Repro steps:

  1. Create any type of script.
  2. Create a variable that uses GetService to fetch a service.
  3. Create a variable that indexes the fetched service with any valid instance/member name, regardless of if it exists, using dot syntax.
  4. Create a function (doesn’t matter what it does, can be empty)
  5. Observe that typing the name of the variable defined in step 3 into the function does not bring up autocomplete
  6. 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
1 Like

I get this all the time. Its really annoying when I’m trying to quickly write something. I usually end up switching to using rojo and visual studio code.

Would love to see this get fixed.

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

Please note that filling a bug report does not guarantee that it will be fixed once triaged.

1 Like

This issue should now be resolved! If this issue is still occurring, please create a new topic for us to look into.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.