The `dot-language-server` package provides a robust Language Server Protocol (LSP) implementation specifically tailored for the DOT language, which is commonly used with Graphviz. Currently at version 3.1.0, the project follows an active release cadence, with major versions introducing significant shifts like the recent transition to ECMAScript Modules (ESM) and a strict Node.js v22+ requirement in version 3.x. Its primary differentiator is its dedicated support for DOT syntax, offering features such as refactorings, diagnostics, and code completion to various LSP-compatible editors like Vim, Neovim, Visual Studio Code, Sublime Text, and Emacs. Unlike general-purpose language tools, `dot-language-server` focuses exclusively on providing a rich development experience for Graphviz users, integrating directly into editor workflows rather than requiring external compilation or visualization steps. It functions as a standalone executable.
npm install dot-language-serverVerified import paths — ran on the pinned version, not inferred.
This configuration snippet demonstrates how to integrate the `dot-language-server` into Sublime Text using the LSP package, enabling rich language features for DOT files. It includes a specific note for Windows users regarding the executable path.
Ensure your Node.js environment is updated to version 22 or later. Use `nvm` or `volta` to manage Node.js versions if necessary.
The package is primarily an executable, not a library for programmatic import. If you are attempting to run it in a Node.js context, ensure your project is configured for ESM, or use it via its CLI command as intended.
Modify your LSP client configuration on Windows to specify `"command": ["dot-language-server.cmd", "--stdio"]` or similar, to ensure the shell can correctly locate and execute the server.
Upgrade your Node.js installation to version 22 or newer. Use `nvm install 22` and `nvm use 22` or similar version manager commands.
Avoid programmatic `require()` of this package. `dot-language-server` is an executable tool. Use it by spawning its command-line interface, typically configured through your LSP client, rather than importing it as a library.
In your LSP client configuration, explicitly add `.cmd` to the executable name, e.g., change `"command": ["dot-language-server", "--stdio"]` to `"command": ["dot-language-server.cmd", "--stdio"]`.
No dependency data recorded yet.