Installation
EmmyLua Analyzer provides multiple installation methods to suit different workflows and environments. Choose the method that works best for you.System Requirements
Operating System
- Windows 10+
- macOS 10.15+
- Linux (any modern distro)
For Cargo Installation
- Rust 1.70 or later
- Cargo package manager
Disk Space
- ~50MB for binaries
- ~200MB for source build
Installation Methods
Method 1: Cargo Install (Recommended)
The easiest way to install EmmyLua Analyzer is through Cargo, Rust’s package manager.Install Rust and Cargo
If you don’t have Rust installed, install it using rustup:Follow the on-screen instructions and restart your terminal.
Install EmmyLua Components
Install the components you need:
Installation may take 5-10 minutes as Cargo compiles the binaries from source.
Method 2: Pre-Built Binaries
For faster installation without compiling, download pre-built binaries from GitHub releases.Download Binaries
Visit the GitHub Releases page and download the appropriate archive for your platform:
- Windows:
emmylua-analyzer-windows-x64.zip - macOS:
emmylua-analyzer-macos-x64.tar.gz(Intel) oremmylua-analyzer-macos-arm64.tar.gz(Apple Silicon) - Linux:
emmylua-analyzer-linux-x64.tar.gz
Add to PATH
Add the extracted directory to your system PATH:
- macOS/Linux
- Windows
Add to your shell profile (Then reload your shell:
~/.bashrc, ~/.zshrc, or ~/.profile):Method 3: Build from Source
For the latest development version or custom builds, compile from source.Build the Binaries
Build all components or specific ones:The compiled binaries will be located in
target/release/.Component-Specific Installation
Installing Only the Language Server
If you only need editor integration:Installing Only the Static Analyzer
For CI/CD pipelines or command-line checking:Installing Only the Documentation Generator
For documentation generation:Verification
After installation, verify that all components are working correctly:- Language Server
- Static Analyzer
- Doc Generator
Test the language server:Expected output:
Updating
To update EmmyLua Analyzer to the latest version:Troubleshooting
Command not found after installation
Command not found after installation
This usually means the installation directory is not in your PATH.For Cargo installations, ensure For Windows, you may need to restart your terminal or computer.
~/.cargo/bin is in your PATH:Cargo install fails with compilation errors
Cargo install fails with compilation errors
Make sure you have the latest Rust version:If the error persists, try installing with verbose output:
Permission denied on Linux/macOS
Permission denied on Linux/macOS
If you get permission errors, either:
-
Use
sudofor system-wide installation: -
Or install to user directory (no sudo needed):
Then add
~/.local/binto your PATH.
Slow compilation times
Slow compilation times
Cargo compilation can be slow on first install. To speed it up:
- Use pre-built binaries instead
- Enable parallel compilation:
- Use faster linker (Linux only):
Next Steps
Quick Start
Get up and running in 5 minutes
Editor Setup
Configure your editor to use EmmyLua Analyzer
