Sublime Forum

Trying to edit a plugin and ST3 3175 keeps deleting it

#1

I installed Highlight Build Errors but it is not working and I’d like to try to fix it. In the past, I’ve taken the package from InstalledPackages, unzipped it into my Packages folder, and deleted the file in Installed Packages. Now, when I try this, Sublime (or maybe package manager?) deletes the folder in Packages and reinstalls the zipped package in Installed Packages. What gives?

0 Likes

#2

My guess would be that it’s PackageControl doing that to you.

In particular unless a package is specifically marked by it’s author as needing to be installed unpacked, PackageControl installs everything as a sublime-package file. Additionally, it keeps track of the packages that you’ve told it to install. If it sees that it thinks that a package is supposed to be installed but it’s not, it will try to install it for you.

I believe that PC would start up, see that the package file is missing, and then try to reinstall it. As a part of that process it sees that there is an unpacked folder for the same package and moves it away to the Backups directory.

If you left the sublime-package file in place after doing the extraction the problem would probably go away. On the whole, extracting an entire package isn’t a particularly good idea though. You’re perhaps better off creating overrides for just the files that you need to change to fix things, depending on what you’re doing.

You could also manually clone the package with git into your packages folder and then add it to the ignore_vcs_packages setting in PackageControl (or set it to true) to tell PC to leave it alone.

1 Like