Can't find certain package in Package control: Install Package - sublimetext3

I can't find this package in Package control. Looks like my list is outdated.
https://github.com/babel/babel-sublime
How can i fix it?
Sublime Text 3083

I had a similar problem with a different package, this is the only result I found when searching so I'll post my answer.
I already had the package installed!
I apparently installed it previously then forgot I had done so. Check your packages list if you can't find one! Command Palette > Package Control: List Packages

Not sure what the issue with Sublime is, but if anyone else gets stuck on this you can just install from Github directly. Works for babel-sublime and should work for other packages.
1) Find the relevant repo (assuming open source)
https://github.com/babel/babel-sublime
2) Clone into your packages folder
On a mac this would be
$ cd /Users/(username)/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone https://github.com/babel/babel-sublime
And that was it for me - restart Sublime Text and the package is available.

Open Package Control Options(Commad+Shift+P) and add the repository if its not exist.
Open Package Control Again and choose Install package and write the package name which in your case its (babel-sublime) and you should find it.

If you want to install babel-sublime but it is not included in package control it is in GitHub repository, it can be added manually.
Go to Preferences > Package Control
In the command palette, type Package Control: Add Repository
A text box will appear at the bottom, paste the URL to the repository, i.e. https://github.com/username/repo.
Now that you have added the GitHub repository, you can add the package as you would have originally:
Go to Preferences > Package Control
In the Command Palette, type Package Control: Install Package
In the dialog box, type the name of your package, i.e. babel-sublime Auto complete will find if it is present. If that is the case, press enter and wait for it to install, then restart sublime. It will be installed upon restart.
PS: the same way to install any package from GitHub
you can Google sublime plugins to find some really cool ones

I had to add it 2 times, each time closing. Then it finally worked and got all packages. Thats the only solution i found. Some glitch in Sublime.
Heres is info how to install full packages list https://packagecontrol.io/installation

In Sublime Text 3, go to View, Show Console. Paste in the code below and hit Enter.
import urllib.request,os,hashlib; h =
'df21e130d211cfc94d9b0905775a7c0f' +
'1e3d39e33b79698005270310898eea76'; 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)
the solution was found here:
http://www.storybench.org/install-babel-packages-sublime-text-3/

My version of Sublime Text 3 was old. I solved this problem by simply running the command:
sudo apt-get update
which will update sublime after sublime v 3.0, restarted sublime, and all was good.

open command pallette
Package Control: install package -> enter
you search Babel -> enter
good luck

Related

Export list of installed packages in SublimeText

I am aware that I can see all installed packages in Sublime using Ctrl+Shift+P and selecting Package Control: List Packages.
I have many packages installed (>20) and I need a way to export their names (and ideally also the link to their https://packagecontrol.io/ page) to a text file or similar output.
Can this be done at all?
You can easily get the list of installed packages by looking at Package Control's user preferences file: Preferences -> Package Settings -> Package Control -> Preferences - User and checking the installed_packages value.
Getting the URL as well is a bit more complicated, but can be done for example by executing the following in ST's Python console (View menu -> Show Console):
import os; [(os.path.dirname(file)[len('Packages/'):], sublime.decode_value(sublime.load_resource(file))['url']) for file in sublime.find_resources('package-metadata.json')]
The accepted answer unfortunately didn't work for me.
Then I found that in Windows 10 (at least for ST 3) you can obtain what you want by listing the files contained in
C:\Users\<your_user_name>\AppData\Roaming\Sublime Text 3\Installed Packages
But some installed packages might be missing from this list ! Crosscheck your result with the content of the directory
C:\Users\<your_user_name>\AppData\Roaming\Sublime Text 3\Packages
Install Sublime Package Control
From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P (Mac).
Type install package, select command Package Control: Install Package and hit Return/Enter. A list of available packages will be displayed.
From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P (Mac).
Type PackageSync, select the PackageSync package and hit Return/Enter. The package will be downloaded to the appropriate directory.

Disappearing package

I am trying to install the Local History package in Sublime 3. I am behind a proxy and so far have not been able to get package control to work so I am installing the package by pulling the repo into my packages directory.
When I installed it the first time I had Sublime Text 3 open and was surprised to see that the Local History commands appeared with out a restart. However, they did not seem to work so I restarted Sublime Text. Package gone.
I have reinstalled it, and stopped and started Sublime multiple times and for whatever reason everytime Sublime starts it removes the entire Local History package from my packages directory.
I have several packages installed in Sublime Text 3 and they all work without issue. This is the first time I have encountered this issue. Any ideas what may be going on?
Go to Preferences -> Settings-User and check if Local History is listed under ignored_packages. If that's the case the package fails to load. Normally deleting Packages/User/Package Control.cache directory solves the problem.

Issues on install package control on sublime text 3

I installed sublime text 3 and i need to install package control ..so when i refer this page.
I just confused, what should i follow,
Can anyone help me to guide this docs?
Thanks,
You just have to copy the given code in the sublime text 3 console. (Show Console in the view menu)
It will download and install the package control. (You should see notifications in the console)
Once installed, you'll have access to the package control commands in the command prompt. (You can access it by pressing ctrl + shift+ p)
In build 3126 (released Sept. '16) a menu item (and command palette entry) was introduced to easily install Package Control.
It can be found under tools -> Install Package Control or by looking up Package Control in the command menu (ctrl/cmd + shift + p).

Package Control in Sublime3 not working?

Note: I´ve searched for sublime here at the forum first, in order to post a question, because I wasn´t sure if this question was adequate for this specific forum and wanted to compare it with other posts. If it shouldn´t be here, please tell me so, and I´ll gladly close it here and open it in any other stackoverflow´s forum. Thanks.
I´ve just installed sublime3. After that I´ve installed package control.
But even when I try and install some packages using package control not all packages get installed, even when I get the "successfully installed" message at the bottom of the window.
To install a new package I go to preferences/package control/install package, and after getting the "successfully installed message" I go to /list packages and it´s not there.
I realised that maybe that´s because some packages are not compatible with sublime 3 (even there it shouldn´t be the successfully installed message there).
So, I´ve tried the latest sublime3 version of emmet, but it seems that´s not working (I´ve tried some shortcuts without any success). So I´ve watched Chris Coyer screencast to check out if I´ve missed something, but it still won´t work.
I´ve tried installing it manually: I´ve went to C:\Program Files\Sublime Text 3\Packages (I´ve installed the x64 package, but for some reason it´s not installed into \Program Files (x86)).
And then I copy/paste the unzipped folders of /emmet-sublime-master and /PyV8 (I´ve tried naming the folder just emmet).
And still, it won´t work. This kinda happened to me with a lot of packages, I´ve installes several of them, and when I go to preferences/package control/list packages, I get only 3 of them.
I came across this issue as well. This thread (https://github.com/wbond/package_control/issues/874) directed me to delete the entry for Package Control under "Ignored Packages" in my User Settings File. Once that was deleted, I restarted, and it worked as expected.
In SublimeText go to Preferences -> Settings. In the opened file Preferences.sublime-settings remove Package Control from ignored_packages list (see below). Save the file and restart Sublime.
{
"font_size": 11,
"ignored_packages":
[
"Vintage",
"Package Control" <---- REMOVE
]
}
For me, Package Control was already removed from ignored_packages, so that didn’t help. But the Sublime Text console held messages which indicated the problem. (Press Ctrl+` to open the console.)
PermissionError: [Errno 13] Permission denied: '/home/myuser/.config/sublime-text-3/Cache/Package Control/merged-ca-bundle.crt'
And changing ownership on the Package Control directory allowed me to use Package Control again:
chown -R myuser:myuser '/home/myuser/.config/sublime-text-3/Cache/Package Control/'
For me, after try to remove and reinstall the Sublime and verified the ignored_packages, I installed python and restart the sublime. So it worked.
In Terminal:
sudo apt install python python3
I am using Ubuntu 20.04.

Package Control no module named package_control.add_repository_channel_command

I've updated to the most recent version of Package Control for Sublimetext 3 via Git, but none of the commands work. The menu items are still present, strangely enough. When I open the log with Ctrl+`, I see this error:
ImportError: No module named 'Package Control.package_control.add_repository_channel_command'
How can I get it to work again?
Apparently the Package Control .sublime-package file is outdated, and in this case, referencing a python module that has been moved to a different python package (from package_control to package_control.commands).
This can be easily fixed by deleting Installed Packages/Package Control.sublime-package.
I use sublime text 3
From this site, I Follow these steps:
Go to http://wbond.net/sublime_packages/package_control/installation
& copy the long command there.
Open the Sublime Text 2 console by
pressing Ctrl+.
Paste the command you copied into the Sublime Text
console.
Press Enter.
After Package Control installs, restart
Sublime Text.
Then I got the error like that.
I have tried :
check ignored_packages on set but I found nothing.
Download package manager and copy it to Installed Packages, but not works.
Then I update my sublime to the newest version, then the error is gone.
That is my tips, you should try one of the steps, like what I have tried.

Resources