Intellisense works only when devloper-custom-class module is open

  1. 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.
  2. Beta features enabled : Dragger QoL Improvements, improved UIStrokes, Next gen studio preview, UIDragDetectors
  3. Images :


4. Place file :
Place1.rbxl (78.5 KB)

1 Like

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)

4 Likes

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