GNOME Bugzilla – Bug 538021
Support writing plugins in Vala
Last modified: 2008-08-25 12:15:34 UTC
Hi, I've opened this bug to track the first phase of my GSoC project, I'll post the patches here soon (maybe on Saturday). I'm going to put the vapi (should I include other files needed to generate it?), a little tutorial, and a project template. (the latter is what's left to do).
Created attachment 112848 [details] [review] adds Vala API, a little plugin tutorial (uncomplete), and a template for a plugin project 2008-06-16 Abderrahim Kitouni <a.kitouni@gmail.com> * plugins/project-wizard/templates/anjuta-plugin-vala*: * configure.in, plugins/project-wizard/templates/Makefile.am: Added a template for an Anjuta plugin in Vala. * manuals/reference/libanjuta/writing-plugins-vala.sgml: * manuals/reference/libanjuta/libanjuta-docs.sgml: Added a little tutorial. * libanjuta/anjuta-plugin-description.h, libanjuta/anjuta-session.h: Removed two extra semicolons that gobject-introspection parser didn't like. * libanjuta/libanjuta-1.0.vapi, libanjuta/libanjuta-1.0.deps: * libanjuta/Makefile.am, libanjuta/vapigen/* Added Vala API bindings along with files needed to regenerate them.
Thanks for addings this patch! I won't apply it now as I guess you are working on a more complete version already including some language-support-vala plugin.
I think this patch is big enough, I won't put everything in one patch. Nevertheless, I'll update it and polish it a bit. I'm thinking of dividing my work to several bug reports (2 or 3) in order to have smaller patches. (I'm missing mercurial queues :-( )
*** Bug 534985 has been marked as a duplicate of this bug. ***
OK, this is in trunk now. Anyway, I cannot compile the sample vala plugin! Which version of vala are you using?
I'm getting this when compiling creating libgladeanjuta.la (cd .libs && rm -f libgladeanjuta.la && ln -s ../libgladeanjuta.la libgladeanjuta.la) make[4]: *** No rule to make target `libanjuta-1.0.vapi', needed by `all-am'. Stop. If I look at libanjuta/Makefile.am I don't really see how libanjuta-1.0.vapi should be generated with the current code. vapigen should be called from the makefile I think
sorry, forgot to add this file to svn...
(In reply to comment #5) > OK, this is in trunk now. Anyway, I cannot compile the sample vala plugin! > Which version of vala are you using? > I'm using Vala SVN, but this may be a problem with a case I haven't tested. What error does it report ?
It works with trunk - I messed up my vala version somehow. Sorry for the noise!
Naba decided he doesn't want to have the bindings directly in anjuta trunk so I have removed them for now. Could you please create a patch for the bindings against vala? This is very all other language bindings are located. Thanks!
I am closing this bug for now. We might consider to add some kind of anjuta-extras module to gnome svn after 2.24 and bundle python and vala bindings as well as other third-party plugins there. For now, the standalone version of the vala plugin is available here: http://abderrahim.arablug.org/blog/