Snippets Plugin: Cannot add snippets to languages that don't have any
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
Fix Released
|
Medium
|
Ubuntu Desktop Bugs |
Bug Description
In the Snippets Plugin "Snippet Manager" dialog you can only add new snippets to languages that already have a system-wide snippets XML file. For others, the GUI simply shows no change and the following appears on the console:
Traceback (most recent call last):
File "/usr/lib/
snippet = self.new_
File "/usr/lib/
self.
File "/usr/lib/
library = self.get_
File "/usr/lib/
for library in self.libraries[
KeyError: 'pascal'
I wrote a patch (attached) that changes the mentioned "self.libraries
Thanks.
A single line change that allows a user local snippets file to be created even if a global one does not exist.