GNOME Bugzilla – Bug 662103
GEdit Snippets do not work when editing files remotely over SFTP
Last modified: 2012-01-20 22:00:56 UTC
I am attempting to use gedit's "snippets" plugin. They work great in Ubuntu, but I've since switched to Debian. Now, even though I have enabled Snippets, they don't work when I am editing files on a remote (SFTP) server. They work great locally (create file, set language as PHP, try snippets), which is of small comfort, since I'd prefer to work on the remote server. Is this a bug in gedit Debian? I am using Squeeze. Reproduction steps (Using Debian Squeeze 6.0.2): In gedit, enable Snippets (Edit -> Preferences -> Plugins -> Check "Snippets") Open a new SFTP connection in nautilus (Places -> Home -> Ctrl-L -> sftp://any.site.that/you/can/access/through/SFTP Double-click on a php file to open it in gEdit Type "foreach" and press tab. The rest of the code should be automatically filled in. Note that this does not occur. Open a new document (Ctrl-N) Set the language (at the bottom) from "Plain Text" to "PHP" Type "foreach" and press tab. Note that the rest of the code does automatically populate now. At GNOME IRC, jaliste suggested that I run gedit from the terminal. This provided a traceback which I am including here as well: http://pastebin.com/45MzeHjK Thanks
The traceback included below: Traceback (most recent call last):
+ Trace 228836
return self.run_snippet()
if not self.run_snippet_trigger(word, (start, end)):
return self.apply_snippet(snippets[0], bounds[0], bounds[1])
self.update_environment()
os.environ[var] = variables[var](buf)
putenv(key, item)
Quite a lot of fixes came into snippets in the version 3.2.0 would be good to get this tested in that version.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.