Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Sublime Text 2 package manager to use my proxy?

I have to work through a proxy at the office and when I press (Ctrl+Shift+P), type Install and try to load a package list, I get the error "Package Control: There are no packages available for installation."

In my 'Package Control.sublime-settings' I have:

{
    "auto_upgrade_last_run": 1345569476,
    "http_proxy": "http://user_name:password@<proxy-name>:<proxy_port>"
}

What am I missing OR what is a better option for me to control my system using the proxy. Once I get home I typically have to disable these proxies. Is there a truly system-wide way to make it use a proxy and then disable the proxy with a single command or click?

Also this is in Ubuntu 12.04.

EDIT: Sublime Text Package Manager has been updated to include options for working through a proxy, you can find this in the package settings.

like image 806
gerobk Avatar asked Aug 21 '12 17:08

gerobk


People also ask

How do I install package control?

Click the Preferences > Browse Packages… menu. Browse up a folder and then into the Installed Packages/ folder. Download Package Control.sublime-package and copy it into the Installed Packages/ directory. Restart Sublime Text.

What is package control in sublime?

What is it? According to its webpage: A full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text 2. It features an automatic upgrader and supports GitHub, BitBucket and a full channel/repository system.

How do I check my packages in Sublime Text?

You can find a list of all the packages installed in your Sublime Text editor with Package Control. First open Package Control from Preferences > Package Control as before. Now click on Package Control: List Packages from the list as marked in the screenshot below.


2 Answers

You do not need the http:// part. For example:

"http_proxy": "proxy.my.net:8080",
"https_proxy": "proxy.my.net:8080",

At least, this works for me, on Ubuntu and on Windows also.

like image 89
Fragmentation Needed Avatar answered Sep 30 '22 23:09

Fragmentation Needed


The first time, I was able to sort out problems with Package Manager by using HTTP instead of HTTPS, as in

http://alensiljak.blogspot.co.at/2012/11/setting-up-portable-sublime-text-2.html

The default setup seem to respect the system proxy settings and work through the proxy without explicitely setting "http_proxy", "proxy_username", and "proxy_password".

Hopefully this helps.

More details on various settings at (for the record, as you've already referred to these):

http://wbond.net/sublime_packages/package_control/settings

Note: This applies to Windows version. I keep the Linux version in the same directory but can't confirm the behaviour currently.

like image 42
Alen Siljak Avatar answered Sep 30 '22 21:09

Alen Siljak