All Projects → devcat-studio → Kailua

devcat-studio / Kailua

Licence: other
🌴 Type Checker and IDE Support for Lua

Programming Languages

rust
11053 projects
lua
6591 projects

Projects that are alternatives of or similar to Kailua

Vscode Mjml
This repo is archived. MJML preview, lint, compile for Visual Studio Code.
Stars: ✭ 138 (-9.21%)
Mutual labels:  vscode-extension
Codelf
A search tool helps dev to solve the naming things problem.
Stars: ✭ 12,052 (+7828.95%)
Mutual labels:  vscode-extension
Browser Preview
🎢Preview html file in your default browser
Stars: ✭ 148 (-2.63%)
Mutual labels:  vscode-extension
Iosreextension
A fast and elegant extension for VSCode used for iOSre projects.
Stars: ✭ 139 (-8.55%)
Mutual labels:  vscode-extension
Arepl Vscode
program python in real-time
Stars: ✭ 142 (-6.58%)
Mutual labels:  vscode-extension
Vsnotes
Simple VS Code extension for plain text note taking.
Stars: ✭ 146 (-3.95%)
Mutual labels:  vscode-extension
Vscode Coding Tracker
🕙 A coding activities tracker(time, file, type)
Stars: ✭ 137 (-9.87%)
Mutual labels:  vscode-extension
Markdown Links
Command that displays a graph of local links between markdown files
Stars: ✭ 152 (+0%)
Mutual labels:  vscode-extension
Latex Utilities
An add-on to LaTeX Workshop that provides some features that go beyond the bare essentials
Stars: ✭ 142 (-6.58%)
Mutual labels:  vscode-extension
Openhab Vscode
VS Code extension for openHAB configuration files
Stars: ✭ 148 (-2.63%)
Mutual labels:  vscode-extension
Android Dev Ext
Android debugging support for VS Code
Stars: ✭ 141 (-7.24%)
Mutual labels:  vscode-extension
Vscode Stylelint
Official Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 141 (-7.24%)
Mutual labels:  vscode-extension
Vscode Gist
vscode extension for quick gists
Stars: ✭ 146 (-3.95%)
Mutual labels:  vscode-extension
Vscoq
A Visual Studio Code extension for Coq [[email protected],@fakusb]
Stars: ✭ 138 (-9.21%)
Mutual labels:  vscode-extension
Omi Snippets
🔖Visual Studio Code Syntax Highlighting For Single File React And Omi Components - 编写React和Omi单文件组件的VSC语法高亮插件
Stars: ✭ 149 (-1.97%)
Mutual labels:  vscode-extension
Helm Intellisense
Extension for Visual Studio Code - Intellisense in helm-templates from the values.yaml
Stars: ✭ 137 (-9.87%)
Mutual labels:  vscode-extension
Vulncost
Find security vulnerabilities in open source npm packages while you code
Stars: ✭ 146 (-3.95%)
Mutual labels:  vscode-extension
Metago
MetaGo provides fast cursor movement/selection for keyboard focused users in vscode
Stars: ✭ 151 (-0.66%)
Mutual labels:  vscode-extension
Vscode Powertools
A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.
Stars: ✭ 150 (-1.32%)
Mutual labels:  vscode-extension
Coda
A language experiment -- irc.freenode.net ##coda
Stars: ✭ 148 (-2.63%)
Mutual labels:  vscode-extension

🌴 Kailua (crates.io)

한국어

Kailua is an experimental type checker and integrated development environment (IDE) for the Lua programming language (currently only Lua 5.1 is supported).

The detailed documentation is available here.

Installation and Usage

Kailua can be used as a standalone checker or an IDE plugin.

Standalone Checker

To install a standalone checker, install Rust first (1.15 or later required), then type the following:

cargo install -f kailua

(-f will cause the existing installation to be upgraded.)

You can run kailua check <path to the entry point> now.

You can also run kailua check <path to the directory>, if you have kailua.json or .vscode/kailua.json in that directory. The configuration format is described in the later section.

Visual Studio Code

Kailua can be used as an IDE support for Visual Studio Code. Install Kailua by typing ext install kailua from the Quick Launch (Ctrl-P). If you are not on Windows, you should also install the standalone checker as above.

You will see a warning that the configuration file is missing when you open a folder containing Lua codes. You need it for real-time checking.

You can either create .vscode/kailua.json by hand, or search "Kailua" from the Command Palette (Ctrl-Shift-P) to edit one.

The following content is required for .vscode/kailua.json, in case you are editing it by hand:

{
    "start_path": "<path to the entry point>",

    "preload": {
        // This indicates that we are using Lua 5.1 and all built-in libraries of it.
        "open": ["lua51"],
    },
}

You need to reload the current window (Ctrl-R or Cmd-R) to apply the configuration.

Your First Kailua Code

Once you've set the entry point, you can write your first Kailua code:

--# open lua51
print('Hello, world!')

If you are using the configuration file, the first code can be made much simpler:

print('Hello, world!')

Play a bit with this code to see which errors Kailua can detect.

License

Kailua is dual-licensed under the MIT license and Apache license 2.0 at your option. By contributing to Kailua you agree that your contributions will be licensed under these two licenses.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].