|
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] ZedUmple for ZedUmple language support for the Zed editor, providing syntax highlighting, diagnostics, code completion, and go-to-definition for InstallationThe extension is available on the Zed marketplace. Install it from Zed:
The extension automatically downloads the LSP server and Umple compiler — no manual setup required. Dev install (from source)To work on the extension itself, install it as a dev extension:
Prerequisites
Features
How It WorksThe extension automatically installs Configuration (optional)You can adjust certain settings using Settings … / Open Settings (cmd ,) or by editing the Configuration settings for usersBy default lines of Umple code that have errors or warnings are underlined; you can see the error or warning at the bottom of the screen if you click on the underlined text. However, if you would like such messages from the Umple compiler to appear inline (on the line where each problem occurs), then you can change the Languages & Tools / Diagnostics / Enabled setting to be true. You can also do this by adding the following to the settings.json file. {
"diagnostics": {
"inline": {
"enabled": true
}
}
}
Configuration settings for developers working on the Umple LSP serverFor development, you can override the auto-downloaded server with a local build. Add to your Zed {
"lsp": {
"umple-lsp": {
"settings": {
"serverPath": "/path/to/umple-lsp"
}
}
}
}
This points to a locally cloned and built umple-lsp repository. UpdatingSince this is installed as a dev extension, pull the latest changes and Zed will pick them up: cd umple.zed git pull Then restart Zed or reload the extension. Grammar SyncThe tree-sitter grammar and query files are derived from umple-lsp. The following files are auto-synced and should not be edited manually:
Syncing after grammar changes./scripts/sync-grammar.sh --source /path/to/umple-lsp Checking for drift (CI or local)./scripts/sync-grammar.sh --source /path/to/umple-lsp --check This exits with code 1 if any synced file is out of date. TroubleshootingExtension fails to compile (“failed to compile Rust extension”)Zed compiles extensions to WebAssembly ( # Remove Homebrew rust if installed brew uninstall rust brew install rustup # Or install rustup directly via [rustup](https://rustup.rs/) LSP server not startingCheck View > Toggle Language Server Logs in Zed for errors. Common issues:
No diagnosticsDiagnostics require Java 11+. Check the LSP logs (View > Toggle Language Server Logs) for errors related to LicenseMIT Original markdown source for this page: https://github.com/umple/umple.zed/blob/master/README.md |