VS Code version
1.62.0
Extension version
v2021.11.1422169775
OS type
Windows
OS version
10
Python distribution
Anaconda
Python version
3.10.0
Language server
Pylance
Expected behaviour
I should be able to see and select my py310 anaconda python installation.
Actual behaviour
When selecting a python interpreter, I see my list of non-3.10 environments but only briefly see my py310 environment at the bottom of the list before it disappears. When I have forced the interpreter to my py310 install vscode still asks me to select an interpreter.
Steps to reproduce
No matter how I create a new anaconda environment with python 3.10, the same thing happens. I have tried making new non-3.10 environments and they show up in the interpreter list and are usable. Issue seems exclusive to python 3.10.
Logs
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'pythonSurveyNotification' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
Experiment 'pythonRunFailedTestsButtonDisplayed' is active
Experiment 'pythonRefreshTestsButtonDisplayed' is active
Experiment 'pythonRememberDebugConfig' is active
~\anaconda3\condabin info --json
conda info --json
~\anaconda3\python.exe ~.vscode\extensions\ms-python.python-2021.11.1422169775\pythonFiles\interpreterInfo.py
~\anaconda3\Scripts\conda.exe info --json
~\anaconda3\envs\py310\python.exe ~.vscode\extensions\ms-python.python-2021.11.1422169775\pythonFiles\interpreterInfo.py
\anaconda3\envs\py39\python.exe .vscode\extensions\ms-python.python-2021.11.1422169775\pythonFiles\interpreterInfo.py
"\anaconda3\Scripts\activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\Users\dunca.vscode\extensions\ms-python.python-2021.11.1422169775\pythonFiles\printEnvVariables.py"
"\anaconda3\Scripts\activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\Users\dunca.vscode\extensions\ms-python.python-2021.11.1422169775\pythonFiles\printEnvVariables.py"
~\anaconda3\envs\py397\python.exe ~.vscode\extensions\ms-python.python-2021.11.1422169775\pythonFiles\interpreterInfo.py
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
Starting Pylance language server.
python -c "import sys;print(sys.executable)"
Error 2021-11-05 13:01:19: Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
python -c "import sys;print(sys.executable)"
Code of Conduct
VS Code version
1.62.0
Extension version
v2021.11.1422169775
OS type
Windows
OS version
10
Python distribution
Anaconda
Python version
3.10.0
Language server
Pylance
Expected behaviour
I should be able to see and select my py310 anaconda python installation.
Actual behaviour
When selecting a python interpreter, I see my list of non-3.10 environments but only briefly see my py310 environment at the bottom of the list before it disappears. When I have forced the interpreter to my py310 install vscode still asks me to select an interpreter.
Steps to reproduce
No matter how I create a new anaconda environment with python 3.10, the same thing happens. I have tried making new non-3.10 environments and they show up in the interpreter list and are usable. Issue seems exclusive to python 3.10.
Logs
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'pythonSurveyNotification' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
Experiment 'pythonRunFailedTestsButtonDisplayed' is active
Experiment 'pythonRefreshTestsButtonDisplayed' is active
Experiment 'pythonRememberDebugConfig' is active
Code of Conduct