package_control icon indicating copy to clipboard operation
package_control copied to clipboard

Package control freezes on package removal

Open kaba2 opened this issue 7 years ago • 3 comments

  1. Delete all files in C:\Users\Kaba\AppData\Roaming\Sublime Text 3\Packages\User and C:\Users\Kaba\AppData\Roaming\Sublime Text 3\Installed Packages. Reboot the computer.
  2. Install latest Sublime Text Build 3126 x64 Setup.exe on Windows 10.
  3. Install Package Control from the Sublime Text menu.
  4. Install "LatexTools" package.
  5. Remove "LatexTools" package.

This freezes Sublime Text, so I cannot access the debug log. But here is a screenshot of the last moments:

package-control-debug

This indeed reveals a Windows PermissionError, where the package control cannot access its file.

kaba2 avatar Mar 10 '17 20:03 kaba2

Probably related to:

  1. https://github.com/SublimeText/LaTeXTools/issues/1226 Autocompletion is slow and sometimes it is blocking Sublime Text for ever with 0% CPU usage

Sublime Text has a bug which causes it to enter on a deadlock state when reloading/unloading settings or packages files:

  1. https://github.com/SublimeTextIssues/Core/issues/1966 Deadlock/hang when batch deleting/creating settings files

If you kill the process plugin_host.exe Sublime Text unhangs and you can save your work.

evandrocoan avatar Jan 01 '18 13:01 evandrocoan

Just FYI, I get this hang when removing GitGutter (and a couple of few more I don't remember, in the past), on OS X.

ghost avatar Feb 28 '18 16:02 ghost

Package Control 4 resolves this issue.

  1. Depedencies don't need a 00_package_control_loader which was involved here
  2. Several changes were made to reduce the risk of hitting locked files or folders during package operations.
  3. Several race conditions which could be the root cause of most of the trouble are fixed.

deathaxe avatar Sep 25 '22 18:09 deathaxe