A language server for zc.buildout
Project description
A Language Server for zc.buildout.
This language server is implemented using pygls.
Installation
Standalone
Needs a python >= 3.6.
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
${
complete sections.${section:
completesection
's options. Ifsection
uses 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".
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 whereoption
is defined insection
, or tosection
header if it's not defined. - from
<= section
we can go tosection
.
Hover
- Hover on an option show the option value.
Find references
- Find references of the current symbol. A bit simple, it only look for references and does not check if profiles really
extends
each other. It does not look in templates either.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file zc.buildout.languageserver-0.1.0.tar.gz
.
File metadata
- Download URL: zc.buildout.languageserver-0.1.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ad4759a7a46850d3073bd37313ce41120d06f9912606e866d1b0d53fe2ecae |
|
MD5 | 9ae4a050aaf9088d04f82cf8bd825c13 |
|
BLAKE2b-256 | 297de3bc4dadeb1178093b08fd040f436d55822a1fa743f1c471e241a2310f10 |