Ketasaja

Results 29 issues of Ketasaja

Since there can only be one service, it's surprising to me that `folder` and `folderAgain` don't have the same type. `luau-lsp.hover.strictDatamodelTypes` and `luau-lsp.diagnostics.strictDatamodelTypes` are `true`. ```lua --!strict local ReplicatedStorage =...

Reproduction for post-1.29.1 0ebfa54: [luau-lsp_#645_reproduction.zip](https://github.com/user-attachments/files/15751246/luau-lsp_.645_reproduction.zip) 1. Open project in VS Code. 2. `aftman install`. 3. In `server/code/init.lua`, on line 2, start typing `autocomplete`. ![#645_working](https://github.com/JohnnyMorganz/luau-lsp/assets/153110145/8775dc73-e0ad-4627-b8a0-61c57d73749f) 4. Delete what you typed. 5....

Tested on 0.637. ```luau --!strict function _f(...: t...) local _ = select(1, ...) -- TypeError: Function only returns 0 values, but 1 is required here end ``` `_` should be...

bug

Tested on 0.636 with no errors in non-strict mode: ```luau type t = ("") -> (() -> ()) local f = (nil :: any) :: t f("")() -- TypeError: Argument...

bug

It's easy to forget if you're running the latest version of Luau. This could be included in `--help` output, `--version` or `-v` could be added, or both.

enhancement
pr welcome

Tested on 0.635 ```luau --!strict local _t: {[number]: string} = {} local _ = _t :: {[boolean]: boolean} ``` Old solver would warn `TypeError: Cannot cast '{string}' into '{| [boolean]:...

bug
new solver

Tested on 0.636 with no errors in non-strict mode. ```luau --!strict type x = { x: number, } type y = x & { y: number?, } local _u: y...

bug

Tested on 0.635, with no errors in non-strict mode. ```luau --!strict local t: {[string]: string} = {} local function f() t = t --[[ TypeError: Type function instance t1 where...

bug
new solver