Re: [Vala] Autocomplete server



Yannick have started a vala-editor widget at:

https://github.com/inizan-yannick/vala-editor

But what we need at the end is:

An Object able to parse Vala documents and propose completion. MonoDevelop,
for C# can provide you options just related with the object you are trying
to access methods/properties.

A server providing parallel parsing and completion, could be an option, but
may not a server but a stable library, from Valencia for example, designed
in a way it can provide completion and error highlight to GEdit and Builder.

Actual Builder implementation is difficult to track, because is really
complex, see at Bug:

https://bugzilla.gnome.org/show_bug.cgi?id=764752






2016-04-21 14:55 GMT-05:00 Ben Iofel <iofelben gmail com>:

libvala is probably the only way to do this
I have generated valadoc for libvala on my website
https://iofel.me/libvala/libvala/index.htm

On Thu, Apr 21, 2016 at 3:53 PM Thiago Jedi <thiagoa7 gmail com> wrote:

Hey guys.

First of all, Vala is awesome. I'm kinda new in the Vala world, but as
a C# developer, I found myself willing to invest my time learning the
language. I like the idea of a familiar syntax with powerfull
performance.

I use the new Visual Studio Code IDE/Editor and decide to develope the
plugin for Vala [0]. I already have syntax highlight, I'm writing the
snippets, and I was wondering how much work it would take to bring
autocompletion to that editor.
I mean, I searched a little and found a lot of discontinued projects
(like libafrodite) and others tightly integrated with host editor.

I think it'd be nice to have a language server which is independent
from editors. Something like the OmniSharp project for the C# language
[1].

After my little research this last couple weeks, here's what I got:

1. The best autocomplete behavior I found (imho) was the Valencia
plugin for Gedit. But it had to rewrite all of the tokens that is
already on the libvala.

2. The autocomplete with the cleanest code was in Anjuta's Vala plugin,
which uses libvala extensivelly.

I didn't want to reinvent the wheel, libvala seems to do all the
heavylifting, so I tried to mimic the Anjuta's behavior, but I got
stuck in some issues like the class base types returning null.

Then I came here for help. Am I in the right track? Where can I find
documentation about libvala? Or is it just not worth it and I should
use another (existing) tool?

Thank you for your attention.

Thiago Abreu

[0] - https://github.com/thiagoabreu/vala-code
[1] - http://www.omnisharp.net/
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list




-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los
cuates: LIBRE)


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