The official language server for Nextflow scripts and config files.
The following language features are currently supported:
- code navigation (outline, go to definition, find references)
- completion
- diagnostics (errors, warnings)
- formatting
- hover hints
- rename
- semantic highlighting
- DAG preview for workflows
- config preview for processes
The Nextflow VS Code extension downloads and runs the language server automatically.
For other editors, download the language server from GitHub releases:
- Linux (x64, arm64) and macOS (arm64): download the standalone bundle for your platform, which includes its own Java runtime, and run
bin/nextflow-lsp. - Other platforms: download
language-server-all.jarand run it with Java 17 or later:java -jar language-server-all.jar.
The language server communicates over standard input/output. See Editor support for how to set it up with other editors, including Zed, Neovim, and Emacs.
The language server reads its settings from the workspace/didChangeConfiguration notification. See Configuration for the available settings and their defaults, and the Nextflow VS Code extension for an example client.
See CONTRIBUTING.md for building, testing, and releasing the language server, and the docs for its internals.
Sometimes the language server might crash or get out of sync with your workspace. If this happens, you can restart the server from the command palette. You can also view the server logs from the "Output" tab under "Nextflow Language Server".
When reporting an issue, please include a minimal code snippet that triggers the issue as well as any error traces from the server logs.