Language Server Protocol (LSP for friends) is used in a number of code editors these days. There are implementations for various languages, but none for Salt States.

The idea is to leverage Salt state module to parse edited files to provide completion of the state ids or paths.

Blog post about the state after HackWeek 20: bosdonnat.fr/hackweek-lsp.html

Source code on GitHub

Looking for hackers with the skills:

salt saltstack language-server-protocol vim emacs vscode python

This project is part of:

Hack Week 20

Activity

  • over 4 years ago: ybonatakis liked this project.
  • over 4 years ago: dancermak joined this project.
  • over 4 years ago: ccalancha liked this project.
  • over 4 years ago: cbosdonnat started this project.
  • over 4 years ago: cbosdonnat added keyword "salt" to this project.
  • over 4 years ago: cbosdonnat added keyword "saltstack" to this project.
  • over 4 years ago: cbosdonnat added keyword "language-server-protocol" to this project.
  • over 4 years ago: cbosdonnat added keyword "vim" to this project.
  • over 4 years ago: cbosdonnat added keyword "emacs" to this project.
  • over 4 years ago: cbosdonnat added keyword "vscode" to this project.
  • over 4 years ago: cbosdonnat added keyword "python" to this project.
  • over 4 years ago: dancermak liked this project.
  • over 4 years ago: RDiasMateus liked this project.
  • over 4 years ago: j_renner liked this project.
  • over 4 years ago: pagarcia liked this project.
  • over 4 years ago: agraul liked this project.
  • over 4 years ago: cbosdonnat originated this project.

  • Comments

    • cbosdonnat
      over 4 years ago by cbosdonnat | Reply

      baredoc module may also be helpful

    • agraul
      over 4 years ago by agraul | Reply

      The discussion at https://github.com/glynnforrest/salt-mode/issues/17 (which is about adding auto-completion to Emacs' Salt plugin) has some interesting ideas and also mentions the rather new baredoc module.

    • pagarcia
      over 4 years ago by pagarcia | Reply

      Lovely. You should get in touch with Dan Cermak.

      Also, are you aware of this? VS Code SaltStack Extension Pack

      • cbosdonnat
        over 4 years ago by cbosdonnat | Reply

        Yes, I'm aware of this extension pack, but FWICT it doesn't offer real completely based on state ids for instance

    • dancermak
      over 4 years ago by dancermak | Reply

      Given that salt is written in Python, I would suggest to look into pygls.

      • cbosdonnat
        over 4 years ago by cbosdonnat | Reply

        You made my day! now it seems a more accessible idea :)

    Similar Projects

    Modal editor in Rust by acervesato

    Description

    To write a modal editor in Rust inspired by vim and having the following features:

    • vim basic motion commands + insert/visual mode
    • multiple buffers with tabs
    • status bar

    It should be written for terminal only using ratatui library and crossterm.

    Goals

    The goal is to start with a functional prototype that can be extended in the future with the following features (in random order):

    • treesitter support + styles
    • fuzzy finder
    • grep finder
    • integration with git
    • tree viewer
    • internal terminal floating window
    • mailing list workflow integration

    Resources


    Update M2Crypto by mcepl

    There are couple of projects I work on, which need my attention and putting them to shape:

    Goal for this Hackweek

    • Put M2Crypto into better shape (most issues closed, all pull requests processed)
    • More fun to learn jujutsu
    • Play more with Gemini, how much it help (or not).
    • Perhaps, also (just slightly related), help to fix vis to work with LuaJIT, particularly to make vis-lspc working.


    Implement a GTD-like productivity solution using emacs org-mode by gniebler

    Description

    I've got the beginnings of this, but I haven't worked through the GTD book yet and my understanding is limited.

    I do know most of the ins and outs of org-mode, though.

    Goals

    I have a working GTD-like productivity solution for my own daily use that uses org-mode text files as its central components.

    Resources


    Update M2Crypto by mcepl

    There are couple of projects I work on, which need my attention and putting them to shape:

    Goal for this Hackweek

    • Put M2Crypto into better shape (most issues closed, all pull requests processed)
    • More fun to learn jujutsu
    • Play more with Gemini, how much it help (or not).
    • Perhaps, also (just slightly related), help to fix vis to work with LuaJIT, particularly to make vis-lspc working.


    Improve/rework household chore tracker `chorazon` by gniebler

    Description

    I wrote a household chore tracker named chorazon, which is meant to be deployed as a web application in the household's local network.

    It features the ability to set up different (so far only weekly) schedules per task and per person, where tasks may span several days.

    There are "tokens", which can be collected by users. Tasks can (and usually will) have rewards configured where they yield a certain amount of tokens. The idea is that they can later be redeemed for (surprise) gifts, but this is not implemented yet. (So right now one needs to edit the DB manually to subtract tokens when they're redeemed.)

    Days are not rolled over automatically, to allow for task completion control.

    We used it in my household for several months, with mixed success. There are many limitations in the system that would warrant a revisit.

    It's written using the Pyramid Python framework with URL traversal, ZODB as the data store and Web Components for the frontend.

    Goals

    • Add admin screens for users, tasks and schedules
    • Add models, pages etc. to allow redeeming tokens for gifts/surprises
    • …?

    Resources

    tbd (Gitlab repo)


    Enhance git-sha-verify: A tool to checkout validated git hashes by gpathak

    Description

    git-sha-verify is a simple shell utility to verify and checkout trusted git commits signed using GPG key. This tool helps ensure that only authorized or validated commit hashes are checked out from a git repository, supporting better code integrity and security within the workflow.

    Supports:

    • Verifying commit authenticity signed using gpg key
    • Checking out trusted commits

    Ideal for teams and projects where the integrity of git history is crucial.

    Goals

    A minimal python code of the shell script exists as a pull request.

    The goal of this hackweek is to:

    • Add more unit tests
    • Make the python code modular
    • Add code coverage if possible

    Resources


    Bring to Cockpit + System Roles capabilities from YAST by miguelpc

    Bring to Cockpit + System Roles features from YAST

    Cockpit and System Roles have been added to SLES 16 There are several capabilities in YAST that are not yet present in Cockpit and System Roles We will follow the principle of "automate first, UI later" being System Roles the automation component and Cockpit the UI one.

    Goals

    The idea is to implement service configuration in System Roles and then add an UI to manage these in Cockpit. For some capabilities it will be required to have an specific Cockpit Module as they will interact with a reasource already configured.

    Resources

    A plan on capabilities missing and suggested implementation is available here: https://docs.google.com/spreadsheets/d/1ZhX-Ip9MKJNeKSYV3bSZG4Qc5giuY7XSV0U61Ecu9lo/edit

    Linux System Roles: https://linux-system-roles.github.io/


    Improve chore and screen time doc generator script `wochenplaner` by gniebler

    Description

    I wrote a little Python script to generate PDF docs, which can be used to track daily chore completion and screen time usage for several people, with one page per person/week.

    I named this script wochenplaner and have been using it for a few months now.

    It needs some improvements and adjustments in how the screen time should be tracked and how chores are displayed.

    Goals

    • Fix chore field separation lines
    • Change screen time tracking logic from "global" (week-long) to daily subtraction and weekly addition of remainders (more intuitive than current "weekly time budget method)
    • Add logic to fill in chore fields/lines, ideally with pictures, falling back to text.

    Resources

    tbd (Gitlab repo)