Makefile language server
Project description
make-ls
make-ls is a Makefile language server written in Python.
It uses an owned Make parser and checks recipe shell syntax with bash -n.
Features
- hover, go-to-definition, and references for targets and variables
- variable rename
- quick fixes for unknown variables that add an empty assignment
- quick fixes for unresolved prerequisites that create a target stub recipe
checksubcommand for batch diagnostics- hover for common GNU Make directives, functions, builtin variables, and special targets
- diagnostics for Makefile syntax
- diagnostics for unresolved plain prerequisites
- diagnostics for shell syntax inside recipes
- target lookup through explicit
include,-include, andsincludedirectives
Limits
- no full GNU Make evaluation
- include resolution is still limited
- no completion yet
Install
uv tool install make-ls
Run
make-ls
In stdio LSP mode this writes logs to $XDG_STATE_HOME/make-ls/, or
~/.local/state/make-ls/ when XDG_STATE_HOME is unset. The default file name
is a stable hash derived from the launch directory.
To override the log path:
make-ls --log-file /tmp/make-ls.log --log-level debug
To disable file logging entirely:
make-ls --no-log-file
Lint files or directories:
make-ls check Makefile rules.mk
make-ls check .
make-ls check --format json . > make-ls.sarif
For local development:
uv sync --all-groups
uv run make-ls
Neovim
vim.lsp.config('make-ls', {
cmd = { 'make-ls' },
filetypes = { 'make' },
root_markers = { 'Makefile' },
})
vim.lsp.enable("make-ls")
With the default cmd = { 'make-ls' }, Neovim LSP logs land in a launch-path
specific file under the XDG state log directory.
Development
make check
make test
make build
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.4.0.tar.gz.
File metadata
- Download URL: make_ls-0.4.0.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80b2cecf78dcdb3872e243bc26f4516a020a04bcdbdd36ba11bf426dbba65992
|
|
| MD5 |
c89bcb036afb225a709a41dacfa9eca4
|
|
| BLAKE2b-256 |
c053f8c7151ef3c8e68e9fd9247cc9810503ac94b37e150aeca28256fc98aeb5
|
Provenance
The following attestation bundles were made for make_ls-0.4.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.4.0.tar.gz -
Subject digest:
80b2cecf78dcdb3872e243bc26f4516a020a04bcdbdd36ba11bf426dbba65992 - Sigstore transparency entry: 1368205435
- Sigstore integration time:
-
Permalink:
lewis6991/make-ls@2f3a7c0da6016ebb2da7199f4abfd7b9724bc2a6 -
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@2f3a7c0da6016ebb2da7199f4abfd7b9724bc2a6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file make_ls-0.4.0-py3-none-any.whl.
File metadata
- Download URL: make_ls-0.4.0-py3-none-any.whl
- Upload date:
- Size: 39.0 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 |
8c374b568c17100e8d417c68a3bcab6cae10529f67df27820d1c6df6f8ba00ac
|
|
| MD5 |
b26f39b8f909da20628f33a3d1b7fd6c
|
|
| BLAKE2b-256 |
c5096b5e2bb9cd08d068727d208487dec95fc443cc595c2abb6a225f51a0f36c
|
Provenance
The following attestation bundles were made for make_ls-0.4.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.4.0-py3-none-any.whl -
Subject digest:
8c374b568c17100e8d417c68a3bcab6cae10529f67df27820d1c6df6f8ba00ac - Sigstore transparency entry: 1368205475
- Sigstore integration time:
-
Permalink:
lewis6991/make-ls@2f3a7c0da6016ebb2da7199f4abfd7b9724bc2a6 -
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@2f3a7c0da6016ebb2da7199f4abfd7b9724bc2a6 -
Trigger Event:
push
-
Statement type: