An implementation of the client side of the LSP protocol, useful for embedding easily in your editor.
Project description
sansio-lsp-client
An implementation of the client side of the LSP protocol, useful for embedding easily in your editor.
Developing
$ git clone https://github.com/PurpleMyst/sansio-lsp-client
$ cd sansio-lsp-client
$ python3 -m venv env
$ source env/bin/activate
(env)$ pip install --upgrade pip
(env)$ pip install poetry
(env)$ poetry install
Most tests don't work on Windows, but GitHub Actions runs tests of all pull requests and uploads coverage files from them. TODO: add instructions for looking at coverage files on Windows
To run tests, first download the langservers you need.
You can mostly read .github/workflows/test.yml
, but the Go langserver is a bit of a gotcha.
You will need to install go from https://golang.org/,
because the one from sudo apt install golang
is too old.
Extract it inside where you cloned sansio-lsp-client
so that you get an executable named sansio-lsp-client/go/bin/go
.
$ tar xf ~/Downloads/go1.16.5.linux-amd64.tar.gz
Once you have installed all langservers you want, you can run the tests:
(env)$ PATH="$PATH:$(pwd)/go/bin" poetry run pytest -v
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
Built Distribution
Hashes for sansio_lsp_client-0.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606fb96ddf58406cc81e5f065cd7c6c5b0df66a9415e2b03a0c38b15f8b1de72 |
|
MD5 | dcaa36110f964fd32d653c170173cbcc |
|
BLAKE2b-256 | 51218272adbbea72e987e724bc44234bad4a7fe949de024436b178ad4b08c872 |