Re: [Vala] install vala + valide to ubuntu 10.10
thank you very much, that's what i'll do :( when i get some time for it 2011/6/19 Gavrilov Maksim > 09.06.2011 16:57, Victor D. пишет: > > thanks alot max > > first, let's see if we can make it work, then maybe we can come with the > > patch/suggestion too for launchpad > > there's no hurry at all > > OK, I'm finally home from my vacation. > > I've wrote an ebuild for Valide, compiled it and... nothing :( > I mean, I works as it's supposed to, but my ~/.valide is empty. > > No config.ini, ever I type, save, compile or run programs. > > I suggest you compile Valide from source and create a package with > checkinstall. > ___ > vala-list mailing list > vala-list@gnome.org > http://mail.gnome.org/mailman/listinfo/vala-list > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] lexical analysis using libvala
Antlr is an important project. It features grammar files for most languages. Having one for vala is a great asset for vala, I would say. Also, some effort is needed even for using vala's own parser. Probably, one of the reasons I say this is that even know, I'm not able to install a proper ide for vala on my Ubuntu box. The compiler works fine but neither valide nor the gedit plugin would install correctly. So I still hope that more tools will emerge for this great new language. Having an ANTLR grammar for it would be a boost. Personally, I'm a full-time eclipse user and fan. Hope I didn't say too many useless things, if so, feel free to ignore ;)" -- Victor On Jun 18, 2011 10:27 PM, "Maga Abdurakhmanov" wrote: > Victor, it was the first way i tried out. I've almost implemented lexer and > parser for Vala using antlr rules. And there is a basic plugin for netbeans > using that lexer. > > But there still to much things to fix and do and i'm very limited in my > time. > libvala has already implemented lexer and parser and evolve with the vala > itself. And in the future all new constructions of language will be easier > to support. > > On Sat, Jun 18, 2011 at 10:04 PM, Victor D. wrote: > >> sorry to interfere, i might be naive, but i have a different view here >> i would advise for an independent from-scratch parser, optimized for a dev >> tool, for writing code, which is a bit different than for the compiler. the >> parser has to be permissive, it has to figure out the best it can >> incomplete >> and illegal structures, so that the code completion/highlight doesn't brake >> all the time while you write. >> >> On Sat, Jun 18, 2011 at 8:51 PM, Maga Abdurakhmanov > >wrote: >> >> > > >> > > >> > > Comments are inside ast nodes, look better. >> > > >> > >> > There are only some of the comments inside ast nodes (valadoc and first >> > comment in file). To highlight syntax i need to get all of them as >> tokens. >> > >> > >> > -- >> > Sincerely, >> > Magomed >> > >> > ___ >> > vala-list mailing list >> > vala-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/vala-list >> > >> > >> >> >> -- >> Best regards, >> Victor Dramba >> Head of Programming at Cabanova >> >> www.cabanova.com >> www.victordramba.com >> >> ___ >> vala-list mailing list >> vala-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/vala-list >> >> > > > -- > Sincerely, > Magomed ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] lexical analysis using libvala
sorry to interfere, i might be naive, but i have a different view here i would advise for an independent from-scratch parser, optimized for a dev tool, for writing code, which is a bit different than for the compiler. the parser has to be permissive, it has to figure out the best it can incomplete and illegal structures, so that the code completion/highlight doesn't brake all the time while you write. On Sat, Jun 18, 2011 at 8:51 PM, Maga Abdurakhmanov wrote: > > > > > > Comments are inside ast nodes, look better. > > > > There are only some of the comments inside ast nodes (valadoc and first > comment in file). To highlight syntax i need to get all of them as tokens. > > > -- > Sincerely, > Magomed > > ___ > vala-list mailing list > vala-list@gnome.org > http://mail.gnome.org/mailman/listinfo/vala-list > > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
thanks alot max first, let's see if we can make it work, then maybe we can come with the patch/suggestion too for launchpad there's no hurry at all 2011/6/9 Гаврилов Максим > I'm now not at home, but when I get there, I'll install Val(a)ide and > attach my config.ini. We'll see, if it works :) > Until that happens you might open a bug on Launchpad. > 09.06.2011 16:19 пользователь "Victor D." > написал: > > > i created the directory /home/victor/.valide/plugins > > i also created an empty /home/victor/.valide/config.ini > > i have the same output, complaining about config.ini at startup > > > > Can't read config.ini file: Key file does not have group 'Search' > > Can't read config.ini file: Key file does not have group 'Search' > > Can't read config.ini file: Key file does not have key 'lock-items' > > Can't read config.ini file: Key file does not have key 'lock-items' > > > > and when i type in the editor > > > > PluginCompletion-ERROR **: parser.vala:56: failed to add GLib 2.0 > > aborting... > > Aborted > > > > other than that, if i just open the project and choose build from menu, > > without opening any file in the editor, it builds fine. i tested with a > > cmd-line hello world and the build program resulted executes fine. > > > > > > 2011/6/9 Гаврилов Максим > > > >> I think, you are right: Val(a)ide fails on opening it's config file, so > >> let's create it :-) > >> > >> $ mkdir -p /home/victor/.valide/plugins > >> > >> Please, try to compile something, e. g. GTK sample program from docs. > Just > >> to make sure that all dependencies are correctly installed and > discovered by > >> valac. > >> 09.06.2011 13:32 пользователь "Victor D." > >> написал: > >> > > > > > > > > -- > > Best regards, > > Victor Dramba > > Head of Programming at Cabanova > > > > www.cabanova.com > > www.victordramba.com > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
i created the directory /home/victor/.valide/plugins i also created an empty /home/victor/.valide/config.ini i have the same output, complaining about config.ini at startup Can't read config.ini file: Key file does not have group 'Search' Can't read config.ini file: Key file does not have group 'Search' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' and when i type in the editor PluginCompletion-ERROR **: parser.vala:56: failed to add GLib 2.0 aborting... Aborted other than that, if i just open the project and choose build from menu, without opening any file in the editor, it builds fine. i tested with a cmd-line hello world and the build program resulted executes fine. 2011/6/9 Гаврилов Максим > I think, you are right: Val(a)ide fails on opening it's config file, so > let's create it :-) > > $ mkdir -p /home/victor/.valide/plugins > > Please, try to compile something, e. g. GTK sample program from docs. Just > to make sure that all dependencies are correctly installed and discovered by > valac. > 09.06.2011 13:32 пользователь "Victor D." > написал: > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
maybe this will give you some clue victor@victor-laptop ~ $ valac --version Vala 0.12.0 2011/6/9 Victor D. > i folowed > this<https://help.ubuntu.com/community/Vala#Libraries%20and%20Bindings>tutorial > and i have the same problem. > > first, i tried to install only glib and gtk+. apt-get told me: > > libgtk2.0-dev is already the newest version. > libglib2.0-dev is already the newest version. > > then i tried to install all packages suggested by the tutorial, just to > make sure: > > sudo apt-get install libglib2.0-dev libgtk2.0-dev libpoppler-glib-dev > libdbus-glib-1-dev libgstreamer0.10-dev libglade2-dev libsqlite3-dev > libgnome-desktop-dev libgnome-menu-dev libgnomevfs2-dev > > still, when running valac, when i try to type something in a .vala file, it > quits. here is the output: > > victor@victor-laptop ~ $ valide > Can't read config.ini file: Key file does not have group 'Search' > Can't read config.ini file: Key file does not have group 'Search' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > plugin-manager.vala:105: Error opening directory > '/home/victor/.valide/plugins': No such file or directory > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'lock-items' > Can't read config.ini file: Key file does not have key 'width' > Can't read config.ini file: Key file does not have key 'height' > builder.vala:254: creating object of type `ValideProject' > builder.vala:254: creating object of type `ValideNativeBuilderOptions' > > (valide:4044): GLib-GObject-WARNING **: g_object_set_property: property > `path' of object class `ValideProject' is not writable > builder.vala:254: creating object of type `ValideExecutableOptions' > builder.vala:254: creating object of type `ValideSource' > Can't read config.ini file: Key file does not have group 'Search' > Can't read config.ini file: Key file does not have group 'Search' > Can't read config.ini file: Key file does not have group 'Todo' > Can't read config.ini file: Key file does not have group 'Todo' > > PluginCompletion-ERROR **: parser.vala:56: failed to add GLib 2.0 > aborting... > Aborted > > at some point, i also read this in the output: > > (valide:4263): GLib-GObject-WARNING **: g_object_set_property: property > `path' of object class `ValideProject' is not writable > > now, this seems to be the most "official" tutorial for valide on ubuntu. > and it failed me on 2 systems, one with ubuntu 10.04, one with linux mint 10 > > my guess it that there might be a version incompatibility somewhere in > these packages > or maybe the missing ~/.vala/config.ini ? > > > i think this is quite bad for vala for the folowing reasons: > > 1. ubuntu, is (one of) the most popular distro > 2. valide is perceived by any newcomer as the 'de facto' ide for the lang > and it fails on a 'straight' install > 3. not only it fails, but it fails by simply quitting, while in a non-core > module (PluginCompletion) > > i guess it's not so difficult to improve the robustness of the ide to at > least give friendly messages when something goes wrong. > > thank you very much again ;) > > > 2011/6/8 Gavrilov Maksim > >> 08.06.2011 19:38, Victor D. пишет: >> > probably not, this is why eas asking for a complete tutorial, to save >> your >> > time ;) >> > though, ideally, a ppa should add dependencies for *all* packages >> > >> > you can regard my system as a fresh ubuntu install. not even >> build-essential >> > or similar >> > >> > thanks again ;) >> >> >> Here's the complete tutorial: >>https://help.ubuntu.com/community/Vala >> >> You need this part: >>https://help.ubuntu.com/community/Vala#Libraries and Bindings >> >> After installing all this dependencies Val(a)ide should at least start. >> >> If not, then write here again, we'll try to figure everything out :) >> >> P.S.: Guys, it will be cool if someone who uses Ubuntu tries to help >> Victor, not me using Gentoo :) >> ___ >> vala-list mailing list >> vala-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/vala-list >> > > > > -- > Best regards, > Victor Dramba > Head of Programming at Cabanova > > www.cabanova.com > www.victordramba.com > > > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
i folowed this <https://help.ubuntu.com/community/Vala#Libraries and Bindings> tutorial and i have the same problem. first, i tried to install only glib and gtk+. apt-get told me: libgtk2.0-dev is already the newest version. libglib2.0-dev is already the newest version. then i tried to install all packages suggested by the tutorial, just to make sure: sudo apt-get install libglib2.0-dev libgtk2.0-dev libpoppler-glib-dev libdbus-glib-1-dev libgstreamer0.10-dev libglade2-dev libsqlite3-dev libgnome-desktop-dev libgnome-menu-dev libgnomevfs2-dev still, when running valac, when i try to type something in a .vala file, it quits. here is the output: victor@victor-laptop ~ $ valide Can't read config.ini file: Key file does not have group 'Search' Can't read config.ini file: Key file does not have group 'Search' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' plugin-manager.vala:105: Error opening directory '/home/victor/.valide/plugins': No such file or directory Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'lock-items' Can't read config.ini file: Key file does not have key 'width' Can't read config.ini file: Key file does not have key 'height' builder.vala:254: creating object of type `ValideProject' builder.vala:254: creating object of type `ValideNativeBuilderOptions' (valide:4044): GLib-GObject-WARNING **: g_object_set_property: property `path' of object class `ValideProject' is not writable builder.vala:254: creating object of type `ValideExecutableOptions' builder.vala:254: creating object of type `ValideSource' Can't read config.ini file: Key file does not have group 'Search' Can't read config.ini file: Key file does not have group 'Search' Can't read config.ini file: Key file does not have group 'Todo' Can't read config.ini file: Key file does not have group 'Todo' PluginCompletion-ERROR **: parser.vala:56: failed to add GLib 2.0 aborting... Aborted at some point, i also read this in the output: (valide:4263): GLib-GObject-WARNING **: g_object_set_property: property `path' of object class `ValideProject' is not writable now, this seems to be the most "official" tutorial for valide on ubuntu. and it failed me on 2 systems, one with ubuntu 10.04, one with linux mint 10 my guess it that there might be a version incompatibility somewhere in these packages or maybe the missing ~/.vala/config.ini ? i think this is quite bad for vala for the folowing reasons: 1. ubuntu, is (one of) the most popular distro 2. valide is perceived by any newcomer as the 'de facto' ide for the lang and it fails on a 'straight' install 3. not only it fails, but it fails by simply quitting, while in a non-core module (PluginCompletion) i guess it's not so difficult to improve the robustness of the ide to at least give friendly messages when something goes wrong. thank you very much again ;) 2011/6/8 Gavrilov Maksim > 08.06.2011 19:38, Victor D. пишет: > > probably not, this is why eas asking for a complete tutorial, to save > your > > time ;) > > though, ideally, a ppa should add dependencies for *all* packages > > > > you can regard my system as a fresh ubuntu install. not even > build-essential > > or similar > > > > thanks again ;) > > > Here's the complete tutorial: >https://help.ubuntu.com/community/Vala > > You need this part: >https://help.ubuntu.com/community/Vala#Libraries and Bindings > > After installing all this dependencies Val(a)ide should at least start. > > If not, then write here again, we'll try to figure everything out :) > > P.S.: Guys, it will be cool if someone who uses Ubuntu tries to help > Victor, not me using Gentoo :) > ___ > vala-list mailing list > vala-list@gnome.org > http://mail.gnome.org/mailman/listinfo/vala-list > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
probably not, this is why eas asking for a complete tutorial, to save your time ;) though, ideally, a ppa should add dependencies for *all* packages you can regard my system as a fresh ubuntu install. not even build-essential or similar thanks again ;) 2011/6/8 Гаврилов Максим > Do you have nessesary *-dev packages installed? > 08.06.2011 18:46 пользователь "Victor D." > написал: > > > one of them is > > PluginCompletion-ERROR **: parser.vala:56: failed to add GLib 2.0 > > > > another > > Error opening directory '/home/victor/.valide/plugins': No such file or > > directory > > > > > > > > 2011/6/8 Гаврилов Максим > > > >> Try running Valaide from terminal to watch errors it writes into it. > >> 08.06.2011 17:44 пользователь "Victor D." > >> написал: > >> > >> > hi gavrilov, edwin, > >> > > >> > i just tried to install again using ppa:vala-team > >> > the installation seems successful but i can't use valac > >> > here's what i did. after installation, i opened valac and created a > new > >> > project of type GTK+ > >> > after typing a few chars, the program just quit with no message > >> > > >> > > >> > monodevelop is out of question for me, i just quit using m$ related > stuff > >> > for about 2 years now, and it seems quite enjoyable. > >> > > >> > thank you for the quick answer ;) > >> > > >> > > >> > On Wed, Jun 8, 2011 at 4:31 PM, Edwin DLCA > wrote: > >> > > >> >> Greetings. > >> >> I am new to vala. > >> >> I currently use MonoDevelop works relatively well. > >> >> But honestly, until you have an IDE that works is better to use the > >> >> command line. > >> >> > >> >> 2011/6/8 Victor D. > >> >> > >> >>> hi all, > >> >>> > >> >>> i tried to install vala+valide on my system but failed several times > >> with > >> >>> different reasons > >> >>> right now, i am using linux mint 10 (based on ubuntu 10.10) > >> >>> can you help or point me to a good, idiot-proof how to? > >> >>> > >> >>> of course, it's much more convenient not to compile things, if > possible > >> >>> > >> >>> -- > >> >>> Best regards, > >> >>> Victor Dramba > >> >>> www.victordramba.com > >> >>> > >> >>> ___ > >> >>> vala-list mailing list > >> >>> vala-list@gnome.org > >> >>> http://mail.gnome.org/mailman/listinfo/vala-list > >> >>> > >> >>> > >> >> > >> > > >> > > >> > -- > >> > Best regards, > >> > Victor Dramba > >> > Head of Programming at Cabanova > >> > > >> > www.cabanova.com > >> > www.victordramba.com > >> > > > > > > > > -- > > Best regards, > > Victor Dramba > > Head of Programming at Cabanova > > > > www.cabanova.com > > www.victordramba.com > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
one of them is PluginCompletion-ERROR **: parser.vala:56: failed to add GLib 2.0 another Error opening directory '/home/victor/.valide/plugins': No such file or directory 2011/6/8 Гаврилов Максим > Try running Valaide from terminal to watch errors it writes into it. > 08.06.2011 17:44 пользователь "Victor D." > написал: > > > hi gavrilov, edwin, > > > > i just tried to install again using ppa:vala-team > > the installation seems successful but i can't use valac > > here's what i did. after installation, i opened valac and created a new > > project of type GTK+ > > after typing a few chars, the program just quit with no message > > > > > > monodevelop is out of question for me, i just quit using m$ related stuff > > for about 2 years now, and it seems quite enjoyable. > > > > thank you for the quick answer ;) > > > > > > On Wed, Jun 8, 2011 at 4:31 PM, Edwin DLCA wrote: > > > >> Greetings. > >> I am new to vala. > >> I currently use MonoDevelop works relatively well. > >> But honestly, until you have an IDE that works is better to use the > >> command line. > >> > >> 2011/6/8 Victor D. > >> > >>> hi all, > >>> > >>> i tried to install vala+valide on my system but failed several times > with > >>> different reasons > >>> right now, i am using linux mint 10 (based on ubuntu 10.10) > >>> can you help or point me to a good, idiot-proof how to? > >>> > >>> of course, it's much more convenient not to compile things, if possible > >>> > >>> -- > >>> Best regards, > >>> Victor Dramba > >>> www.victordramba.com > >>> > >>> ___ > >>> vala-list mailing list > >>> vala-list@gnome.org > >>> http://mail.gnome.org/mailman/listinfo/vala-list > >>> > >>> > >> > > > > > > -- > > Best regards, > > Victor Dramba > > Head of Programming at Cabanova > > > > www.cabanova.com > > www.victordramba.com > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] install vala + valide to ubuntu 10.10
hi gavrilov, edwin, i just tried to install again using ppa:vala-team the installation seems successful but i can't use valac here's what i did. after installation, i opened valac and created a new project of type GTK+ after typing a few chars, the program just quit with no message monodevelop is out of question for me, i just quit using m$ related stuff for about 2 years now, and it seems quite enjoyable. thank you for the quick answer ;) On Wed, Jun 8, 2011 at 4:31 PM, Edwin DLCA wrote: > Greetings. > I am new to vala. > I currently use MonoDevelop works relatively well. > But honestly, until you have an IDE that works is better to use the > command line. > > 2011/6/8 Victor D. > >> hi all, >> >> i tried to install vala+valide on my system but failed several times with >> different reasons >> right now, i am using linux mint 10 (based on ubuntu 10.10) >> can you help or point me to a good, idiot-proof how to? >> >> of course, it's much more convenient not to compile things, if possible >> >> -- >> Best regards, >> Victor Dramba >> www.victordramba.com >> >> ___ >> vala-list mailing list >> vala-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/vala-list >> >> > -- Best regards, Victor Dramba Head of Programming at Cabanova www.cabanova.com www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] install vala + valide to ubuntu 10.10
hi all, i tried to install vala+valide on my system but failed several times with different reasons right now, i am using linux mint 10 (based on ubuntu 10.10) can you help or point me to a good, idiot-proof how to? of course, it's much more convenient not to compile things, if possible -- Best regards, Victor Dramba www.victordramba.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list