Re: [Vala] Parameter variables in async functions aren't preserved

2019-02-07 Thread Ben Iofel via vala-list
Is the string array allocated on the stack? On Thu, Feb 7, 2019 at 3:56 PM rastersoft wrote: > > Hi all: > > I did an async function and after a yield I tried to use one of the > parameter variables, but they contain garbage after that call (at least > in the case of an string array). > > An exam

Re: [Vala] Message's content type

2018-10-01 Thread Ben Iofel via vala-list
I would guess that GMail is sending HTML email and the list disallows it On October 1, 2018 1:10:18 PM EDT, Wolfgang Mauer wrote: >Hi list, > >if i send a message from outlook to the list everything is fine. > > > >If I send it from my S7 with gmail or ubuntu with the webfrontend I get >the >me

Re: [Vala] Using databases with Vala

2018-03-09 Thread Ben
I believe there is a sqlite3.vapi somewhere On March 8, 2018 9:03:17 PM EST, Steven Oliver wrote: >I want to begin working an application that would have a database, >specifically SQLite, as a back-end. I know that at some point sqlheavy >(https://github.com/nemequ/sqlheavy) was an option for usi

Re: [Vala] Help with dialogs

2017-08-23 Thread Ben
In the glade file you have Balis*i*ticaPbrDialog Just a typo On August 23, 2017 4:53:48 PM EDT, Steven Oliver wrote: >Hello, >I've been trying to create a dialog in my application, and it only >seems to >half work for me (at best). > >At this point in my code: >https://github.com/steveno/balis

Re: [Vala] Vala on OpenIndiana Updated

2017-08-16 Thread Ben
You would probably use Posix.signal () On August 16, 2017 11:57:48 AM EDT, Jason Martin wrote: >GLib.Math.pow10.vala >GLib.Math.pow10f.vala >These functions are missing on some platforms: > >Some of the core dumps are truly meant to be core dumps. > >Maybe a good vala example (someone more qualif

Re: [Vala] Connecting callbacks with Glade

2017-06-13 Thread Ben Iofel
Composite template support is great in vala. Here's an example file: https://github.com/vaccineapp/vaccine/blob/master/src/view/CatalogItem.vala and the associated glade file: https://github.com/VaccineApp/vaccine/blob/master/data/ui/catalog-item.ui Also, if you upload your code to GitHub or somet

Re: [Vala] .me cast resurrection on "Re: The future of Vala"

2017-03-04 Thread Ben Iofel
Here is an old Vala to JavaScript compiler https://github.com/lethalman/maja On Sat, Mar 4, 2017 at 7:34 PM Guillaume Poirier-Morency < guillaumepoiriermore...@gmail.com> wrote: > It would be quite a challenge in terms of implementation, but I like > the idea. > > Maybe having a Web-based compil

Re: [Vala] Valadoc.org is fully operational again

2016-11-24 Thread Ben Iofel
On Thu, Nov 24, 2016, 1:21 PM Dmitry Golovin wrote: > 24.11.2016, 18:33, "Ben Iofel" : > > I'm working on a brand new valadoc by generating XML at > > https://github.com/eustasy/vala-docs.org/tree/generator . Currently > > valadoc.org generates html pa

Re: [Vala] Valadoc.org is fully operational again

2016-11-24 Thread Ben Iofel
I'm working on a brand new valadoc by generating XML at https://github.com/eustasy/vala-docs.org/tree/generator . Currently valadoc.org generates html pages then extracts the parts it wants On Nov 24, 2016 9:16 AM, "Guillaume Poirier-Morency" < guillaumepoiriermore...@gmail.com> wrote: > Le mercr

Re: [Vala] The future of Vala

2016-09-10 Thread Ben Iofel
Sounds awesome. Even if we don't move to github, we should still allow people to submit pull requests on the mirror (https://github.com/gnome/vala) On Sat, Sep 10, 2016 at 4:44 PM Evan Nemerson wrote: > This is something I've been thinking about lately, too. We currently > rely on Jürg and Luca

Re: [Vala] Difference between setting "vapidir" and adding a .vapi file (was "Global key shortcuts")

2016-08-20 Thread Ben Iofel
I'm pretty sure that --pkg checks for a pkg-config file, where as passing the vapi doesn't On Sat, Aug 20, 2016 at 5:10 AM rastersoft wrote: > Hi: > > Finally I found the library "keybinder". It doesn't work no wayland, but > at least allows me to do what I need in X. > > But now I have a proble

Re: [Vala] Just a news I've read about popularity langage

2016-07-28 Thread Ben Iofel
it's a huge effort. Vala gives a lot of profits to the > developers right now, even without one, so I think first thing should be > trying to get the most of what is available by "selling" this in a right > way. > > m. > >

Re: [Vala] Just a news I've read about popularity langage

2016-07-26 Thread Ben Iofel
You should contribute to https://github.com/eustasy/vala-lang.org ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Just a news I've read about popularity langage

2016-07-22 Thread Ben Iofel
I'm sure the guys at elementary.io would love to help with marketing. They started a new vala site and new vala documentation page On Fri, Jul 22, 2016, 7:47 AM Felipe Lavratti wrote: > As an embedded system engineer I see huge potential using Vala in embedded > Linux, it has not the runtime dra

Re: [Vala] getting started with vala and glade

2016-06-26 Thread Ben Iofel
As OP said, if you run the commented out code it works fine. On Sun, Jun 26, 2016 at 6:24 PM, Ben Iofel wrote: > The run method blocks, so it works fine. I've used this line in my own > programs > > On Sun, Jun 26, 2016 at 6:23 PM, Luca Bruno wrote: > >> It does, it

Re: [Vala] getting started with vala and glade

2016-06-26 Thread Ben Iofel
Vala does not have garbage collection, and the main() in the code example is fine On Sun, Jun 26, 2016 at 3:10 PM, Luca Bruno wrote: > Il venerdì 27 maggio 2016, Chris Bare ha scritto: > > > I have a very simple vala program that is trying to load a glade ui file. > > The window appears briefly

Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"

2016-06-21 Thread ben
What does $ echo $CC show? Does  $ valac --cc=gcc ./hello.vala work? On Tue, 2016-06-21 at 22:56 +0800, oyster wrote: > $ echo $PATH > /usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows: > /c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/: > /mingw64/bin > >

Re: [Vala] valadoc.org online again, but search not working

2016-06-06 Thread Ben Iofel
For now you may use this mirror with working search: http://valadoc.valadate.org On Mon, Jun 6, 2016 at 6:08 AM Ulink wrote: > Hi, > > valadoc.org seems online again, but if one type something into the > search field, it shows: > > 'Query failed: (0)s' > > Is someone able to fix this? > > -- > B

Re: [Vala] Extended floating types

2016-05-24 Thread Ben Iofel
error: structs cannot be empty: float128_t On Tue, May 24, 2016 at 11:16 AM Al Thomas wrote: > > > > -- > *From:* ben > *Sent:* Tuesday, 24 May 2016, 16:01 > *Subject:* Re: [Vala] Extended floating types > > > This does not work.

Re: [Vala] Extended floating types

2016-05-24 Thread ben
This does not work. The C code has: typedef float float128_t; You could map it to gcc's 128 bit floating point type (https://gcc.gnu. org/onlinedocs/gcc/Floating-Types.html) or use the 80-bit long double type (https://stackoverflow.com/questions/13516476/long-double-gcc-spec ific-and-float128) Ne

Re: [Vala] Autocomplete server

2016-04-21 Thread Ben Iofel
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 wrote: > Hey guys. > > First of all, Vala is awesome. I'm kinda new in the Vala world, but as > a C# developer, I

Re: [Vala] Vala wishlist

2016-03-30 Thread Ben
On Tue, 2016-01-12 at 21:54 +, Afonso wrote: > My thoughs about Vala > = > > I just started coding in Vala, and i found it's a quite fun language > to learn, very simillar to Java and C#. The integration with GLib and > GObject is simply amazing, and the possibilty to gener

Re: [Vala] How to properly define struct in manually written VAPI?

2016-03-02 Thread Ben Iofel
x27;t remember now. In my > use case more low level, better-tested library will a be better choice. > > m. > > 2016-03-02 15:28 GMT+01:00 Ben : > >> FYI, Vala already has binding for json-glib >> http://valadoc.org/#!api=json-glib-1.0/Json >> It has nice features like

Re: [Vala] How to properly define struct in manually written VAPI?

2016-03-02 Thread Ben
FYI, Vala already has binding for json-glib http://valadoc.org/#!api=json-glib-1.0/Json It has nice features like deserialization with GObject properties On Wed, Mar 2, 2016 at 5:19 AM, mar...@saepia.net wrote: Hello, I need to write VAPI for jansson JSON library. I have already started (

Re: [Vala] How to test async methods?

2016-02-17 Thread Ben Iofel
You need a MainLoop to run async methods in vala On Tue, Feb 16, 2016, 8:19 AM mar...@saepia.net wrote: > Hello, > > I need some advice on testing async methods. > > When I run .begin() in the isolated test suite (where mainloop is not > running) it seems that .end() callback never gets called.

Re: [Vala] Is there any usable editor for Vala?

2016-02-15 Thread Ben Iofel
If you see a crash in builder, I could look into it with a stack trace On Sun, Feb 14, 2016, 6:32 AM Matthias Berndt wrote: > Hi, > > I wonder if you have any recommendation regarding a decent editor for Vala. > I don't need much, just code completion and "go to declaration", but I > can't seem

Re: [Vala] Parsing Vala/Genie code for auto-completion propuse: Should it be a `valac' feature or a separate project?

2016-02-15 Thread Ben Iofel
This might help https://github.com/benwaffle/vala-completion On Sun, Feb 14, 2016, 6:34 PM Felipe Lavratti wrote: > Hello friends! > > I want to spend some effort in bringing up a nice auto complete system to > be used in the Atom code editor. > > First thing I am studying how to do the the ind

Re: [Vala] pass signal to covered window

2016-02-05 Thread Ben Iofel
To emit signals in Vala, you just call them like methods textView.button_press_event (); On Fri, Feb 5, 2016 at 9:06 AM Gilzad Hamuni wrote: > Just for the integrity of this topic. > > One solution to pass/fire an event programmatically is to use > GLib.Signal.emit_by_name(), e.g.: > > drawingA

Re: [Vala] GLib.Object.get_type() static?

2016-01-23 Thread Ben
Object.get_type () gets the type of an instance. It doesn't make sense to make it static. On Sat, Jan 23, 2016 at 6:59 AM, Daniel Espinosa wrote: Why in gobject-2.0.vapi GLib.Object.get_type () is an instant method? This method should be declared as static, because some times a library requi

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Ben
the cheader_filename attribute of [CCode] should go on the top namespace. so [CCode (cheader_filename="io.h", cprefix="Ajami_")] namespace CAjami { ... } On Fri, Oct 9, 2015 at 9:55 AM, Victor Aurélio Santos wrote: Ben, can you provide more details ? Thanks. 2015-1

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Ben Iofel
Just put the cheader at the top On Fri, Oct 9, 2015, 9:48 AM Victor Aurélio Santos < victoraur.san...@gmail.com> wrote: > PS: keep in mind that this isn't a GLib-based library, it's plain C > functions! i.e. Legacy Binds > > -- > Victor Aurélio Santos > ___

Re: [Vala] Reading last n lines from file

2015-10-07 Thread Ben Iofel
If it's a small file, you could read the whole thing into a string using GLib.FileUtils.get_contents and then just grab the part you want On Wed, Oct 7, 2015 at 11:02 AM Guillaume Poirier-Morency < guillaumepoiriermore...@gmail.com> wrote: > Le mercredi 07 octobre 2015 à 10:16 -0400, Serge Hooge

[Vala] Vala OpenSSL bindings?

2010-10-05 Thread Ben Lafreniere
ssl on the server side, so the best case would be Vala libssl bindings. Thanks! Ben ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Vala command completion in MonoDevelop 2.4

2010-06-24 Thread Ben Lafreniere
I've tried running it in the terminal, but there's no indication of why it's becoming unresponsive, and when it crashes there's no error message beforehand to indicate why. Which version of valac are you using, and which version of vtg did you compile to get libafrodite?

[Vala] Vala command completion in MonoDevelop 2.4

2010-06-24 Thread Ben Lafreniere
ogle.com/p/vtg/ I've tried both the latest stable release, and an svn checkout of the latest code. In both cases, once libafrodite has been installed MonoDevelop becomes almost completely unresponsive or crashes whenever I open a .vala file. Has anyone else encountered these issues or

Re: [Vala] hello world, "symbol lookup error ..."

2009-11-07 Thread ben nukel
aargh ;-) thanks 2009/11/7 Frederik > ben nukel wrote: > > $ valac > > valac: error while loading shared libraries: libvala.so.0: cannot open > > shared object file: No such file or directory > > > > although the library is here: > > > >>$ ls

Re: [Vala] hello world, "symbol lookup error ..."

2009-11-07 Thread ben nukel
.0.0 -rwxr-xr-x 1 root root 7292173 2009-11-07 08:03 /usr/local/lib/libvala.so.0.0.0 2009/11/7 Frederik > ben nukel wrote: > > $ valac hello.vala > > valac: symbol lookup error: valac: undefined symbol: > > vala_code_context_set_experimental_non_null > > > > > &

[Vala] hello world, "symbol lookup error ..."

2009-11-07 Thread ben nukel
args) { stdout.printf("Hello, World\n"); return 0; } } $ valac --version Vala 0.7.8 $ cat /etc/issue Ubuntu 9.04 $ valac hello.vala valac: symbol lookup error: valac: undefined symbol: vala_code_context_set_experimental_non_null any ideas what's wro