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 661836 - Quick open not working in Gedit 3.2.0
Quick open not working in Gedit 3.2.0
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-15 10:37 UTC by dwilkie
Modified: 2019-03-23 20:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description dwilkie 2011-10-15 10:37:49 UTC
Quick open fails with the following message:

Traceback (most recent call last):
  • File "/usr/lib/gedit/plugins/quickopen/__init__.py", line 179 in on_quick_open_activate
    self._create_popup()
  • File "/usr/lib/gedit/plugins/quickopen/__init__.py", line 96 in _create_popup
    msg = bus.send_sync('/plugins/filebrowser', 'get_root')
AttributeError: 'MessageBus' object has no attribute 'send_sync'

Operating System:
Ubuntu 11.10

Gedit Version: 3.2.0
Comment 1 Ignacio Casal Quinteiro (nacho) 2011-10-15 13:40:25 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 2 dwilkie 2011-11-10 16:55:32 UTC
The bug still exists in 3.2.1 and I couldn't find the fix in the changelog for 3.2.2 Can you point out the commit it was fixed in? Thanks!
Comment 3 dwilkie 2011-11-10 17:23:17 UTC
This only happens when the File Browser Plugin is also loaded.

See this bug in Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/879632
Comment 4 Ignacio Casal Quinteiro (nacho) 2011-11-10 17:39:20 UTC
which pygobject version do you have?
Comment 5 gnome 2011-11-10 19:15:13 UTC
Latest ubuntu (11.10) uses:

python-gobject (3.0.0-0ubuntu2)

Is the bug in pygobject?
Comment 6 gnome 2011-11-10 19:19:20 UTC
I also see that in this file:

http://git.gnome.org/browse/gedit/tree/gedit/Gedit.py?h=gnome-3-2

You provide the send_sync function, but it seems like it's not coming through. Doing a 'dir(self.message_bus)' in python returns methods, send_message and send_message_sync, but none of the shorter convenience methods.
Comment 7 Razvan Radulescu 2012-03-10 00:51:00 UTC
Hello.

I tried the gedit-latex-plugin for gedit3 and I'm having the same issue as the fellows above, only that the nonexistent method is MessageBus.send. Either way, if I try a dir(Gedit.MessageBus) there is no send(...) or send_sync(...) functions available.

Although in the source code I've also seen the Gedit.py that implements these functions. I don't know exactly where this file should go, but if I 'locate Gedit.py' it doesn't find anything.

(In reply to comment #6)
> I also see that in this file:
> 
> http://git.gnome.org/browse/gedit/tree/gedit/Gedit.py?h=gnome-3-2
> 
> You provide the send_sync function, but it seems like it's not coming through.
> Doing a 'dir(self.message_bus)' in python returns methods, send_message and
> send_message_sync, but none of the shorter convenience methods.
Comment 8 Razvan Radulescu 2012-03-10 11:06:13 UTC
I've actually managed to find out where Gedit.py should go in order to make it work:

/usr/share/pyshared/gi/overrides/Gedit.py
with symbolic links in
/usr/lib/python{ver}/dist-packages/gi/overrides/Gedit.py

But now, I get another error on the return of the gobject (return GObject.new(tp, **kwargs)):
TypeError: gobject `snippets+windowactivatable+Activate' doesn't support property `snippet'

The Gedit.py version I have used is both from "apt-get source gedit" and from the master branch in git.gnome.org/browse/gedit/

Now I'm really stuck, as I'm not an expert in building GTK+ applications with python.
Comment 9 Razvan Radulescu 2012-03-10 11:45:05 UTC
Sorry, my bad, I've now seen that the error is due to the latex plugin itself.

(In reply to comment #8)
> I've actually managed to find out where Gedit.py should go in order to make it
> work:
> 
> /usr/share/pyshared/gi/overrides/Gedit.py
> with symbolic links in
> /usr/lib/python{ver}/dist-packages/gi/overrides/Gedit.py
> 
> But now, I get another error on the return of the gobject (return
> GObject.new(tp, **kwargs)):
> TypeError: gobject `snippets+windowactivatable+Activate' doesn't support
> property `snippet'
> 
> The Gedit.py version I have used is both from "apt-get source gedit" and from
> the master branch in git.gnome.org/browse/gedit/
> 
> Now I'm really stuck, as I'm not an expert in building GTK+ applications with
> python.