Re: [Vala] gda-sql-parser.h not being included when using libgda-5.0



Hello,

Thanks for the pointers. I filed a bug report here:
https://gitlab.gnome.org/GNOME/vala/issues/851
All the best,

Shem Pasamba

On Wed, Sep 25, 2019 at 10:07 PM Jonathan Moerman <jonathanmoerman gmail com>
wrote:

Hi,

If the code compiles all necessary files were included during compilation.
To me it doesn't seem likely that a missing include is to blame here. Also
keep in mind that it is often the case that a header file isn't included
directly, but pulled in by another header file from the same library.
Here libgda.h causes a large number of header files to be included (which
in turn included even more header files).

Should the vapi file still be invalid you can make a patched version of
the vapi file and pass this file to valac (how you can accomplish this
depends on your build system). If this fixes the issue for you it may
indeed be a good idea to open a bug report for this.
You can also edit the generated C files and compile the binary again.
(Most build systems are smart enough not to touch the intermediate C files
when these are newer than the Vala files.)

     Jonathan Moerman


Op di 24 sep. 2019 om 17:12 schreef Shem Pasamba via vala-list <
vala-list gnome org>:

Hello,

How do I make my vala code add a #include
<libgda/sql-parser/gda-sql-parser.h> in the c generated code?

Spent some time debugging why my code was crashing at:
Gda.Statement s = parser.parse_string(sql, out remain);
which is at gda-sql-parser.c:451 (seen from gdb after installing *-dbgsyms
in ubuntu), but finally figured out that the said include file was not
being included.

I looked at the vapi file at /usr/share/vala/vapi/libgda-5.0.vapi and that
include for that file is not there. Should I file a bug report for this?
If
so, where? And if I can cook up a patch, should I patch the vapi file?

Thanks for your help & answers.

All the best,

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




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