Bug explanation : I’m using a community resource called ByteNetMax. In this open source, a ‘packet’ is equivalent of a RemoteEvent. When I want to use sendTo() function of a packet, the intellisense does not recommend me anything. But it does only when I open the ‘packet’ module inside the ‘packets’ folder of ByteNetMax.
Beta features enabled : Dragger QoL Improvements, improved UIStrokes, Next gen studio preview, UIDragDetectors
Luau Intellisense relies on static analysis to figure out what methods a table has. When you access a nested packet like this:
myPackets.example1.packets.myPacket1.
Studio can’t see the structure of myPacket1 unless you open the module itself. That’s because ByteNetMax builds packets dynamically in the module, so Intellisense doesn’t know what functions exist (like sendTo) from just the chained access
However, if you assign it to a local variable
local Packet1 = myPackets.example1.packets.myPacket1
Studio now has a direct reference to the table. It can inspect the contents of myPacket1 at runtime and detect its methods, so autocomplete works even without opening the module
Nested dynamic tables confuse Intellisense, assigning to a local gives it a concrete reference to analyze :))
(so technically not a bug, just how Intellisense relies on static type interference, and dynamically constructed tables in Luau break the type propagation chain)