SublimeRestart
SublimeRestart copied to clipboard
Restart does not work after a new Package is installed (Windows 10)
Restart works when generally using Sublime. I installed it to save me from having to use my mouse to relaunch Sublime when I make changes via Package control. However, after I install a new package and hit F5, Sublime closes and is not relaunched.
I am running Windows 10 Pro (64bit) and Sublime Text 3.
I noted this error after a package installation:
"Error loading commands: Error trying to parse file: Expected value in Packages\Restart\Default.sublime-commands:1:1 top level value must be an array"
I also have this issue, but mine just says
Error loading commands: Error trying to parse file: Expected value in Packages\Restart\Default.sublime-commands:1:1
Yet that file looks completely normal:
[
{
"caption": "Restart Sublime Text",
"command": "restart"
}
]
Found a way to get around this.
- Install package Extract Sublime Package https://packagecontrol.io/packages/Extract%20Sublime%20Package
- Extract the restart package
- Delete the restart package from ~\AppData\Roaming\Sublime Text 3\Installed Packages
- Delete Default.sublime-commands from ~\AppData\Roaming\Sublime Text 3\Packages\Restart
- Install package Edit Command Pallette: https://packagecontrol.io/packages/Edit%20Command%20Palette
- Use Edit Command Pallette to add
{ "caption": "Restart Sublime Text", "command": "restart" }
to user commands. - Restart sublime. Error should be gone and the command actually works.