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 690795 - Error fetching remote objects using async functions on 1-1 DBusConnection objects
Error fetching remote objects using async functions on 1-1 DBusConnection obj...
Status: RESOLVED NOTABUG
Product: vala
Classification: Core
Component: Bindings: GLib
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-27 22:57 UTC by Chandni Verma
Modified: 2013-02-18 07:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test-tube applications demonstrating the error (11.97 KB, text/x-vala)
2012-12-27 22:58 UTC, Chandni Verma
Details

Description Chandni Verma 2012-12-27 22:57:03 UTC
If you try to fetch objects using DBus message bus on registered application connections they work fine as demonstrated here: https://live.gnome.org/Vala/DBusServerSample#Debugging_D-Bus_Applications

But when you try to do the same using 1-1 DBusConnections, you get errors fetching objects like the following spurred compiling the attached example.



 valac --pkg=gio-2.0 --pkg=telepathy-glib test-tube-app.vala
test-tube-app.vala:89.51-89.87: error: cannot infer generic type argument for type parameter `GLib.DBusConnection.get_proxy.T'
                    close_object = (RemoteObject) conn.get_proxy<RemoteObjectIface>.end (res);
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-tube-app.vala:85.9-85.47: error: cannot infer generic type argument for type parameter `GLib.DBusConnection.get_proxy.T'
        conn.get_proxy<RemoteObjectIface>.begin (null, "/org/freedesktop/Telepathy/Client/RemoteGame/OfferedObject", 0, null,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)
Comment 1 Chandni Verma 2012-12-27 22:58:16 UTC
Created attachment 232310 [details]
Test-tube applications demonstrating the error
Comment 2 Chandni Verma 2012-12-27 23:07:39 UTC
Don't know which version to link this against since I tried to make it work on all branches that diverged from vala master since July 2011 till today.
Comment 3 Chandni Verma 2013-01-25 11:59:42 UTC
Any updates on this bug. If provided some pointers, I can attempt to fix the issue.
Comment 4 Evan Nemerson 2013-02-08 10:25:20 UTC
IIRC Luca was helping you with this on IRC...  did anything ever come of that?
Comment 5 Chandni Verma 2013-02-18 07:34:24 UTC
Yes, it was an error in placement of generic type argument. <RemoteObjectIface> should come after .begin and .end respectively. I think its not a bug anymore.