Broken Modulescript Autocomplete?

Hello. I am encountering an issues where autocomplete is not appearing to work when accessing a modulescript. Both the script and modulescript contain no errors, warnings, hints, or information. The modulescript also only has one return value.

This is an edited version of the module script in question.

local service = {}

--SERVICES--
local replicated_storage = game:GetService("ReplicatedStorage")

--TYPES--
type hello_world = {
	akdASd: "func" | "element",
	gASGS: "MouseButton1Click"? | "MouseButton1Up"? | "MouseButton1Down"? | "MouseEnter"? | "MouseLeave"?,
	HDSfsA: (...any) -> (),
	fasdAFG: {},
}

type GaSDgAsfdaA = string

type data = {
	gsdADGH: {},
	gsfGASFA: {} | gui_bindings,
}

--VARIABLES--
local dasdd = replicated_storage.folder
local gdfgdg = replicated_storage.folder
local asdgad = replicated_storage.folder

local client = players.LocalPlayer
local player_gui = client.PlayerGui

--MODULES--
local test_service = require(dasdd.test_service)
local test_service2 = require(dasdd.test_service2)

local utility1 = require(gdfgdg.asdasd)
local utility2 = require(gdfgdg.tables)
local utility3 = require(gdfgdg.asdasd)

--MODULE DATA--
service.gdfgdfga = {}

--FUNCTIONS--
function service:init()

end

--DISPLAY--
function service:function_name(component: string)

end

function service:run_function(component: string, func: string, ...)
	
end

function service:play_function(path: string)

end

function service:find_function(class: string | {})

end

function service:show_function(element: GuiObject, data: {}): GuiObject

end

function service:my_function(_type: string, data: {{}} | {}): GuiObject
	
end

function service.truly_a_function(instance: Instance): boolean

end

function service:func(gradient: UIGradient)
	
end

function service:crazy_function()

end

function service:your_function()

end

function service:not_a_function(to_put_in: GuiObject): UIGradient

end

function service:myfunction(frame: Frame | CanvasGroup)

end

function service:PascalCaseFunction(obj: GuiObject, theme: string, tweeninfo: TweenInfo, additional_property_changes: {})

end

function service:open(frame: Frame | CanvasGroup, tweeninfo: TweenInfo)
	
end

function service:close(frame: Frame | CanvasGroup, tweeninfo: TweenInfo)

end

return service

If anybody finds a flaw in the code structure has found a solution to their similar expierence, please let me know.

Thank you to anyone reading this for your time.

1 Like

Can u try to print the variable that require the module??

1 Like

The modulescript still works completely fine. It is just the autocomplete in external that doesn’t seem to work. It even works fine in the modulescript itself.

Also, I did do a print and everything returned properly.

Oh well. Then i guess it is engine error or bug.

2 Likes

I don’t think I possess enough information to make a full bug report, though. lol :sob:

1 Like

Try to put a print on one of the methods and then call the method on the script to see if it prints. If it does then it is engine bugs and if it doesn’t then something is wrong with ur code.

The service is one of the most commonly used ones in the game, and I can see its functionalities working constantly while my game is running. I think this is an engine bug. However, I there is still that small chance that I messed up some sort of type checking.

I think the typechecking not going to affect the module at all tbh.

This is not an engine bug. I just reviewed previous versions of my project, and the autocomplete works there.

hmm ok. [character limits text]

I believe an issue in type checking could potentially cause issues. If you would like to, let me know if you find anything suspicious. I already went through the methods and commented them each one by one, and it solved my problem— for a few seconds.

I might try to make a bug report for this, actually.

1 Like