简体   繁体   中英

Package Control: Install Package missing in Sublime Text 3

I'm trying to install the babel<\/a> plugin for Sublime Text 3. I followed the instruction here: https:\/\/packagecontrol.io\/installation<\/a>

But this is not appearing in the list.

I have already removed 'package_control' from the 'ignored_packages' setting...

Still no joy

Following the instructions from this article has fixed the problem for me.

In a nutshell:

  • Preference -> Settings
  • Remove "Package Control" from the ignored_packages entries (heads up for commas if it is the last entry)
  • Restart Sublime

The simplest method of installation is through the Sublime Text console. The console is accessed via the CTRL + ` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.

SUBLIME TEXT #

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

SUBLIME TEXT 2

import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

Try follow these steps:

  1. Go to the configuration folder by opening preferences menu and Browse Package.
  2. Rename whole configuration " Sublime Text 3 " folder to " Sublime Text 3 - Backup ".
  3. Uninstall Sublime text 3
  4. Install Sublime text 3 with this guide and run it without registering.. You may find Package Control now..
  5. Restore your old configuration on Sublime Text 3 - Backup if needed

This is a common enough bug in sublime. Have you seen this issue in github?:

Package Control not showing in sublime 3

Commonly, removing package control from the ignored list would suffice, but from your case, it seems that package control is not installed properly. In that case, try to reinstall the package control and see the console for any error.

Please follow the below process. Open Sublime and go to View->Show console

Then past the code in text box and enter.

import urllib.request,os,hashlib; 
h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 
pf = 'Package Control.sublime-package'; 
ipp = sublime.installed_packages_path(); 
urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); 
by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); 
dh = hashlib.sha256(by).hexdigest(); 
print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) 
if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Reference Link: https://packagecontrol.io/installation

For anyone coming across this, We had a user in the office who had a problem whereby they could see the 'Install Package' but it was not working. The problem was, the files in /home/user/.config/sublime-text-3 had only root permissions. So when we tried to run install package, it failed, and no error came up.

running rm -rf /home/user/.config/sublime-text-3/ solved the problem. We uninstalled Sublime3 first then ran that command then reinstalled, bingo, all working perferectly.

If that isn't your problem, its worth having the console open while you are trying to do whatever you're trying to do and see the error messages popping up. Console can be opened with CTRL+`

Hope that helps someone.

Had the same issue, though "Package Control" was not ignored in settings. So I just manually reinstalled "Package Control" by downloading it and replacing it in the 'Installed Packages/' folder. https://packagecontrol.io/installation#Manual

Do a clean uninstall if you don't have much to lose. And then re-install.

For me the issue was that I have upgraded my Mac OS, and it looks like some parts of Sublime did not work smoothly. After uninstalling and reinstalling, it worked a like a charm.

If you're on mac, AppCleaner app is quite good for uninstalling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM