yedderson/SublimeRestart

Restart does not work after a new Package is installed (Windows 10)

Opened this issue · 2 comments

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.

  1. Install package Extract Sublime Package https://packagecontrol.io/packages/Extract%20Sublime%20Package
  2. Extract the restart package
  3. Delete the restart package from ~\AppData\Roaming\Sublime Text 3\Installed Packages
  4. Delete Default.sublime-commands from ~\AppData\Roaming\Sublime Text 3\Packages\Restart
  5. Install package Edit Command Pallette: https://packagecontrol.io/packages/Edit%20Command%20Palette
  6. Use Edit Command Pallette to add { "caption": "Restart Sublime Text", "command": "restart" } to user commands.
  7. Restart sublime. Error should be gone and the command actually works.