Re: [Vala] Vala completion support for vim



Hi Damien,

I cannot look into it right now, because I am on holidays until next Monday.

However, if you could mail me what have done by then (or tell me if you are
using a public  repository) , I am willing to have a look at it.

Just checking : Have you tried using gdb to try to assess what is going
wrong ?

Perhaps addressing a mail directly to the author of vtg (Andrea Del Signore)
could help as well.

Serge.



On Tue, Aug 30, 2011 at 1:15 AM, Damien Radtke <damienradtke gmail com>wrote:

Thanks for the suggestion. I began looking into it, but have run into
a couple of problems. I successfully built afrodite from the VTG
source, but ran into some issues when trying to compile a program that
uses it.

1. First, there's an inconsistency with naming. The installed library
generates afrodite-0.12.vapi for the vala api, but uses
libafrodite-0.12.pc for pkg-config, so if --pkg=libafrodite-0.12 is
used then valac can't find it, but if --pkg=afrodite-0.12 is used,
then the needed cflags and libs aren't included. I had to manually
rename the vapi file to libafrodite-0.12.vapi in order to get it to
compile.

2. Even after compilation succeeds, trying to use the library causes
the program to end in a segfault. For example, I have a simple program
that creates a new CodeDom object, and while the object creation
itself doesn't cause the program to crash (print statements placed
afterwards still show up), returning from main then results in a
segmentation fault. Removing the CodeDom object fixes it.

I would appreciate it if someone could help get these problems solved
so that Vim can get its completion plugin as soon as possible. =)

~Damien

On Sun, Aug 28, 2011 at 11:16 PM, Serge Hulne <serge hulne gmail com>
wrote:
Hi Damien,

I agree with Brian:

Vala Toys for GEdit uses a good module. You may want to kook at it.

http://code.google.com/p/vtg/


Here is a hint on how to use it:

vtg contains a module called afrodite which parses the vala source to
process.

Said module contains a file named test-basic.vala which contains
examples on how use the module.



http://gitorious.org/vala-toys/vala-toys/blobs/master/afrodite/tests/tests-basic.vala



A Vim auto-completion plugin for vala would be greatly appreciated.
(The solutions using GTK or Gedit plugins are not yet portable to Mac
OS X (or stable versions of Linux ) )

Here are two other hints, namely: The auto-complete plugins  for
Python and Go, resp.

Python:
http://rope.sourceforge.net/ropevim.html

Go:
https://github.com/nsf/gocode

Serge.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]