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!
This project is part of:
Hack Week 22 Hack Week 23
Activity
Comments
-
2 days ago by Diana1327 | Reply
Step into a vibrant world filled with blocks and endless possibilities. In this game, you gather materials, craft items, and build structures. Miniblox focuses on survival and creativity, encouraging players to use their imagination and strategic thinking to thrive in a constantly evolving landscape.
Similar Projects
Switch software-o-o to parse repomd data by hennevogel
Currently software.opensuse.org search is using...