grahamrow / zim-mendeley-plugin

Plugin for inserting citations into Zim
GNU General Public License v2.0
9 stars 1 forks source link

"Insert citation" stopped working #6

Open sojusnik opened 8 years ago

sojusnik commented 8 years ago

When trying to insert a citation (Ctrl+Shift+c), the following appears:

This is zim 0.65 Platform: posix Locale: de_AT UTF-8 FS encoding: UTF-8 Python: (2, 7, 10, 'final', 0) Gtk: (2, 24, 28) Pygtk: (2, 24, 0) No bzr version-info found

======= Traceback ======= File "/usr/lib/pymodules/python2.7/zim/actions.py", line 149, in do_activate self.get(instance, instance.class)() File "/usr/lib/pymodules/python2.7/zim/actions.py", line 132, in func self.func(instance, _args, *_kwargs) File "/home/sojusnik/.local/share/zim/plugins/zim-mendeley-plugin-master/init.py", line 177, in insert_citation buffer = self.window.ui.mainwindow.pageview.view.get_buffer() AttributeError: 'GtkInterface' object has no attribute 'mainwindow'

Happens with the recent version of your plugin and Mendeley 1.16 under Ubuntu Gnome 15.10.

Would be nice to have your very useful plugin working again.

All the best!

grahamrow commented 8 years ago

Interesting. Looks like some API or another has changed — I'll try to take a look soon, thanks for pointing this out.

sojusnik commented 7 years ago

Are there any news regarding this issue?

sojusnik commented 7 years ago

ping

grahamrow commented 7 years ago

Apologies, I don't ever use zim anymore, nor can I get it to even launch on macOS Sierra. But, my blind attempt at a fix can be found on the fix/ui-issues branch — let me know if that works.

sojusnik commented 7 years ago

The fix in the new branch is indeed working, thanks! But after clicking on the link in Zim, the linked document isn't highlighted in Mendeley anymore. Documents from one author and year are therefore hard to differentiate.