pt123
December 5th, 2009, 02:59 AM
I am trying to install the Vala plugin for Anjuta from here
http://bitbucket.org/abderrahim/anjuta-vala/wiki/Home
but running into a few problems
when I tried to make it gave me this error
plugin.vala:22.2-22.4: error: The symbol `Gee' could not be found
Gee.Map<string,Vala.SourceFile> source_files;
So edited the make file to add Gee ( idea from http://www.poppa.se/blog/tag/vala/)
valac -g -C --vapidir . --pkg libanjuta-1.0 --pkg gee-1.0 --pkg vala-1.0 $^
But now it is giving more errors
plugin.vala:268.27-268.47: error: The name `get_keys' does not exist in the context of `Gee.Map<string,Vala.SourceFile>'
foreach(string file in source_files.get_keys())
^^^^^^^^^^^^^^^^^^^^^
plugin.vala:394.23-394.47: error: The name `get_using_directives' does not exist in the context of `Vala.SourceFile'
foreach (var ns in file.get_using_directives ()) {
plugin.vala:211.44-211.54: error: The name `suggestions' does not exist in the context of `ValaPlugin.on_char_added'
current_editor.suggest (to_string_list(suggestions), current_position, (int) prefix_length);
^^^^^^^^^^^
plugin.vala:328.27-328.47: error: The name `get_keys' does not exist in the context of `Gee.Map<string,Vala.SourceFile>'
foreach(string file in source_files.get_keys())
plugin.vala:491.28-491.60: warning: unhandled error `GLib.Error'
source.file.filename == ((IAnjuta.File)editor).get_file().get_path()) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plugin.vala:496.21-496.70: warning: unhandled error `GLib.Error'
var begin_iter = editor.get_line_begin_position (source.first_line);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plugin.vala:498.5-498.22: warning: unhandled error `GLib.Error'
begin_iter.next ();
^^^^^^^^^^^^^^^^^^
plugin.vala:499.19-499.67: warning: unhandled error `GLib.Error'
var end_iter = editor.get_line_begin_position (source.last_line);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I am not sure what do next
I was hoping there would precompiled vala plugin for Anjuta for Ubuntu.
The fact there is none and author of the plugin doesn't seem to be supporting Anjuta 2.28 is very disheartening.
Using Jaunty, Vala 0.78, Anjuta 2.26
http://bitbucket.org/abderrahim/anjuta-vala/wiki/Home
but running into a few problems
when I tried to make it gave me this error
plugin.vala:22.2-22.4: error: The symbol `Gee' could not be found
Gee.Map<string,Vala.SourceFile> source_files;
So edited the make file to add Gee ( idea from http://www.poppa.se/blog/tag/vala/)
valac -g -C --vapidir . --pkg libanjuta-1.0 --pkg gee-1.0 --pkg vala-1.0 $^
But now it is giving more errors
plugin.vala:268.27-268.47: error: The name `get_keys' does not exist in the context of `Gee.Map<string,Vala.SourceFile>'
foreach(string file in source_files.get_keys())
^^^^^^^^^^^^^^^^^^^^^
plugin.vala:394.23-394.47: error: The name `get_using_directives' does not exist in the context of `Vala.SourceFile'
foreach (var ns in file.get_using_directives ()) {
plugin.vala:211.44-211.54: error: The name `suggestions' does not exist in the context of `ValaPlugin.on_char_added'
current_editor.suggest (to_string_list(suggestions), current_position, (int) prefix_length);
^^^^^^^^^^^
plugin.vala:328.27-328.47: error: The name `get_keys' does not exist in the context of `Gee.Map<string,Vala.SourceFile>'
foreach(string file in source_files.get_keys())
plugin.vala:491.28-491.60: warning: unhandled error `GLib.Error'
source.file.filename == ((IAnjuta.File)editor).get_file().get_path()) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plugin.vala:496.21-496.70: warning: unhandled error `GLib.Error'
var begin_iter = editor.get_line_begin_position (source.first_line);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plugin.vala:498.5-498.22: warning: unhandled error `GLib.Error'
begin_iter.next ();
^^^^^^^^^^^^^^^^^^
plugin.vala:499.19-499.67: warning: unhandled error `GLib.Error'
var end_iter = editor.get_line_begin_position (source.last_line);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I am not sure what do next
I was hoping there would precompiled vala plugin for Anjuta for Ubuntu.
The fact there is none and author of the plugin doesn't seem to be supporting Anjuta 2.28 is very disheartening.
Using Jaunty, Vala 0.78, Anjuta 2.26