Closed Ketasaja closed 1 month ago
On my machine the current source type produces the same errors shown in your second example with the latest version of luau-lsp. Did you definitely test it in strict mode?
This is Luau-LSP 1.32.1 freshly installed. When I make a new project I do get errors, but even after wally install
ing again or copying Vide from the new project, my existing project still doesn't get errors without the change.
I'll try to minimal reproduce this. I'd be surprised if I ran into a limit on such a small project.
@centau I figured out the new project had a .luaurc
in the root folder with "languageMode": "strict"
, while in my existing project it was only for my code, not for the packages directory.
Adding --!strict
to Vide's main module fixed this, but that would cause new errors for nonstrict users, so maybe there's no good way to make this change.
I think strict calling into nonstrict is supposed to error, but that might be a Luau issue.
Before, only one error with strict typing:
After, many errors with strict typing: