After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 538021 - Support writing plugins in Vala
Support writing plugins in Vala
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: libanjuta
SVN TRUNK
Other All
: Normal enhancement
: ---
Assigned To: Naba Kumar
Anjuta maintainers
: 534985 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-12 17:00 UTC by Abderrahim Kitouni
Modified: 2008-08-25 12:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adds Vala API, a little plugin tutorial (uncomplete), and a template for a plugin project (110.41 KB, patch)
2008-06-16 16:18 UTC, Abderrahim Kitouni
committed Details | Review

Description Abderrahim Kitouni 2008-06-12 17:00:55 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).
Comment 1 Abderrahim Kitouni 2008-06-16 16:18:02 UTC
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.
Comment 2 Johannes Schmid 2008-06-28 19:41:46 UTC
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.
Comment 3 Abderrahim Kitouni 2008-07-01 14:36:52 UTC
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 :-( )
Comment 4 Jaap A. Haitsma 2008-07-01 14:52:56 UTC
*** Bug 534985 has been marked as a duplicate of this bug. ***
Comment 5 Johannes Schmid 2008-07-07 16:03:22 UTC
OK, this is in trunk now. Anyway, I cannot compile the sample vala plugin! Which version of vala are you using?
Comment 6 Jaap A. Haitsma 2008-07-07 18:57:55 UTC
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
Comment 7 Johannes Schmid 2008-07-07 19:10:02 UTC
sorry, forgot to add this file to svn...
Comment 8 Abderrahim Kitouni 2008-07-08 10:13:00 UTC
(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 ?
Comment 9 Johannes Schmid 2008-07-08 18:06:57 UTC
It works with trunk - I messed up my vala version somehow. Sorry for the noise!
Comment 10 Johannes Schmid 2008-07-15 14:21:30 UTC
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!
Comment 11 Johannes Schmid 2008-08-25 12:15:34 UTC
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/