Skip to content

Add support for various debian source files (debian/{tests/control,control,copyright,watch,upstream/metadata})#5107

Open
jelmer wants to merge 8 commits intodense-analysis:masterfrom
jelmer:add-debian-lsp
Open

Add support for various debian source files (debian/{tests/control,control,copyright,watch,upstream/metadata})#5107
jelmer wants to merge 8 commits intodense-analysis:masterfrom
jelmer:add-debian-lsp

Conversation

@jelmer
Copy link

@jelmer jelmer commented Mar 17, 2026

This adds support for a number of file formats used in Debian source packages, as supported by the debian-lsp.

I've added basic tests and manually tested that things work.

Since this is a single LSP that supports a number of different file formats, this PR feels a bit repetitive. I've tried to stick to the pattern I saw for other formats, but if you'd rather I consolidate some of the entries and documentation files, please let me know.

jelmer added 8 commits March 17, 2026 18:28
Add Language Server Protocol support for debian/tests/control files
using debian-lsp (https://github.com/jelmer/debian-lsp).

Vim detects these files as filetype 'autopkgtest' by default.
Add Language Server Protocol support for debian/control files using
debian-lsp (https://github.com/jelmer/debian-lsp).

debian-lsp provides diagnostics, completions, and code actions for
Debian package control files.
Add Language Server Protocol support for debian/copyright files using
debian-lsp (https://github.com/jelmer/debian-lsp).
Add Language Server Protocol support for debian/changelog files using
debian-lsp (https://github.com/jelmer/debian-lsp).
Add Language Server Protocol support for debian/source/format files
using debian-lsp (https://github.com/jelmer/debian-lsp).
Add Language Server Protocol support for debian/upstream/metadata
files using debian-lsp (https://github.com/jelmer/debian-lsp).

Note: Vim does not detect debian/upstream/metadata files by default.
Users need to add filetype detection to their vimrc:

  autocmd BufNewFile,BufRead */debian/upstream/metadata setfiletype debupstream
Add Language Server Protocol support for debian/watch files using
debian-lsp (https://github.com/jelmer/debian-lsp).

Note: Vim does not detect debian/watch files by default. Users need to
add filetype detection to their vimrc:

  autocmd BufNewFile,BufRead */debian/watch setfiletype debwatch
Update supported-tools.md, ale-supported-languages-and-tools.txt,
and ale.txt table of contents to include the new Debian filetype
linters (autopkgtest, debchangelog, debcontrol, debcopyright,
debsources, debupstream, debwatch).
@jelmer jelmer changed the title Add support for various debian source files (debian/{tests/control,control,copyright,watch,upstream/metadata} Add support for various debian source files (debian/{tests/control,control,copyright,watch,upstream/metadata}) Mar 17, 2026
@w0rp
Copy link
Member

w0rp commented Mar 19, 2026

Thanks for this! Looks like I'll need to find some time to run through ALE PRs again and get more things merged. I'll have a look when I can!

@w0rp w0rp self-assigned this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants