Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Felix Becker language server install error when behind a proxy #131

Open
bplaquevent opened this issue Nov 14, 2018 · 2 comments
Open

Felix Becker language server install error when behind a proxy #131

bplaquevent opened this issue Nov 14, 2018 · 2 comments

Comments

@bplaquevent
Copy link

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 ?

@damieng
Copy link
Contributor

damieng commented Nov 14, 2018

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?

@bplaquevent
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants