GNOME Bugzilla – Bug 690795
Error fetching remote objects using async functions on 1-1 DBusConnection objects
Last modified: 2013-02-18 07:34:24 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)
Created attachment 232310 [details] Test-tube applications demonstrating the error
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.
Any updates on this bug. If provided some pointers, I can attempt to fix the issue.
IIRC Luca was helping you with this on IRC... did anything ever come of that?
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.