I've also noticed the issue on Gutsy on both my laptop and workstation.
All of the triggering seems to work normally but the trigger text is deleted and replaced with a tab, in my case 2 spaces.
If I run gedit from the commandline it logs the following to screen...
/bin/sh: /usr/bin/esd: not found /usr/lib/python2.5/site-packages/_xmlplus/dom/xmlbuilder.py:8: Warning: IA__g_object_remove_toggle_ref: couldn't find toggle ref 0xb5f97a30(0x86bd39c) from xml.dom.NodeFilter import NodeFilter Traceback (most recent call last): File "/usr/lib/gedit-2/plugins/snippets/Document.py", line 644, in on_view_key_press return self.run_snippet() File "/usr/lib/gedit-2/plugins/snippets/Document.py", line 436, in run_snippet return self.apply_snippet(snippets[0], start, end) File "/usr/lib/gedit-2/plugins/snippets/Document.py", line 369, in apply_snippet active_info = s.insert_into(self, start) File "/usr/lib/gedit-2/plugins/snippets/Snippet.py", line 295, in insert_into self._parse(plugin_data.view, marks) File "/usr/lib/gedit-2/plugins/snippets/Snippet.py", line 231, in _parse self._insert_text(val) File "/usr/lib/gedit-2/plugins/snippets/Snippet.py", line 138, in _insert_text indented = unicode.join('\n' + unicode(self._indent), spaces_instead_of_tabs(self._view, text).split('\n')) File "/usr/lib/gedit-2/plugins/snippets/Helper.py", line 59, in spaces_instead_of_tabs return text.replace("\t", view.get_tabs_width() * ' ') AttributeError: 'gedit.View' object has no attribute 'get_tabs_width'
I've also noticed the issue on Gutsy on both my laptop and workstation.
All of the triggering seems to work normally but the trigger text is deleted and replaced with a tab, in my case 2 spaces.
If I run gedit from the commandline it logs the following to screen...
/bin/sh: /usr/bin/esd: not found python2. 5/site- packages/ _xmlplus/ dom/xmlbuilder. py:8: Warning: IA__g_object_ remove_ toggle_ ref: couldn't find toggle ref 0xb5f97a30( 0x86bd39c) gedit-2/ plugins/ snippets/ Document. py", line 644, in on_view_key_press gedit-2/ plugins/ snippets/ Document. py", line 436, in run_snippet snippet( snippets[ 0], start, end) gedit-2/ plugins/ snippets/ Document. py", line 369, in apply_snippet gedit-2/ plugins/ snippets/ Snippet. py", line 295, in insert_into _parse( plugin_ data.view, marks) gedit-2/ plugins/ snippets/ Snippet. py", line 231, in _parse _insert_ text(val) gedit-2/ plugins/ snippets/ Snippet. py", line 138, in _insert_text self._indent) , spaces_ instead_ of_tabs( self._view, text).split('\n')) gedit-2/ plugins/ snippets/ Helper. py", line 59, in spaces_ instead_ of_tabs tabs_width( ) * ' ')
/usr/lib/
from xml.dom.NodeFilter import NodeFilter
Traceback (most recent call last):
File "/usr/lib/
return self.run_snippet()
File "/usr/lib/
return self.apply_
File "/usr/lib/
active_info = s.insert_into(self, start)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
indented = unicode.join('\n' + unicode(
File "/usr/lib/
return text.replace("\t", view.get_
AttributeError: 'gedit.View' object has no attribute 'get_tabs_width'