Skip to content
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

Spike - Collect all the issues related to environment issues #8180

Closed
karthiknadig opened this issue Oct 23, 2019 · 3 comments
Closed

Spike - Collect all the issues related to environment issues #8180

karthiknadig opened this issue Oct 23, 2019 · 3 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments debt Covers everything internal: CI, testing, refactoring of the codebase, etc.

Comments

@karthiknadig
Copy link
Member

No description provided.

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Oct 23, 2019
@luabud luabud added area-environments Features relating to handling interpreter environments needs proposal Need to make some design decisions labels Oct 24, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Oct 24, 2019
@luabud luabud added the bug Issue identified by VS Code Team member as probable bug label Oct 24, 2019
@luabud luabud added debt Covers everything internal: CI, testing, refactoring of the codebase, etc. and removed bug Issue identified by VS Code Team member as probable bug labels Nov 5, 2019
@karrtikr
Copy link

For #8584
https://github.com/Microsoft/vscode-python/blob/b4499f03d9ace2a6b2c309ebcf5f746f6db39e99/src/client/debugger/extension/configuration/resolvers/helper.ts#L53

While resolving a debug configuration, this line in add code merges all of the process environment variables with the custom vars. So all of environment variables are sent to the Debug console.

New debug adapter also uses debug resolver to resolve configuration, so it also runs into this issue.

@karthiknadig
Copy link
Member Author

For the issue #8584 , this is caused by a change in what we used to consider as internalConsole. Previously, none meant internalConsole, and console type had ["none", "integratedTerminal", "externalTerminal"] , but some time this year, that changed to ["internalConsole", "integratedTerminal", "externalTerminal"]. There is no "none" console type.
https://github.com/Microsoft/vscode-python/blob/b4499f03d9ace2a6b2c309ebcf5f746f6db39e99/src/client/debugger/extension/configuration/resolvers/helper.ts#L49

When we see console is not defined, we assume internalConsole in the debugger. But the extension assumes absence of console as integratedTerminal, and overwrites the console value. So debugger receives full set of environment variables (instead of just the diff), and uses it in integratedTerminal.

if (!debugConfiguration.console) {
debugConfiguration.console = 'integratedTerminal';
}

@karthiknadig
Copy link
Member Author

couple of other issues with that code:

  1. It should not be setting utf-8 encoding. At least for the new debugger.
  2. gwent support will be set in the new debugger.
  3. The extension should not merge PATH and PYTHONPATH. This limits usage since they will always be additive. Instead they should override, that way users can override or provide combined paths as needed.

@int19h /cc

@ghost ghost removed the needs proposal Need to make some design decisions label Dec 10, 2019
@karrtikr karrtikr self-assigned this Dec 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments debt Covers everything internal: CI, testing, refactoring of the codebase, etc.
Projects
None yet
Development

No branches or pull requests

5 participants