Skip to main content

A language server for zc.buildout

Project description

A Language Server for zc.buildout.

This language server is implemented using pygls.



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.



  • ${ or [ complete sections.
  • ${section: complete section's options. If section uses a known recipe, dynamic options from the recipe are also completed.
  • ${buildout:extends} completes filenames.
  • ${buildout:parts} and <= option completes parts.


  • 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


  • Sections and options are shown are displayed in outline as symbols.


  • ${buildout:extends} are links.

Go to definitions

  • from ${section:options} we can go to the location where option is defined in section, or to section header if it's not defined.
  • from <= section we can go to section.
  • from ${buildout:extends} we can go to the extended profile.


  • 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 extends each other. It does not look in templates either.

Code actions

  • update a python package from [versions] to its latest version on pypi
  • compute the md5sum of 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.


All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.


0.13.0 - 2024-07-04


  • semantic_tokens: highlight python code in options
  • completions: complete existing sections within [ to override existing sections.
  • hover: improve hover of known recipes
  • Add support for plone.recipe.zope2instance


  • completions: don't add an extra newline when completing ${buildout:parts}

0.12.0 - 2023-10-08

  • support python 3.12
  • version up dependencies


  • hover: fix crash when opening without opening a folder (by updating pygls)

0.11.0 - 2023-10-04


  • code actions: support cancellation of md5sum command


  • hover: fix crash when opening outside of workspace folder

0.10.1 - 2023-09-20


  • revert: code actions: support cancellation of md5sum command, this needs an unreleased pygls

0.10.0 - 2023-09-20


  • code actions: support cancellation of md5sum command
  • references: support cancellation

0.9.3 - 2023-09-19


  • server: Fix crash when hover in gitlens views
  • client,server: update dependencies

0.9.2 - 2023-02-24


  • server: fixed definition of python_requires

0.9.1 - 2023-02-24


  • client: version up dependencies

0.9.0 - 2023-01-01


  • update to pygls 1.0

0.8.3 - 2022-11-06


  • client: revert to older vscode and vscode-languageclient dependencies


  • server: support more slapos recipes

0.8.2 - 2022-10-29


  • client: install with requirements.txt to install a fixed version


  • client: version up dependencies
  • server: support python 3.11

0.8.1 - 2022-07-03


  • code_actions: fix visit project on pypi when invoked from option key
  • aiohttp: don't set global timeout

0.8.0 - 2022-07-02


  • switch from requests to aiohttp. Doing http requests asynchronously and in the case of pypi diagnostics, concurrently.
  • diagnostic: lower severity of option redefined to same value to information level
  • diagnostic: add hint level diagnostic for every redefined value
  • cli: new --log-pygls flag to include pygls logs. By default they are not included.
  • diagnostic: report unknown pypi projects or versions


  • pypi: fix a crash when unknown project is listed in versions
  • diagnostic: don't emit false positives for profiles generated with jinja
  • fix crash with empty ${buildout:extends}

0.7.1 - 2022-05-08


  • recipe: support defining deprecated options
  • recipe: support slapos.recipe.template version 0.5


  • recipe: fix some markdown syntax in recipe docs

0.7.0 - 2022-04-03


  • code actions: report progress when updating md5sum
  • expose commands to start & stop profiling.


  • significantly improve performance by implementing .copy() method and using an intermediate cache.
  • fix crash when completing option made only of space
  • fix crash when completing after ${}

0.6.2 - 2022-01-06


  • fix a packaging mistake with the vscode extension

0.6.1 - 2022-01-04


  • fix problems with automatic publishing of packages

0.6.0 - 2022-01-04


  • diagnostic: report versions with known vulnerabilities
  • code action: update a python package listed in versions to latest version
  • code action: view a python package page on pypi
  • code action: compute md5sum of an url


  • support for python 3.6, minimal supported version is now 3.7


  • completions: don't offer completions in comments
  • fix performance issues by cancelling pending tasks actually the fix was wrong

0.5.0 - 2021-03-28


  • diagnostic: warn when options are redefining the current value
  • completions: complete existing options of current sections
  • diagnostic: support recipes with arbitrary options (like
  • diagnostic: report error when existing non existant profiles


  • stop emitting false positives diagnostics with multi line jinja
  • stop emitting false positives diagnostics for missing sections/options when extending dynamic profile
  • fixed "add line comment" action

0.4.0 - 2020-10-08


  • don't skip lines containing jinja expressions. This was causing some missing options when jinja was used in option
  • diagnostic: tolerate unknown part when extends jinja

0.3.0 - 2020-02-23


  • support http URLs in ${buildout:extends}

0.2.1 - 2020-04-25


  • references: consider listing a section in ${buildout:parts} as a reference.
  • completions: use textEdit to properly overwrite exiting text.
  • all: debounce protocol functions to accept cancellations.
  • all: fix errors when opening profiles outside of workspace.

0.2.0 - 2020-02-12


  • support running with buildout < 2.9.3
  • initial support of instance.cfg defined using slapos.recipe.template:jinja2


  • fixed broken v0.1.1 release, it could not be installed from pypi.
  • diagnostics: prevent "missing required options" false positive on sections used only as macros.
  • diagnostic: Correctly analyze sections with . or - in their names
  • diagnostic: Fix false positives on ${buildout:parts} with extended sections
  • diagnostic: Fix false positives on ${buildout:parts} when dynamically adding parts with jinja.

0.1.1 - 2020-01-30


  • definitions: paths from ${buildout:extends} can also be opened with jump to definition.
  • completions: fix insertText with -.
  • diagnostics: detect missing non existant sections listed in ${buildout:parts}.
  • diagnostics: detect sections without recipe listed in ${buildout:parts}.

0.1.0 - 2020-01-04

  • Initial Version

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zc_buildout_languageserver-0.13.0.tar.gz (71.5 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page