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

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

  • Comments

    • jesingh
      over 1 year ago by jesingh | Reply

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

    Similar Projects

    This project is one of its kind!