Sublime Forum

Upgrading sublime deleted custom package

#1

I have created custom color scheme for AVR assembler and put it into the SublimeText/Packages folder. When sublime upgraded itself, the file is gone. Who did create such an ill installer/upgrade that DELETES user files? I have .cache and .rcache files left, is it possible to restore the original color scheme file?

0 Likes

#2

Where exactly did you put the color scheme?

0 Likes

#3

I put it into:
C:\Programming\SublimeText\Packages
Strictly speaking it was not exactly the color scheme, it was .sublime-package file that contained a .tmLanguage file with AVR assembler lexemes definition.
I understand that it might be the wrong place to put such a file into, but the approach of deleting user files during upgrade is not any better.

0 Likes

#4

Well… it is understandable that when you are writing an update process to tell it to delete this folder of my files, rather than having a specific list of every file that needs to be removed.

https://www.sublimetext.com/docs/3/packages.html talks about where exactly to put your packages. And in various places it says to not modify the default files/packages because the get wiped out on update.

2 Likes

#5

I’m a programmer myself and sometimes I create distributions too, and believe me, this is really bad practice to delete the entire folder in any case. Just imagine that user installs sublime into an existing folder (by mistake) where the “packages” subfolder exists (e.g. into the root folder C:\ (this is quite common mistake) and (s)he already has C:\Packages of some other app). It could be a real disaster. Yes, there should be a list of all installed files and they and they alone should be deleted.

0 Likes

#6

As was already said, non-default packages are stored in a completely different place that does not get deleted when updated. You should not store your custom packages in the default location. What Sublime is currently doing is completely safe. You should use the menu option Preferences/Browse Packages... to see the location you should store your packages; this location is safe and will not get deleted during an update.

1 Like

#7

I understand this now, thank you. But I disagree - what sublime does is not safe. No one should delete any folder on a user PC, never ever. This is rule #1 when building installers.

0 Likes