A Language Server for zc.buildout.
This language server is implemented using pygls.
Installation
Standalone
Needs a python >= 3.8.
python -m pip install zc.buildout.languageserver
Then configure your editor to run buildoutls ( or python3 -m buildoutls ).
From vscode extension
On activation, the extension automatically installs the extension on the python configured in the extension preferences.
The automatic installation does not seem to work with theia and the python egg has to be installed beforehand.
Features
Completions
${or[complete sections.${section:completesection's options. Ifsectionuses a known recipe, dynamic options from the recipe are also completed.${buildout:extends}completes filenames.${buildout:parts}and<=option completes parts.
Diagnostics
- non existant section and options in
${section:option}references. - required options not defined for a a few "known recipes".
- python package listed in
[versions]with known vulnerabilities
Symbols
- Sections and options are shown are displayed in outline as symbols.
Links
${buildout:extends}are links.
Go to definitions
- from
${section:options}we can go to the location whereoptionis defined insection, or tosectionheader if it's not defined. - from
<= sectionwe can go tosection. - from
${buildout:extends}we can go to the extended profile.
Hover
- Hover on an option show the option value.
- Hover on a recipe shows the recipe documentation
Find references
- Find references of the current symbol. A bit simple, it only look for references and does not check if profiles really
extendseach other. It does not look in templates either.
Code actions
- update a python package from
[versions]to its latest version on pypi - compute the
md5sumof an url
Semantic tokens
- python code in options is highlighted.
Template support
- "current" buildout profile is guessed, then completions and diagnostics should work on any files.
Jinja2 support
- Jinja syntax is syntax highlighted and jinja syntax markers are ignored when parsing buildout.
SlapOS support
- SlapOS instance buildout (ie. buildout generated by buildout) is understood,
${and$${are treated separatly for completions and diagnostics.
Metadata
Release files for zc.buildout.languageserver 0.17.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zc_buildout_languageserver-0.17.2.tar.gz | 72.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zc_buildout_languageserver-0.17.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 149.0 kB
Release files / zc_buildout_languageserver-0.17.2.tar.gz
| Download URL | zc_buildout_languageserver-0.17.2.tar.gz |
|---|---|
| Size | 72.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f11662906dfb5e1531c96c889c32e4b71fa53a17c4e61ebf2fe79bdbd99709b3
|
|
BLAKE2b-256 checksum How to use checksums |
031a716e2d7d6eeeb34c4fc420d40fa98fbc9598646a41c360afe88895672c3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / zc_buildout_languageserver-0.17.2-py3-none-any.whl
| Download URL | zc_buildout_languageserver-0.17.2-py3-none-any.whl |
|---|---|
| Size | 76.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7df0e18964aafe59543b8e7ffbaddeba0c09416aabb9c6f170495873835ea57b
|
|
BLAKE2b-256 checksum How to use checksums |
b6ccb018f465d2a7c76a170d13a43d2f54308301aa0b45b152e44a22a9858fba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|