forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Incorporate fixes from VSCode regarding Environment collection API #20822
Labels
area-terminal
feature-request
Request for new features or functionality
on-testplan
Added to test plan
Milestone
Comments
karrtikr
added
feature-request
Request for new features or functionality
area-terminal
needs proposal
Need to make some design decisions
labels
Mar 9, 2023
13 tasks
41 tasks
This comment was marked as resolved.
This comment was marked as resolved.
This was referenced Mar 21, 2023
41 tasks
karrtikr
pushed a commit
that referenced
this issue
Apr 11, 2023
This was referenced Apr 14, 2023
38 tasks
karrtikr
pushed a commit
that referenced
this issue
May 26, 2023
28 tasks
28 tasks
karrtikr
pushed a commit
that referenced
this issue
Aug 10, 2023
For microsoft/vscode#171173 #20822 To be merged tomorrow when latest insiders is released. Blocked on microsoft/vscode#189979.
Closed
17 tasks
karrtikr
pushed a commit
that referenced
this issue
Aug 23, 2023
This was referenced Aug 11, 2023
karrtikr
pushed a commit
that referenced
this issue
Aug 30, 2023
…EnvVarActivation` experiment (#21902) For #20822 ![image](https://github.com/microsoft/vscode-python/assets/13199757/8c9d4c87-54f2-4661-b6c6-c3b49ee3ff7a)
karrtikr
pushed a commit
that referenced
this issue
Aug 31, 2023
For #20822 #11039 Replacing as-is has its problems, for eg. pyenv asks their users to manipulate `PATH` in their init script: https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv, which we could end up replacing. ![image](https://github.com/microsoft/vscode-python/assets/13199757/cc904f76-8d42-47e1-a6c8-6cfff6543db8) Particularly for pyenv, it mean users not being able to find pyenv: ![image](https://github.com/microsoft/vscode-python/assets/13199757/26100328-c227-435b-a4f2-ec168099f4c1) Prepending solves it for cases where initial PATH value is suffix of the final value: ![image](https://github.com/microsoft/vscode-python/assets/13199757/a95e4ffd-68dc-4e73-905e-504b3051324f) But, in other cases, this means that we end up with the whole `PATH` thrice. This is because it prepends it twice: - Once in shell integration script - Once when creating a process So the final value could be: ``` PATH=<activated_full_path><activated_full_path><original_path> ``` where `<activated_full_path>` refers to value of `PATH` environment variable post activation. eg. ![image](https://github.com/microsoft/vscode-python/assets/13199757/7e771f62-eb53-49be-b261-d259096008f3)
anthonykim1
pushed a commit
to anthonykim1/vscode-python
that referenced
this issue
Sep 12, 2023
For microsoft/vscode#171173 microsoft#20822 To be merged tomorrow when latest insiders is released. Blocked on microsoft/vscode#189979.
anthonykim1
pushed a commit
to anthonykim1/vscode-python
that referenced
this issue
Sep 12, 2023
anthonykim1
pushed a commit
to anthonykim1/vscode-python
that referenced
this issue
Sep 12, 2023
…ctivation` experiment (microsoft#21879) For microsoft#944 microsoft#20822 We only apply those env vars to terminal which are not in process env variables, hence remove custom env vars from process variables.
anthonykim1
pushed a commit
to anthonykim1/vscode-python
that referenced
this issue
Sep 12, 2023
anthonykim1
pushed a commit
to anthonykim1/vscode-python
that referenced
this issue
Sep 12, 2023
For microsoft#20822 microsoft#11039 Replacing as-is has its problems, for eg. pyenv asks their users to manipulate `PATH` in their init script: https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv, which we could end up replacing. ![image](https://github.com/microsoft/vscode-python/assets/13199757/cc904f76-8d42-47e1-a6c8-6cfff6543db8) Particularly for pyenv, it mean users not being able to find pyenv: ![image](https://github.com/microsoft/vscode-python/assets/13199757/26100328-c227-435b-a4f2-ec168099f4c1) Prepending solves it for cases where initial PATH value is suffix of the final value: ![image](https://github.com/microsoft/vscode-python/assets/13199757/a95e4ffd-68dc-4e73-905e-504b3051324f) But, in other cases, this means that we end up with the whole `PATH` thrice. This is because it prepends it twice: - Once in shell integration script - Once when creating a process So the final value could be: ``` PATH=<activated_full_path><activated_full_path><original_path> ``` where `<activated_full_path>` refers to value of `PATH` environment variable post activation. eg. ![image](https://github.com/microsoft/vscode-python/assets/13199757/7e771f62-eb53-49be-b261-d259096008f3)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-terminal
feature-request
Request for new features or functionality
on-testplan
Added to test plan
Results from spike #20492. Issues to tackle next to start using environment variables for activation:
env
set in my fish config prevails over what I set in the env var collection vscode#184009Once these are done, implement using them in the Python extension:
pythonTerminalEnvVarActivation
experiment in multiroot workspaces #21101The text was updated successfully, but these errors were encountered: