Getting Started¶
Choose the Python package for all three commands, or a prebuilt server for editor use.
Runtime Requirement¶
The language server and checker require tclsh on PATH. This also
applies to prebuilt servers and bundled VS Code extensions. The editor must
be able to find it in its own environment. Metadata generation also uses
tclsh; see Writing And Generating Metadata.
Python Package¶
With Python 3.12 or newer, install:
python3 -m pip install tcl-ls
The package provides:
tcl-ls— the editor language servertcl-check— the batch checkertcl-meta— the metadata generation helper
Prebuilt Server And VS Code Extension¶
Download an asset for your platform from
GitHub Releases. Server
archives are built for Linux, macOS, and Windows and do not require a separate
Python installation. Extract the archive, keep its files together, and add
the server directory to your PATH.
The release VS Code extension includes the server. See VS Code for installation and settings.
Start Using tcl-ls¶
For editor support, follow Neovim, VS Code, or the Language Server guide for other LSP clients.
To check a file or project directory:
tcl-check path/to/project
See Project Checking for terminal and CI use. Projects can share library, metadata, and diagnostic settings in Project Configuration.
If commands need custom metadata, start with Writing And Generating Metadata. To work from a source checkout, see Development.