doesn't compile with valac 0.14

Bug #902562 reported by Scott Ringwelski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Footnote
Fix Committed
Undecided
Unassigned

Bug Description

What version of valac do you use? using 0.14, i get the following errors: http://pastebin.com/PRW7kQYf

description: updated
Revision history for this message
Scott Ringwelski (sgringwe) wrote :

I have narrowed it down to this:

scott@scott-stallion:~/footnote/build$ make
[ 14%] Generating src/Widgets/Category.c, src/Widgets/Note.c, src/Widgets/TaggingArea.c, build/src/Config.c, src/Footnote.c
/home/scott/footnote/src/Footnote.vala:72.30-72.76: error: invocation of void method not allowed as expression
    SQLHeavy.QueryResult res=db.execute ("SELECT name,id FROM 'categories'");
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
make[2]: *** [src/Widgets/Category.c] Error 1
make[1]: *** [CMakeFiles/footnote.dir/all] Error 2
make: *** [all] Error 2

The only thing I can think of is that I have an older sqlheavy version, since the http://code.coeusgroup.com/sqlheavy/valadoc/SQLHeavy/SQLHeavy.Query.execute.html valadoc clearly shows that this returns a QueryResult.

Hmmm, looking at my sqlheavy-0.1.vapi file installed, I have:

class Queryable {
public virtual void execute (string sql, ssize_t max_len = -1) throws SQLHeavy.Error;
}

Where do you use sqlheavy from?

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

I use libsqlheavy0.1-dev 0.1.0-3 from ppa:nemequ/sqlheavy.

Revision history for this message
Jaap Broekhuizen (jaapz-b) wrote :

Scott, have you tried compiling with the libsqlheavy from ppa:nemequ/sqlheavy, so we can close this bug?

Revision history for this message
Matthew Markell (markellmtthw) wrote :

Using the latest bzr (revision 75) footnote fails to build. Error Log: http://pastebin.com/mpf4HPed

Revision history for this message
Matthew Markell (markellmtthw) wrote :

Using the ppa referenced above, my compilation problems are fixed. Please close this bug.

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

So... I think everything is fine now? If not, please tell me

Changed in footnote:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.