Skip to main content

A Language Server Protocol implementation for *craft files.

Project description

craft-ls

GitHub Actions Workflow Status

Get on
PyPI - Version FlakeHub Snap - Version VSCode Marketplace

craft-ls is a Language Server Protocol implementation for *craft[^1] tools.

craft-ls enables editors that support the LSP to get quality of life improvements while working on *craft configuration files.

Features

Feature Snapcraft Rockcraft Charmcraft
Diagnostics
Symbol documentation
Autocompletion

https://github.com/user-attachments/assets/e4b831b5-dcac-4efd-aabb-d3040899b52b

Usage

Installation

Using uv or pipx

uv tool install craft-ls

pipx install craft-ls

Setup

Helix

# languages.toml
[[language]]
name = "yaml"
language-servers = ["craft-ls"]

[language-server.craft-ls]
command = "craft-ls"

TBD: neovim, VSCode

Roadmap

Project availability:

  • Python package
  • Snap
  • Nix flake
  • VSCode extension

Features:

  • Diagnostics
  • Autocompletion on typing
  • Symbol documentation

Ecosystem:

  • Encourage *craft tools to refine their JSONSchemas even further

[^1]: only snapcraft and rockcraft so far

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

craft_ls-0.2.1.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

craft_ls-0.2.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file craft_ls-0.2.1.tar.gz.

File metadata

  • Download URL: craft_ls-0.2.1.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for craft_ls-0.2.1.tar.gz
Algorithm Hash digest
SHA256 557ee61fa5fd0d683c7ec715b610ecd885e25a154da0d06d0f66441533c72f42
MD5 6c70eb2d798e94b67b11ce50676eddfc
BLAKE2b-256 4247a95cde9830dfc69a2bfd53e21aa2d86d5bcfacb5a66ff2673d329b02a671

See more details on using hashes here.

Provenance

The following attestation bundles were made for craft_ls-0.2.1.tar.gz:

Publisher: release.yaml on Batalex/craft-ls

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file craft_ls-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: craft_ls-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for craft_ls-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79e2da477a16872136bee34727ca861745a58a788845e2373be8ad427ac23fc1
MD5 f7161e05ee658d2b555636e4794e0d0b
BLAKE2b-256 6aaf72fdff42142da044755bfd602f1f1a982641aa639b9170f667d70e90bff1

See more details on using hashes here.

Provenance

The following attestation bundles were made for craft_ls-0.2.1-py3-none-any.whl:

Publisher: release.yaml on Batalex/craft-ls

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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