Network Connection Proxy in Dart Editor

Eclipse has a Network Connections page in its settings that allows you to use a proxy for network connections, so if I’m behind a firewall, I can use these connections. I do not see such an option in the dart editor. So while I am at work, because of this I can’t update from the network. I can install the proxy server in the browser, but not in the Dart Editor. With a direct connection to the Internet service provider, everything is in order, but not on the internal network.

Is there any way to fix this problem? If there is another way to allow the Dart Editor to connect to the network proxy, I would be glad.

+2
source share
1 answer

You must set environment variables

https://www.dartlang.org/tools/editor/troubleshoot.html#pub-get-firewall

http_proxy=http://<yourproxy>.<yourdomain>.com:9090/ https_proxy=https://<yourproxy>.<yourdomain>.com:9090/ no_proxy=localhost,127.0.0.0/8 

If your proxy server needs authentication, the configuration will look like this:

 http_proxy=http://<username>:<password>@<yourproxy>.<yourdomain>.com:9090/ https_proxy=https://<username>:<password>@<yourproxy>.<yourdomain>.com:9090/ 

DartEditor is no longer

To enable the Dart Editor to check for updates, add the following to the DartEditor.ini file:

 -Dhttp.proxyHost=<yourproxy>.<yourdomain>.com -Dhttp.proxyPort=9090 -Dhttps.proxyHost=<yourproxy>.<yourdomain>.com -Dhttps.proxyPort=9090 

If you need a username and password for authentication, add:

 -Dhttp.proxyUser=<username> -Dhttp.proxyPassword=<passwordstring> -Dhttps.proxyUser=<username> -Dhttps.proxyPassword=<passwordstring> 

Strike>

See also https://github.com/dart-lang/sdk/issues/24080

+1
source

Source: https://habr.com/ru/post/1483307/


All Articles