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 728201 - SyncTex plugin broken in version 3.12
SyncTex plugin broken in version 3.12
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-14 17:51 UTC by Sergej Chodarev
Modified: 2019-03-23 20:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the bug (1.38 KB, patch)
2014-04-14 18:00 UTC, Sergej Chodarev
none Details | Review

Description Sergej Chodarev 2014-04-14 17:51:26 UTC
Forward search using SyncTex plugin does not work in Gedit 3.12 and Gedit-Plugins 3.12.

At opening TeX document, SyncTex plugin prints this traceback:

Traceback (most recent call last):
  • File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 100 in on_saved_or_loaded
    self.update_location()
  • File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 156 in update_location
    self.update_active()
  • File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 207 in update_active
    self._plugin._action_group.set_sensitive(True)
AttributeError: 'SynctexWindowActivatable' object has no attribute '_action_group'


At Ctrl+Click the following traceback is printed:

Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 97, in on_button_release
    self.sync_view(event.time)
  File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 188, in sync_view
    self.window_proxy.SyncView(self.gfile.get_path(), (line, col), time)
AttributeError: 'NoneType' object has no attribute 'SyncView'


The problem is caused by forgotten references to the old menu API.
Comment 1 Sergej Chodarev 2014-04-14 18:00:28 UTC
Created attachment 274296 [details] [review]
Patch to fix the bug
Comment 2 jessevdk@gmail.com 2014-04-14 18:41:40 UTC
Looks good to me
Comment 3 Ignacio Casal Quinteiro (nacho) 2014-04-14 19:25:00 UTC
yeah, pushed. Thanks a lot.