Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#157 In response to "Problem with snippet - ID: 3500429"


Sorry, but I don't seem to find a way to respond to any bug, so I've decided to just start a new one (sorry for any inconvenience).

So, I encountered the same problem as Problem with snippet - ID: 3500429 ( It seems that at least in Ubuntu there's something wrong with the gedit package, it's missing the file.

So I've just
"apt-get source gedit"
and then
"sudo cp gedit-{ver}/gedit/ /usr/share/pyshared/gi/overrides/"
after that
"sudo ln -s /usr/share/pyshared/gi/overrides/ /usr/lib/python{ver}/dist-packages/gi/overrides/"

But then, the Gedit Latex Plugin gave another kind of error:
Traceback (most recent call last):
File "/usr/lib/gedit/plugins/latex/", line 60, in <lambda>
self._handler = self._internal_action.connect("activate", lambda gtk_action, action: action.activate(window_context), self)
File "/usr/lib/gedit/plugins/latex/latex/", line 59, in activate
context.active_editor.insert(LaTeXSource(self.snippet_source, self.packages))
File "/usr/lib/gedit/plugins/latex/latex/", line 132, in insert
Editor.insert(self, source.source)
File "/usr/lib/gedit/plugins/latex/", line 313, in insert
SnippetManager().insert_at_cursor(self, str(source))
File "/usr/lib/gedit/plugins/latex/", line 52, in insert_at_cursor
self.insert(editor, iter, text)
File "/usr/lib/gedit/plugins/latex/", line 38, in insert
snippet=text, iter=iter, view=view)
File "/usr/lib/python2.7/dist-packages/gi/overrides/", line 27, in send
msg = self.create(object_path, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/gi/overrides/", line 18, in create
return, **kwargs)
TypeError: gobject `snippets+windowactivatable+Activate' doesn't support property `snippet'

To fix this, I just went to the file and commented out the error producing part:
def insert(self, editor, iter, text):
view =
#window = view.get_toplevel()
#bus = window.get_message_bus()

#if bus.is_registered('/plugins/snippets', 'parse-and-activate'):
# bus.send('/plugins/snippets', 'parse-and-activate',
# snippet=text, iter=iter, view=view)
#"Inserted using snippets plugin")
buf = view.get_buffer()

buf.insert(iter, text)
buf.end_user_action()"Inserted without snippets plugin")

Until a better way of doing this is found, I'll stick with this one.

Hope this helps you guys.