Makefile language server
Project description
make-ls
make-ls is a Makefile language server written in Python.
It is still early, but it is already useful for real Makefiles. The server uses
an owned line-based Make parser and checks recipe shell syntax with bash -n.
What it does
- hover for targets and variables
- hover for common GNU Make directives, functions, builtin variables, and special targets
- go-to-definition for targets and variables
- find references for targets and variables
- rename for variables
- diagnostics for Makefile syntax
- diagnostics for shell syntax inside recipes
- target lookup through explicit
include,-include, andsincludedirectives
What it does not do yet
- full GNU Make evaluation
- complete include-path expansion and evaluation
- completion or code actions
Run it
uv sync --all-groups
uv run make-ls
Any editor that can start a stdio LSP can use it.
Neovim
vim.lsp.config("make-ls", {
cmd = { "uv", "run", "--directory", "/path/to/make-ls", "make-ls" },
filetypes = { "make" },
root_markers = { "Makefile", "makefile", "GNUmakefile", ".git" },
})
vim.lsp.enable("make-ls")
Development
make check
make test
make build
Release
Stable releases from .github/workflows/releases.yml publish GitHub assets and
upload the tagged distribution to PyPI with trusted publishing. Configure PyPI
to trust .github/workflows/releases.yml and, if you keep it, the pypi
environment.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file make_ls-0.3.0.tar.gz.
File metadata
- Download URL: make_ls-0.3.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d0fab40b9b00d1863893d34de10216d995cd4fa474860ddb1f90814cf39726
|
|
| MD5 |
4bb14101570f1929eb4412ec0b9143df
|
|
| BLAKE2b-256 |
0c425593f1233f2907278dd20286f4168b7314ef94ffe2f1d936901be963b657
|
Provenance
The following attestation bundles were made for make_ls-0.3.0.tar.gz:
Publisher:
releases.yml on lewis6991/make-ls
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
make_ls-0.3.0.tar.gz -
Subject digest:
35d0fab40b9b00d1863893d34de10216d995cd4fa474860ddb1f90814cf39726 - Sigstore transparency entry: 1359264438
- Sigstore integration time:
-
Permalink:
lewis6991/make-ls@467c18a3245676d933fd735e610b5fde321828fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lewis6991
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
releases.yml@467c18a3245676d933fd735e610b5fde321828fc -
Trigger Event:
push
-
Statement type:
File details
Details for the file make_ls-0.3.0-py3-none-any.whl.
File metadata
- Download URL: make_ls-0.3.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b462f23cdeecc31c82fb1d1d133e351c79f993565f2dc1ef6ab554d79821b81f
|
|
| MD5 |
4ec436a9017c19ebd2fc347848a9c25f
|
|
| BLAKE2b-256 |
b30b06b6045e5b1f7c003e5c4d176ffe44cc36c30dbcaea4de0e59b0e0c7e830
|
Provenance
The following attestation bundles were made for make_ls-0.3.0-py3-none-any.whl:
Publisher:
releases.yml on lewis6991/make-ls
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
make_ls-0.3.0-py3-none-any.whl -
Subject digest:
b462f23cdeecc31c82fb1d1d133e351c79f993565f2dc1ef6ab554d79821b81f - Sigstore transparency entry: 1359264440
- Sigstore integration time:
-
Permalink:
lewis6991/make-ls@467c18a3245676d933fd735e610b5fde321828fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lewis6991
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
releases.yml@467c18a3245676d933fd735e610b5fde321828fc -
Trigger Event:
push
-
Statement type: