MATLAB-extension-for-vscode
MATLAB-extension-for-vscode copied to clipboard
NO_PROXY is not respected by extension
Describe the bug
In proxy-supported environments, the extension fails to establish a connection to MATLAB, because it is attempting to route its connection to localhost
through your proxy host. The extension should be bypassing the proxy for connections to hosts specified in the NO_PROXY
environment variable. However, including localhost
on the bypass list has no effect.
Related information
It appears that the proxy support for extensions was expanded in 2019 to include support for NO_PROXY
: https://github.com/microsoft/vscode/issues/68260.
To Reproduce
Steps to reproduce the behavior:
- Set up a proxy server
- Set your system environment variables to point to your proxy server
-
HTTP_PROXY=http://proxy.company.com:3128
-
HTTPS_PROXY=http://proxy.company.com:3128
-
- Set your system environment variable to bypass the proxy for
locahost
-
NO_PROXY=localhost
-
- Launch VSCode in a MATLAB project workspace
- Open a MATLAB script if needed
- Watch the extension try to connect to MATLAB
-
- See the popup message saying that it failed to connect
-
Expected behavior
The MATLAB extension should bypass the proxy and successfully establish its connection to localhost.
Screenshots
See above.
Useful Information
Version: 1.86.0-insider (user setup)
Commit: a017b12b9caa3475675cfe6fda014fcf5af388c9
Date: 2023-12-19T05:37:59.567Z
Electron: 27.1.3
ElectronBuildId: 25612240
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.19045
Additional context
I've already worked with MathWorks support on this issue and they acknowledge the deficiency. They told me they have opened up a formal request to address the problem; however, I wanted to open up this issue so that it is tracked publicly and viewable by all.
Hi, we are facing the same issue. Is there any response from the maintainers already? Thanks!
This is an issue which we are looking into. Unfortunately, we do not have a workaround at this time beyond clearing the HTTP_PROXY
and HTTPS_PROXY
environment variables.