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

Select Python Interpreter could not recognize the Miniconda enviroments #16322

Closed
guotuofeng opened this issue May 26, 2021 · 9 comments
Closed
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@guotuofeng
Copy link

guotuofeng commented May 26, 2021

Environment data

  • VS Code version: 1.56.2
  • Extension version (available under the Extensions sidebar): v2021.5.842923320
  • OS and version: Windows 10 Enterprise (21H1) (19043.985)
  • Python version (& distribution if applicable, e.g. Anaconda): Miniconda3-Python 3.7.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: Pylance

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

When run "Python: Select Interpreter", all installed Miniconda environment should be discovered.
image

Actual behaviour

The dropdown list can only show part of the Miniconda environments in my machine.

image

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

The select interpreter is broken in my machine, which seems be related to %USERPROFILE%\AppData\Roaming\Code\User\globalStorage\state.vscdb

The select interpreter can only show the python associated with current project. If I delete the state.vscdb cache file, the select interpreter could discovered all available Miniconda environments. On the other hand, if I restore state.vscdb, the issue will happen again like the screenshot shown.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

@guotuofeng guotuofeng added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels May 26, 2021
@guotuofeng
Copy link
Author

add the vscode database.
state.zip

@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments triage and removed triage-needed Needs assignment to the proper sub-team labels May 26, 2021
@kimadeline
Copy link

Hi @guotuofeng, thank you for reaching out!

What happens if you use the "Clear Internal Extension Cache" command?

image

@kimadeline kimadeline added the info-needed Issue requires more information from poster label May 26, 2021
@guotuofeng
Copy link
Author

Hi @guotuofeng, thank you for reaching out!

What happens if you use the "Clear Internal Extension Cache" command?

image

I tried out but it doesn't help. The issue is still there.

@CatNofishing
Copy link

Similiar issue

@wjx0912
Copy link

wjx0912 commented Jun 10, 2021

Similiar issue too.

@kimadeline
Copy link

@CatNofishing and @wjx0912, what do you mean by similar issue? If you delete the state.vscdb cache file, the select interpreter command can discover all available Miniconda environments?

@guotuofeng
Copy link
Author

Might be related with this issue: microsoft/vscode-jupyter#10552, since I hit the case as well.

@brettcannon brettcannon removed the info-needed Issue requires more information from poster label Jul 22, 2021
@kimadeline
Copy link

Hi everyone, is this issue still happening?

@kimadeline kimadeline added the info-needed Issue requires more information from poster label Jan 13, 2022
@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2022
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 bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants