After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781449 - Undefined reference to `g_task_new_finish'
Undefined reference to `g_task_new_finish'
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Async
0.36.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-18 13:58 UTC by Guillaume Poirier-Morency
Modified: 2017-04-19 08:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix the constructor and add appropriate metadata (3.29 KB, patch)
2017-04-18 14:19 UTC, Guillaume Poirier-Morency
none Details | Review
gio-2.0: Fix GLib.Task constructor (3.63 KB, patch)
2017-04-18 14:41 UTC, Rico Tzschichholz
committed Details | Review

Description Guillaume Poirier-Morency 2017-04-18 13:58:12 UTC
This happen when one attempt to create a new `GLib.Task' object.

    var task = yield new GLib.Task (null, null);

The signature should not be async and the expected use case is the following:

   var task = new GLib.Task (null, null, (obj, result) => {
       var bool_result = result.propagate_boolean ();
   });

   task.return_boolean (true);
Comment 1 Guillaume Poirier-Morency 2017-04-18 14:19:37 UTC
Created attachment 350001 [details] [review]
Fix the constructor and add appropriate metadata
Comment 2 Rico Tzschichholz 2017-04-18 14:41:34 UTC
Created attachment 350003 [details] [review]
gio-2.0: Fix GLib.Task constructor
Comment 3 Rico Tzschichholz 2017-04-19 08:38:52 UTC
Comment on attachment 350003 [details] [review]
gio-2.0: Fix GLib.Task constructor

commit ee7aa700d56818e9fe4d8396a97d44ce17815f72
Author: Rico Tzschichholz <ricotz@ubuntu.com>
Date:   Tue Apr 18 16:38:04 2017 +0200

    gio-2.0: Fix GLib.Task constructor