kailua
kailua copied to clipboard
🌴 Type Checker and IDE Support for Lua
``` ✗ cargo -V cargo 0.20.0 (a60d185c8 2017-07-13) ✗ rustup -V rustup 1.16.0 (beab5ac2b 2018-12-06) ✗ cargo install -f kailua Updating registry `https://github.com/rust-lang/crates.io-index` Installing kailua v1.1.0 Compiling stable_deref_trait v1.1.1 Compiling...
Language server crashes on linux when started with --stdio, making it unusable in VSCode, this edit fixes that.
What do I do when I have a recursive type or a bunch of mutually recursive types? The most tired example would be an employer having a list of employees...
`--# assume` for fields in global variables shouldn't always be in the top-level scope. Here's an example why. Let's take [binser](https://github.com/bakpakin/binser) and try to type `binser.deserializeN`. The best we can...
A seemingly innocuous ```lua --# assume File.open: method() --> boolean --# assume File.write: method(string, integer?) --> (boolean, string?) --# assume File.close: method() --> boolean ``` leads to ``` .\love.lua.kailua:35:17: 35:21...
`_` is traditionally used to denote an ignored argument/variable, and it frequently makes sense to have more than one: ```lua function(_,_) return 0 end ``` So throwing ``` [Error] This...
There are tons of instances where you accept one of the (mutually disjoint) argument types, most significantly `os.date` (awww...). There is a tentative syntax reserved for such cases (`function(...) ->...
> Caution: Currently the extension only works in Windows due to the packaging issue.
I'm now building kailua VSC plugin for OSX. After run "vsce package", it's failing on "vscode:prepublish" task. If I run "(cd ..; cargo build --release)" manually, somehow "vsce package" succeed...
Hi :) Previously I applied kailua to my small Unity project. While doing that, I fell some shorting comings like syntax inconvenience. I'm not sure this is right feedback or...