'Document' object has no attribute 'get_short_name_for_display'
Closed this issue · 3 comments
yochananmarqos commented
Gedit 44.2 on GNOME 43.2:
Traceback (most recent call last):
File "/usr/lib/gedit/plugins/markdown_preview/main_container.py", line 356, in on_file_changed
self._update_file_format()
File "/usr/lib/gedit/plugins/markdown_preview/main_container.py", line 367, in _update_file_format
name, extension = recognize_format(document)
File "/usr/lib/gedit/plugins/markdown_preview/utils.py", line 5, in recognize_format
name = document.get_short_name_for_display()
AttributeError: 'Document' object has no attribute 'get_short_name_for_display'
VentGrey commented
I'm able to reproduce this:
Traceback (most recent call last):
File "/home/ventgrey/.local/share/gedit/plugins/markdown_preview/main_container.py", line 356, in on_file_changed
self.file_format = self.recognize_format()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ventgrey/.local/share/gedit/plugins/markdown_preview/main_container.py", line 364, in recognize_format
name = doc.get_short_name_for_display()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Document' object has no attribute 'get_short_name_for_display'
Traceback (most recent call last):
File "/home/ventgrey/.local/share/gedit/plugins/markdown_preview/main_container.py", line 356, in on_file_changed
self.file_format = self.recognize_format()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ventgrey/.local/share/gedit/plugins/markdown_preview/main_container.py", line 364, in recognize_format
name = doc.get_short_name_for_display()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Document' object has no attribute 'get_short_name_for_display'
FerdiScholten commented