Installation
Install the fls binary with Cargo
Requires Rust stable with Cargo installed.
Install
To install the binary, run:
cargo install --path crates/flsTo run from source without installing:
cargo run -p fls -- lspTo confirm the install, run:
fls --versionConnect your editor
The server speaks JSON-RPC over stdio. Point any generic LSP client at the lsp subcommand:
- Command:
fls lsp - Transport:
stdio - Language id:
solidityfor.solfiles
No editor-specific plugin is needed. If your editor asks for a language id or file pattern, use solidity and *.sol.
Verify
- Open a folder containing a
.solfile. - Open the file in your editor.
- Break something on purpose, for example delete a semicolon.
- A diagnostic should appear within ~200 ms (the default debounce delay).
If nothing happens, run fls lsp in a terminal. Startup and config problems print as fls: ... warnings on stderr.
Lint without an editor
To lint files from the terminal without an editor, use the check subcommand:
fls checkSee CLI reference for flags, exit codes, and JSON output.
Next steps
- Quickstart: confirm hover, completion, and goto-definition work
- Configuration: optional
forgels.tomlsettings
ForgeLS