Sublime Forum

Cannot type "}" (closing curly brackets, curly braces)

#1

This is an intermittent ongoing issue I’ve been experiencing: I cannot type “}”!

This usually happens in the middle of a programming session and I cannot really link it to any specific actions that I take. Most often it can be resolved by restarting Sublime Text. Additionally I’ve experienced stability issues - crashes - during the same period. Today the it completely stopped working and would not be resolved by restarting, so I started systematically disabling packages and rebooting every time (I did not go through all of them as I have a lot). Also, I tried temporarily removing all of the custom snippets I use. None of it helped. Finally I found https://forum.sublimetext.com/t/cannot-type-closing-bracket/6902/2&hilit=cannot+use+closing+bracket#p35787 and managed to fix it by adding in

{ "keys": "shift+alt+9"], "command": "insert", "args": {"characters": "}"} } in my keymap file (I am using a danish keyboard).

I did manage to solve the problem, but I would love if anyone can help me sort out the origin of the problem.

Here is my console log https://gist.github.com/webconsult/5152938ebf712603246d

0 Likes

#2

open the console and enter sublime.log_commands(True) to enable command logging, from there, try added the } and see what/if commands are ran.

0 Likes

#3

I have the same issue. The console writes “toggle_parens” when typing closing bracket.

EDIT: Removing the plugin “beetter coffeescript” solved my issue.

0 Likes

#4

Same problem here… (Norwegian keyboard…)
With ‘sublime.log_commands(True)’ the console says: no command for selector: noop:
Removing better coffee script didn’t solve it… (although it solved a similar issue i had with cmd-shift-7 (comment/uncomment)

0 Likes

#5

Sublimerge key binding was the guitly one for me !

0 Likes