JohnnyMorganz / luau-lsp

Language Server Implementation for Luau
MIT License
230 stars 60 forks source link

Instances that exist in the RobloxStudio, but don't exist in the file system are completely ignored by Luau LSP resulting in "Unknown require" TypeError #747

Open Dizyreal opened 1 month ago

Dizyreal commented 1 month ago

If you try to require some module which is not created in your project directory, but it actually exists in your game place, then you will get Unknown require error.

This error appears when there is no Stats.Ranks directory in the project image

However in the Roblox game this directory exists and game works perfectly with no errors image

Also this problem persists if you try to require module which is a child of some Package in your game. You will get the same error: image

Module actually exists: image

JohnnyMorganz commented 1 week ago

I assume you are talking about when using the Studio Companion plugin.

We currently do not support syncing script content across via the Studio Companion plugin, only the instance hierarchy tree. It is a bit more challenging due to the size of the content and having to create virtual files