Reputation: 14684
I added a plugin to Sublime Text 3 via github.
This creates a folder in my Packages folder. The problem: when I restart sublime, it automatically deleted this folder.
How to avoid this?
Upvotes: 4
Views: 1257
Reputation: 31
I found that simply remove the file package-metadata.json
in your package folder will prevent Sublime Text delete your package folder under Sublime Text\Packages
when restart. Please try.
Upvotes: 0
Reputation: 1454
Basically this happens when you install a package manually. The package becomes orphaned, means there is a package-metadata.json
file in the package but it is not installed in Installed Packages
directory.
To fix it, browse the package for package-metadata.json
file, rename or delete the file before moving it to Packages
directory.
Upvotes: 3
Reputation: 2650
This seems to happen if you manually install a package instead of using Package Control. To fix, open your Packages/User/Package Control.sublime-settings
file and add the package that is auto deleted.
Upvotes: 3
Reputation: 14684
I found the answer by myself while browsing the sublime docs:
I have to add it into the Packages/User
folder, this is the place where sublime will never delete something.
Upvotes: 3