Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with gedit 3.20 #1

Open
MeisterP opened this issue Mar 25, 2016 · 3 comments
Open

error with gedit 3.20 #1

MeisterP opened this issue Mar 25, 2016 · 3 comments

Comments

@MeisterP
Copy link

Traceback (most recent call last):
File "/home/poncho/.local/share/gedit/plugins/open-uri-context-menu-master/open-uri-context-menu.py", line 95, in on_view_populate_popup
while insert.forward_char():
AttributeError: '_ResultTuple' object has no attribute 'forward_char'

@jras
Copy link

jras commented May 15, 2016

I have seen (from similar messages in other apps) that changing in open-uri-context-menu.py, line 167: get_uri() to get_uri_for_display(), and adding just before line 95 the following with correct indent:
if isinstance(insert, tuple): insert = insert[1]
can be a temporary workaround, but there are other cases that fail, maybe due to changes in gedit api for plugins not already explicit for gedit 3.20 at this moment or maybe due to changes in gtk...

@Cherkah
Copy link

Cherkah commented Jun 2, 2016

me too i can't use this plugin.
for sure the code should be updated.

debian testing + gnome-shell

@marios
Copy link

marios commented Nov 17, 2016

using jras comment #1 (comment) fixed it for me looks like #5 is doing the right thing fwiw consider landing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants