Has anybody ever heard about RPM Spec LSP server? That would be awesome thing to have (at least for completion)?

The best I know is this: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/KBJYLQZ6VNSCWBNC7Y72HTBJ6EQDVFMX/

Hmm, I wonder whether vis-lspc works with null-ls. Interesting idea!

I am also on board on creating a LSP server for RPM spec so now we just need another hackweek (edited)

I also don't think it should be too hard, we just need to cover the non-bash parts and tell the editor to use bash lsp for %prep %build, %install and %check

as someone who wrote an LSP server before… "I don't think it should be too hard" - famous last words

In this case it just reads RPM macro and knows about the basic RPM stuff, so it should be way more trivial than the average LSP server

sure, and then you'll want to deal with multiple distros defining their own macros, or m4 parsing and lua

and let's focus on the important parts: which programming language? I know LSP client libs in Python and Node. Any additional contenders you want to throw into the ring?

I am willing to do Python or Lua, I would rather not dive to the cesspit of JS libraries.

Goal for this Hackweek

At least a minimal LSP server able to parse most normal openSUSE SPEC files, if possible code completion of the standard SPEC keywords (“BuildRequires:” et al).

Resources

The project's repository is https://github.com/dcermak/rpm-spec-language-server … see you there!

Looking for hackers with the skills:

lsp rpm packaging spec

This project is part of:

Hack Week 22 Hack Week 23

Activity

  • 9 months ago: Pharaoh_Atem liked this project.
  • 9 months ago: jesingh joined this project.
  • 9 months ago: uncomfyhalomacro liked this project.
  • 9 months ago: gleidi liked this project.
  • 9 months ago: dgarcia liked this project.
  • 9 months ago: enavarro_suse liked this project.
  • about 1 year ago: kstreitova liked this project.
  • about 1 year ago: dancermak liked this project.
  • about 1 year ago: dancermak joined this project.
  • about 1 year ago: mcepl started this project.
  • about 1 year ago: mcepl added keyword "lsp" to this project.
  • about 1 year ago: mcepl added keyword "rpm" to this project.
  • about 1 year ago: mcepl added keyword "packaging" to this project.
  • about 1 year ago: mcepl added keyword "spec" to this project.
  • about 1 year ago: mcepl originated this project.

  • Comments

    • jesingh
      9 months ago by jesingh | Reply

      https://github.com/openlawlibrary/pygls < pygls looks like it'll give us a quick and easy start

    • tomholland
      about 2 months ago by tomholland | Reply

      I also think it shouldn't be that hard. io games

    Similar Projects

    Switch software-o-o to parse repomd data by hennevogel

    Currently software.opensuse.org search is using...