Support¶
Troubleshooting¶
- Editor features are missing
Check that the file has the Tcl filetype and the client can launch the configured server. Check the editor’s LSP log for startup errors. See Language Server or the editor-specific setup guide.
- The server reports that
tclshis missing Install Tcl and make
tclshavailable on the editor’sPATH. The server and checker require it even when no project plugin is configured. Prebuilt servers remove the Python requirement but still needtclsh.- Commands are unresolved
Check that the source file is below the intended
tcllsrc.tcl. Include metadata for custom commands and select the required tool module; see Metadata Includes and Module Selection.- Packages are unresolved
Check that the library contains a
pkgIndex.tcland add its directory withlib-path. Package indexes and dependencies must be statically resolvable; see Project Configuration.- Saved settings or plugin changes appear unchanged
Save the config, metadata, or Tcl plugin file, then reopen or edit a source file to trigger analysis, or restart the language server. VS Code watches config files, package indexes, and
*.meta.tclfor automatic restarts. Ordinary Tcl plugin scripts are not watched; see VS Code.
For diagnostic meanings and analysis limits, see Diagnostics.
Reporting A Problem¶
Include the following in a GitHub issue:
the smallest Tcl example that reproduces the problem
the expected result and the actual diagnostic or error
the command, or editor and LSP configuration, used to reproduce it
relevant
tcllsrc.tcl, metadata, and package index filesthe tcl-ls version or commit, operating system, and installation method
For an editor diagnostic, check whether the batch checker reports the same problem:
tcl-check --context-lines 2 path/to/example.tcl
Include that output and any relevant editor LSP log entries.