Re: [Vala] Autocomplete with Vala



Thanks! thats exactly what I was looking for :)


Just so people know, I was recently informed that exuberant-ctags can
support basic autocomplete functions by running

ctags -R --langmap="C#:.vala"

in a directory containing vala source. Its not a perfect solution by
far, but for those of you like me that have a really hard time with
some of the dumb stuff, its enough to make using vala a real prospect
for those bigger projects (when you don't feel like copying and
pasting long method names ;) )

Now while ctags is a great project (I'm a vim guy.. so yeah) it's not
the best that autocomplete for vala can be, the lack of any real
intelligence when it comes to options, and parameters, (but mostly)
with association. I still think that supporting monodevelops
autocomplete is a better goal, but the ctags does sure make life less
painful ;) (I'm also more inclined to consider working on vala
autocomplete support in vala, read anjunta. there isn't monodevelop's
fantastic plugin system, but it still, its within reason)


On 9/27/07, Jürg Billeter <j bitron ch> wrote:
On Thu, 2007-09-27 at 17:16 -0400, Kevin Kubasik wrote:
On 9/27/07, Jan Van Buggenhout <chipzz safehex be> wrote:
On 2007-09-27 20:33:12 (+0000), J?rg Billeter <j bitron ch> wrote:

On Thu, 2007-09-27 at 16:24 -0400, Kevin Kubasik wrote:
Another thing, I'm trying to determine exact syntactical rules
for
vala (primarily where/how they differ from those of C#) any guidance
or documentation in this regard would be awesome.

We're still working on the documentation part, will hopefully be able to
invest more time for that in the following weeks.

Thats completely cool, I understand. However, just for my
planning/sanity, I really need to determine if its worth starting this
by basically copying over the C/C++ support plugin,  or the C# support
plugin. I'm thinking that most of the vala-c# differences are with
behaviour and libs, but when it comes to raw syntax, were talking very
very small changes. If thats the case, I can keep much of the insert
and parsing logic, all I have to do it tear out the
reflection/introspection component, which with the use of libvala,
shouldn't be an overly lengthy process. As monodevelop uses
Gtksourceview, we get syntax highlighting for 'free'. Anyways, I don't
need a complete or super-accurate list, just if there are any big
differences, (or smaller common ones) noting them would be a great
help before I get too deep into an evaluation of the C# parser.

The basic syntax is very similar to the C# syntax, however there are
some enhancements / changes at various places. For example namespace
prefix in type declarations, see at the bottom of [1], construct
properties, see [2], differences in the declaration of interface
members, see [2], differences in object creation, see [3], signal vs.
event declaration syntax, see [4], or non-null types, see [5].

Jürg

[1] http://www.vala-project.org/doc/vala/classes.html
[2] http://live.gnome.org/Vala/Syntax
[3] http://live.gnome.org/Vala/Syntax/ObjectConstruction
[4] http://live.gnome.org/Vala/Signals
[5] http://live.gnome.org/Vala/FAQ




-- 
Cheers,
Kevin Kubasik
http://kubasik.net/blog



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