Open bplaquevent opened 6 years ago
The DownloadFile functions use Atom's built-in Electron HTTP functions which rely on those supplied by the underlying Chromium. It should be automatically detecting any system-configured proxy servers on your machine.
The .apmrc file is an apm-specific configuration file which allows manually specifying proxies because it is built on node which does not use any system-configured proxy servers.
If your web browsers are working then Downloadfile should also be working. Is that not the case?
Hi, this is not the case. I'm able to install packages, update them (apm specific proxy settings OK). My Web browsers work flawlessly. But ide-php language server still fails to download... (Ubuntu desktop 18.04 with cntlm proxy, all browsers are configured to use the system proxy settings...) I have the exact same error today because of the plugin update.
The ide-php package can be installed without any error when .apmrc proxy settings are set properly. But when I open a new PHP project into Atom, I get an error (unable to retrieve resource in Atom console).
I found that the problem comes from ide-php/lib/main.js line 164. The DownloadFile function seems not to use the proxy settings.
I came into ide-php working by downloading manually the tarball, putting it on a local web server and mofifying main.js serverDownloadUrl const (line 8).
All runs fine now :)
What about retrieving proxy settings from .apmrc and using them for getting the language server ?