PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

After deleting and re-creating, conda env will not appear in the list.

Open ttSpace opened this issue 3 years ago • 3 comments

Describe the bug

image

Steps to Reproduce

  1. Create a Python Application.
  2. Create a conda environment. (Install Anaconda (downloads at https://www.anaconda.com/download/) if no Anaconda )
  3. Close the VS and go to C:\ProgramData\Anaconda3\envs, then delete the env.
  4. Launch VS and open the Python Application.
  5. Prompt to create and click Create environment

image

  1. The conda env is create successfully. But it doesn’t appear in the list.

image

  1. You can add an existing env to show it.

missing_conda_env

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

ttSpace avatar Aug 23 '21 07:08 ttSpace

Might be related to #6686

rchiodo avatar Sep 01 '21 22:09 rchiodo

I can repro this in today's build 17.2.0 Preview 1.0 [32110.307.main].

ttSpace avatar Jan 11 '22 07:01 ttSpace

Seems related to #6715

StellaHuang95 avatar Jun 10 '22 18:06 StellaHuang95

@StellaHuang95 is this a dupe? If so, could you close the newer one?

judej avatar Jan 06 '23 19:01 judej

@judej No the other one is a separate issue.

StellaHuang95 avatar Jan 06 '23 20:01 StellaHuang95

That should be fixed. See https://github.com/microsoft/PTVS/pull/7603

StellaHuang95 avatar May 24 '23 18:05 StellaHuang95