Skip to content

Introducing an Eclipse spec-file editor

A couple of weeks ago the guys in the Eclipse group in the office got together to try and hack together an initial version of a spec-file editor for Eclipse, and learn how to write editors for Eclipse in the process.

We spent a couple of hours on it and got it kinda working. It wasn’t really an editor because it didn’t have any extra editing features, but we did get some syntax highlighting done in addition to figuring out at a high level how Eclipse editors work.

Last week I spent some time fixing up our work on the editor. It still not much, but I have working and pretty nice looking syntax highlighting working right now. Take a look:

The squigly white line in the middle is my amazing artistic skills when combining 2 shots :).

Now I’m trying to figure out how to do content outlining, and the next step after that would probably be formatting or simple error highlighting. In the slightly further future we can have things like content-assist, validation (a.k.a. not-so-simple error highlighting), validation with external tools like rpmlint, and other goodies.

A lot of these features require parsing spec files, which right now isn’t that easy. I haven’t found any source of information that have a precise/formal definition of spec-file syntax. Basically I want to know 2 things:

  • What are the rules that rpmbuild/rpmlint use for reading or validating a spec file.
  • Is there a library that I can interface to that would do this for me?

I thought initially that rpmlib would be able to do the parsing, but the docs I read on it suggest that that would be outside of rpmlib’s scope.

Any ideas out there?

P.S. you can check out the editor at pserver:anonymous@sourceware.org:/cvs/eclipse under the rpm module. (Tip paste the CVS string pserver…/eclipse into Eclipse’s new CVS repository wizard).

9 Comments

  1. Greg wrote:

    Kewl — fun to build?

    Tuesday, August 15, 2006 at 8:24 pm | Permalink
  2. Education can prevent foreclosures
    NEWARK — As the number of term life insurance quotes foreclosures continues to increase in Licking County, some help may be available for families undergoing such a financial crisis — from an unlikely source.

    Sunday, August 27, 2006 at 8:03 am | Permalink
  3. Frederic wrote:

    Cool plugin but … as Sysadmin (and spec file maker ;-) I have no idea how-to build the jar from the cvs checkout.
    Can you post a how-to build the jar and/or add the plugin to eclipse ?

    Keep up the good work !

    Wednesday, August 30, 2006 at 4:18 pm | Permalink
  4. Igor wrote:

    Hi Frederic, thanks for the interest in the plugin :)

    There’s currently no easy infrastructure outside of eclipse to build the plugin, since it’s in very early stages, but
    you can do it by exporting the plugin from eclipse. I’ll make a short post later tonight about how to do that.

    Igor

    Wednesday, August 30, 2006 at 7:11 pm | Permalink
  5. Frederic wrote:

    Cool !!! Thanks Igor. Your blog will be my home page now ;-)

    Thursday, August 31, 2006 at 9:18 am | Permalink
  6. biox wrote:

    Guest Editorial By George Frazier
    Shelby County voters will face a real test of public responsibility when they go to the polls to decide the fate of a referendum to increase the sales tax by biox a percent on Nov. 7.

    Monday, October 30, 2006 at 7:31 pm | Permalink
  7. Axel wrote:

    I’m interested in this plugin, too. But I cannot access the CVS repository (I am connected to to internet via a proxy) and do not know how to build the jar file.

    Friday, November 17, 2006 at 3:10 am | Permalink
  8. AltaGid wrote:

    Hello! Help solve the problem.
    Very often try to enter the site, but says that the password is not correct.
    Regrettably use of remembering. Give like to be?
    Thank you!

    Monday, August 20, 2007 at 4:57 pm | Permalink
  9. Pochka wrote:

    Hello! It’s just ubeliavable INCREDIBLE porno videos collection! Привет! Здесь невероятно ОГРОМНАЯ коллекция порно видео роликов! И она доступна к скачиванию!!!

    Sunday, October 5, 2008 at 2:47 am | Permalink

One Trackback/Pingback

  1. Rant City » Blog Archive » Eclipse Specfile Editor Outline on Friday, August 18, 2006 at 4:14 pm

    [...] Igor and I spent some time today working on an outline for the specfile editor that we started. With not too much work, we got it working: [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*