PTVS
PTVS copied to clipboard
After deleting and re-creating, conda env will not appear in the list.
Describe the bug
Steps to Reproduce
- Create a Python Application.
- Create a conda environment. (Install Anaconda (downloads at https://www.anaconda.com/download/) if no Anaconda )
- Close the VS and go to
C:\ProgramData\Anaconda3\envs
, then delete the env. - Launch VS and open the Python Application.
- Prompt to create and click Create environment
- The conda env is create successfully. But it doesn’t appear in the list.
- You can add an existing env to show it.
Output info
Info: Info: Pylance language server 2021.4.1 (pyright 6410a8a2) startingServer root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Info: Info: Warning: No configuration file found.Setting pythonPath for service "PythonApplication10": "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\python.exe"Info: Info: Info: stubPath C:\Users\vting\source\repos\PythonApplication10\PythonApplication10\typings is not a valid directory.
Assuming Python version 3.9Assuming Python platform WindowsInfo: Info: Info:
Searching for source files
Found 1 source fileBackground analysis(1) startedBackground analysis(1) root directory: c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\microsoft\python\core\pylance\dist
Info: No configuration file found.
Info: Warning: Info: Setting pythonPath for service "PythonApplication10": "C:\ProgramData\Anaconda3\envs\env5\python.exe"Info: stubPath C:\Users\vting\source\repos\PythonApplication10\PythonApplication10\typings is not a valid directory.Assuming Python version 3.9
Assuming Python platform Windows
Info: Searching for source files
Info: Found 1 source file
Might be related to #6686
I can repro this in today's build 17.2.0 Preview 1.0 [32110.307.main]
.
Seems related to #6715
@StellaHuang95 is this a dupe? If so, could you close the newer one?
@judej No the other one is a separate issue.
That should be fixed. See https://github.com/microsoft/PTVS/pull/7603