-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variable is not being passed to the extension host #65113
Comments
I think this is a duplicate, but @weinand would know better |
This doesn't seem to be debug related. |
@ramya-rao-a I cannot reproduce. Here is what I have tried:
|
Environment variable passthrough works. For some reason using GOPROXY
itself doesn't. My first thought was because vscode has global proxy
configurations, maybe it strips out *PROXY environment variables from the
object passed to extensions.
When I am back in the office I will test naming it something else entirely,
or naming it something like TESTPROXY.
…On Mon, Dec 17, 2018, 9:07 AM Alexandru Dima ***@***.***> wrote:
@ramya-rao-a <https://github.com/ramya-rao-a> I cannot reproduce. Here is
what I have tried:
- I have defined an environmental variable TEST_65113:
[image: image]
<https://user-images.githubusercontent.com/5047891/50091900-e963b680-020c-11e9-8996-7bb946bc61c3.png>
- package.json:
{
"name": "65113",
"publisher": "alex",
"version": "1.0.0",
"engines": {
"vscode": "^1.31.0"
},
"activationEvents": ["*"],
"main": "index.js"
}
- index.js
console.log(JSON.stringify(process.env['TEST_65113']));
I can then see that the value is available:
[image: image]
<https://user-images.githubusercontent.com/5047891/50092026-4495a900-020d-11e9-9f64-b934cec90c3c.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#65113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABwwRbTcDfARJKGS4u4aXzDAF-qQ1o6Lks5u56UZgaJpZM4ZUWhN>
.
|
@lrstanley I also cannot reproduce when naming the environment variable as |
I can still seem to replicate, specifically with I will follow up in microsoft/vscode-go#2026 to troubleshoot on the vscode-go side a bit more. |
Confirmed, this can be closed -- not an issue with vscode. |
Related to microsoft/vscode-go#2026 by @lrstanley
@lrstanley is on a Windows machine and has an environment variable called
GOPROXY
which is available in both Git bash and the Windows command prompt.When running VS Code (either directly or from the Git bash or the Windows command prompt), the variable is being passed to VS Code just fine as it is available when echoing in the integrated terminal.
But the same is not being passed to the Go extension. We added console.log statements in the extension code to print out
process.env.GOPROXY
and it wasnt available.Therefore, logging this issue here.
The text was updated successfully, but these errors were encountered: