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

Extension doesn't list conda environment until window refresh #14971

Closed
SiddhanthUnnithan opened this issue Dec 14, 2020 · 4 comments
Closed
Labels
area-environments Features relating to handling interpreter environments feature-request Request for new features or functionality

Comments

@SiddhanthUnnithan
Copy link

Testing Codespace Scenario: 1791

Steps:

  1. Create conda environment using dependencies file (YAML).
  2. Test conda environment by activating in terminal.
  3. Click interpreter list in status bar.
  4. Check for freshly installed env via name.

Expected:
Interpreter list would include freshly installed conda env without requiring a window refresh.

@SiddhanthUnnithan SiddhanthUnnithan added feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team labels Dec 14, 2020
@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments triage bug Issue identified by VS Code Team member as probable bug and removed feature-request Request for new features or functionality labels Dec 15, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Dec 15, 2020
@kimadeline
Copy link

@SiddhanthUnnithan which version of the extension were you using? Were you opted into any experiment (python.experiments.optInto)?

@kimadeline kimadeline changed the title Extension doesn't list conda environment after fresh install Extension doesn't list conda environment until window refresh Dec 16, 2020
@kimadeline
Copy link

Could reproduce with the following versions of the extension:

  • 2020.11.371526539
  • 2020.12.424027540 (not opted into the pythondiscoverymodule experiment)

When creating a new conda environment with dependencies (conda env create -f environment.yml) in the codespace terminal, the environment doesn't appear in the list of interpreters until the window is refreshed.

@kimadeline kimadeline added needs spike Label for issues that need investigation before they can be worked on. reason-preexisting and removed triage labels Dec 16, 2020
@kimadeline kimadeline removed their assignment Dec 16, 2020
@brettcannon brettcannon added needs decision feature-request Request for new features or functionality and removed needs spike Label for issues that need investigation before they can be worked on. bug Issue identified by VS Code Team member as probable bug labels Dec 16, 2020
@luabud
Copy link
Member

luabud commented Feb 2, 2021

Related to #2640

@karthiknadig
Copy link
Member

karthiknadig commented Feb 26, 2021

Looks like this is addressed with the new discovery module. We detect the new environment after creation and list it, without refreshing the window:
image

@ghost ghost removed the needs PR label Feb 26, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2021
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 feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

5 participants