Sublime Forum

My plugin's keymaps aren't loading

#1

Hi,

From yesterday to today, my plugin’s keymaps suddenly stopped working, for some reason. The definitions from the Default.sublime-commands file also don’t appear in cmd+shift+P.

What can be the problem?

I didn’t change the keymap file since a week ago and it only stopped working today. Contents:

[code][master?!//~PLUGIN]% cat Default.sublime-commands

{
	"caption": "command A",
	"command": "lol"
},
{
	"caption": "command B",
	"command": "rofl"
}

]
[master?!//~PLUGIN]% cat Default.sublime-keymap

{
    "command": "lol",
    "keys": "shift+super+l"]
},
{
    "command": "rofl",
    "keys": "shift+super+k"]
}

]
[/code]

I also have the classes LolCommand and RoflCommand, each one inheriting from sublime_plugin.WindowCommand.
The python file loads perfectly, with no errors or warnings (I used --debug to start sublime text).

I have the plugin in a development directory and have a symlink to it in sublime text’s Packages directory (as I have for more plugins that still work).

Any clues?

0 Likes