Sublime Forum

Keyboard shortcut not working - ValueError

#1

Using Sublime Text 3 Build 3021 on OSX

I noticed my keyboard shortcut for “Goto Symbol” was not working. When i opened the Error console to see what was happening, I noticed a bunch of exceptions:

File "~/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 427, in is_enabled_
    raise ValueError("is_enabled must return a bool", self)
ValueError: ('is_enabled must return a bool', <Default.exec.ExecCommand object at 0x102dc22d0>)
Traceback (most recent call last):
  File "~/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 427, in is_enabled_
    raise ValueError("is_enabled must return a bool", self)
ValueError: ('is_enabled must return a bool', <Default.exec.ExecCommand object at 0x102dc22d0>)
Traceback (most recent call last):
  File "~/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 427, in is_enabled_
    raise ValueError("is_enabled must return a bool", self)
ValueError: ('is_enabled must return a bool', <Default.exec.ExecCommand object at 0x102dc22d0>)
Traceback (most recent call last):
  File "~/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 427, in is_enabled_
    raise ValueError("is_enabled must return a bool", self)
ValueError: ('is_enabled must return a bool', <Default.exec.ExecCommand object at 0x102dc22d0>)

help please?
If i issue the command by using the menu from top, it works. Also I get the exception for every single keyboard shortcut that i hit (even the shortcuts that work).

Cheers.

0 Likes

#2

It looks like an error related to a Build command, probably a “Build: Cancel” command.
Don’t think your “Goto Symbol” problem come from this error.

Try activating the log by typing this in the console:

sublime.log_commands(True)

and look which command is triggered when hitting your shortcut.

0 Likes

#3

Hey bizoo

you were right. The plugin Emmet was using a keyboard shortcut that was clashing. Thank you so much.

0 Likes