plugin crashes when used on files accessed via gvfs SFTP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit-source-code-browser-plugin (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
This plugin seems to continue to work great with local files.
However, I use gedit heavily via the gvfs backend supported by Gnome to edit files over an SFTP connection. I've found that the version of the source code browser included with Trusty crashes when I try to edit one of those files with the following exception:
Gtk-Message: Failed to load module "overlay-scrollbar"
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
os.write(fd, contents)
TypeError: 'str' does not support the buffer interface
I am not sure if this is the 'correct' solution, but after googling I was able to make the plugin work by editing line 416 of /usr/lib/
os.write(fd, bytes(contents, 'UTF-8'))
instead of
os.write(fd, contents, 'UTF-8')
Let me know if you need further information. Thanks.
Whoops. Line 416 used to read
os.write(fd, contents)