Skip to content

[BUG] the plugin delete all packages i have installed #289

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

Closed
TioeAre opened this issue Apr 11, 2025 · 18 comments · Fixed by microsoft/vscode-python#24986
Closed

[BUG] the plugin delete all packages i have installed #289

TioeAre opened this issue Apr 11, 2025 · 18 comments · Fixed by microsoft/vscode-python#24986

Comments

@TioeAre
Copy link

TioeAre commented Apr 11, 2025

when activate a already exist conda environments, it shows a notice like this

Image

Then the plugin delete all packages i have installed and leave a completely empty environment.

Image

this conda env was created in a docker image by docker build

then I run a docker container and use vscode-remote to connect the container by ssh. And I use this plugin to activate the env in the server's docker container . Then it directly delete the all packages I haved installed

Image

@TioeAre TioeAre changed the title the plugin delete all packages i have installed [BUG] the plugin delete all packages i have installed Apr 11, 2025
@karthiknadig
Copy link
Member

@TioeAre You’re currently looking at the list of all environments, not the one that’s actively selected. The checkmark you see isn’t an indicator of the selected environment—it’s actually a command you can click to select that environment.

Take note of the environment name “base”—that’s just one of the options available. To see your actual working environment, look at the project view above where it says “chartcoder.” That’s the environment currently in use.

If you expand the “Prefix” section, you’ll see all the environments that exist on your machine.

@karthiknadig
Copy link
Member

This is screen shot from my machine. The .venv here is same as chartcoder in your screen shot.
Image

You can also expand the project view to see your packages:

Image

@TioeAre
Copy link
Author

TioeAre commented Apr 11, 2025

@karthiknadig Thanks for your response!
but there might be a misunderstanding about the issue I'm encountering. Here are the detailed steps to reproduce the problem.

  1. At first, I use Python Environment Manager (deprecated) for python env manage. when i use this plugin

Image

I click the star to activate the conda env chartcoder, and as you can see in terminal, the env was successfully activated. And all my packages were there.

Image

  1. Then I disable this plugin and enable Python Environments (version
    0.3.10991008). At first, a notice appeared in the lower right corner Installing Conda packages, and env switch to base

Image

Then I activate the conda env chartcoder by the plugin. and open a new terminal, The first line command path/conda activate chartcoder seems to be entered automatically and get an error.

Image

All the packages in chartcoder env are disappeared

@karthiknadig
Copy link
Member

@TioeAre pip list may not give you the right thing. pip might not be the pip from your environment. Read this https://snarky.ca/why-you-should-use-python-m-pip/ .

Can you click on > and expand to see packages:
Image

Like:

Image

If you can please share the logs from Python > Environments. We actually don't have an automatic way to uninstall or delete packages. so it is strange to see that it is not showing the right thing.

@TioeAre
Copy link
Author

TioeAre commented Apr 11, 2025

@karthiknadig
I click on > and expand it, however there shows nothing under it.

As for pip I explicitly use /home/user/anaconda3/envs/chartcoder/bin/pip list and /home/user/anaconda3/envs/chartcoder/bin/python -m pip list but still no packages

Image

About the logs, would you like to tell me the full path to the Python > Environments ?

@TioeAre
Copy link
Author

TioeAre commented Apr 11, 2025

I also noticed that, before when using Python Environment Manager (deprecated) then python version in chartcoder env is 3.10.0 (can see it on the right side of the bottom bar)

Image

After enable this plugin, the python version became 3.13.2

Image

@karthiknadig
Copy link
Member

Can you share logs from this location?

Image

Can you run this tool from the terminal and share the output as well? You have to adjust the path for your computer. This should be the first line in the log. It should be run without server part.

c:\Users\kanadig\.vscode-insiders\extensions\ms-python.vscode-python-envs-0.3.11011008-win32-x64\python-env-tools\bin\pet

@TioeAre
Copy link
Author

TioeAre commented Apr 11, 2025

@karthiknadig

I create a totally new docker container, these are the logs from vscode. In this new container, chartcoder should have python 3.10.0 with all packages

2025-04-11 16:55:20.989 [info] Starting Python Locator /home/lixuan-ustc/.vscode-server/extensions/ms-python.vscode-python-envs-0.3.10991008-linux-x64/python-env-tools/bin/pet server
2025-04-11 16:55:20.989 [info] Using conda from persistent state: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:20.989 [info] Refreshing conda environments
2025-04-11 16:55:21.044 [info] Discovered manager: (Conda) /home/lixuan-ustc/anaconda3/bin/conda
2025-04-11 16:55:21.044 [info] Discovered env: /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:21.045 [info] Discovered env: /bin/python3
2025-04-11 16:55:21.045 [info] Discovered env: /usr/bin/python3
2025-04-11 16:55:21.045 [info] Discovered env: /home/lixuan-ustc/anaconda3/bin/python
2025-04-11 16:55:21.045 [info] Locator Conda took 44.317662ms
2025-04-11 16:55:21.045 [info] Locator Homebrew took 763.526µs
2025-04-11 16:55:21.045 [info] Locator LinuxGlobal took 40.202142ms
2025-04-11 16:55:21.045 [info] Locator PipEnv took 396.128µs
2025-04-11 16:55:21.045 [info] Locator Pixi took 186.378µs
2025-04-11 16:55:21.045 [info] Locator Poetry took 10.291714ms
2025-04-11 16:55:21.045 [info] Locator PyEnv took 1.491495ms
2025-04-11 16:55:21.045 [info] Locator Venv took 166.798µs
2025-04-11 16:55:21.045 [info] Locator VirtualEnv took 284.369µs
2025-04-11 16:55:21.045 [info] Locator VirtualEnvWrapper took 342.058µs
2025-04-11 16:55:21.045 [info] Locator GlobalVirtualEnvs took 1.344917ms
2025-04-11 16:55:21.045 [info] Locator Locators took 44.490517ms
2025-04-11 16:55:21.045 [info] Locator Path took 50.106032ms
2025-04-11 16:55:21.045 [info] Locator Workspaces took 16.479131ms
2025-04-11 16:55:21.045 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:21.046 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:21.046 [info] Found base environment: /home/lixuan-ustc/anaconda3
2025-04-11 16:55:21.050 [info] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":50,"breakdown":{"GlobalVirtualEnvs":1,"Locators":44,"Path":50,"Workspaces":16},"locators":{"Conda":44,"Homebrew":0,"LinuxGlobal":40,"PipEnv":0,"Pixi":0,"Poetry":10,"PyEnv":1,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
2025-04-11 16:55:22.557 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:22.557 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:22.557 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:22.558 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:22.995 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:22.995 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:22.995 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:23.416 [info] Python API: Changed environment from undefined to chartcoder (3.10.0) for: /fs-ift/med/lixuan-ustc/projects/ChartCoder
2025-04-11 16:55:23.416 [info] Internal: Changed environment from undefined to chartcoder (3.10.0) for: /fs-ift/med/lixuan-ustc/projects/ChartCoder
2025-04-11 16:55:24.061 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:24.061 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:24.061 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:24.077 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:24.077 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:24.077 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:24.077 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:24.077 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:24.077 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:24.826 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:25.266 [info] Python API: Changed environment from undefined to base (3.12.7) for: global
2025-04-11 16:55:25.266 [info] Internal: Changed environment from undefined to base (3.12.7) for: global
2025-04-11 16:55:25.274 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:25.274 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:25.274 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:25.280 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:25.280 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:25.280 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:25.283 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:25.283 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:25.283 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:25.295 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:25.295 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:25.295 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:37.365 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:37.883 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:37.883 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:37.883 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:37.883 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:37.883 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:37.883 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:55:37.887 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:55:37.887 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:55:37.887 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:56:31.793 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:56:31.793 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:56:31.793 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:56:31.793 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:56:34.288 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:56:34.780 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:56:34.780 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:56:34.780 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:56:34.781 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:56:34.781 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:56:34.781 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-11 16:56:34.784 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-11 16:56:34.784 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-11 16:56:34.784 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder

this is the output of command /path/.vscode-server/extensions/ms-python.vscode-python-envs-0.1.2025011501-linux-x64/python-env-tools/bin/pet, the command exec in vscode terminal after the plugin enabled.
At this time, python became 3.13.2 and packages disappeared.

Manager (Conda)
   Executable  : /home/lixuan-ustc/anaconda3/bin/conda
   Version     : 24.9.2

Environment (Conda)
   Name        : chartcoder
   Executable  : /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
   Version     : 3.13.2
   Prefix      : /home/lixuan-ustc/anaconda3/envs/chartcoder
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.13"

Environment (Conda)
   Name        : base
   Executable  : /home/lixuan-ustc/anaconda3/bin/python
   Version     : 3.12.7
   Prefix      : /home/lixuan-ustc/anaconda3
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/bin/python"
               : "/home/lixuan-ustc/anaconda3/bin/python3"
               : "/home/lixuan-ustc/anaconda3/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/bin/python3.12"

Environment (LinuxGlobal)
   Executable  : /bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/bin/python3"
               : "/bin/python3.8"

Environment (LinuxGlobal)
   Executable  : /usr/bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/usr/bin/python3"
               : "/usr/bin/python3.8"


Breakdown by each locator:
--------------------------
Conda                : 31.476202ms
Homebrew             : 365.98µs
LinuxGlobal          : 49.408782ms
PipEnv               : 332ns
Pixi                 : 18.709µs
Poetry               : 5.34147ms
PyEnv                : 132.956µs
Venv                 : 235ns
VirtualEnv           : 80.703µs
VirtualEnvWrapper    : 20.283µs

Breakdown for finding Environments:
-----------------------------------
GlobalVirtualEnvs    : 1.053538ms
Locators             : 50.335407ms
Path                 : 98.326342ms
Workspaces           : 11.959598ms

Managers:
---------
Conda                : 1

Environments (4):
------------------
Conda                : 2
LinuxGlobal          : 2

Completed in 102ms

@TioeAre
Copy link
Author

TioeAre commented Apr 11, 2025

This is the output of ~/.vscode-server/extensions/ms-python.vscode-python-envs-0.3.10991008-linux-x64/python-env-tools/bin/pet runs in external shell in another new docker container with origin chartcoder env before enable the plugin.

Manager (Conda)
   Executable  : /home/lixuan-ustc/anaconda3/bin/conda
   Version     : 24.9.2

Environment (Conda)
   Name        : base
   Executable  : /home/lixuan-ustc/anaconda3/bin/python
   Version     : 3.12.7
   Prefix      : /home/lixuan-ustc/anaconda3
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/bin/python"
               : "/home/lixuan-ustc/anaconda3/bin/python3"
               : "/home/lixuan-ustc/anaconda3/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/bin/python3.12"

Environment (Conda)
   Name        : chartcoder
   Executable  : /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
   Version     : 3.10.0
   Prefix      : /home/lixuan-ustc/anaconda3/envs/chartcoder
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.10"

Environment (LinuxGlobal)
   Executable  : /bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/bin/python3"
               : "/bin/python3.8"

Environment (LinuxGlobal)
   Executable  : /usr/bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/usr/bin/python3"
               : "/usr/bin/python3.8"


Breakdown by each locator:
--------------------------
Conda                : 19.080513ms
Homebrew             : 235.494µs
LinuxGlobal          : 44.579201ms
PipEnv               : 465ns
Pixi                 : 50.26µs
Poetry               : 684.101µs
PyEnv                : 700.195µs
Venv                 : 487ns
VirtualEnv           : 19.938µs
VirtualEnvWrapper    : 44.703µs

Breakdown for finding Environments:
-----------------------------------
GlobalVirtualEnvs    : 632.009µs
Locators             : 45.328477ms
Path                 : 67.003132ms
Workspaces           : 18.030449ms

Managers:
---------
Conda                : 1

Environments (4):
------------------
Conda                : 2
LinuxGlobal          : 2

Completed in 67ms

@karthiknadig
Copy link
Member

@DonJayamanne pet is giving different answers for each of these cases. Can you take a look?

@DonJayamanne
Copy link

this is the output of command /path/.vscode-server/extensions/ms-python.vscode-python-envs-0.1.2025011501-linux-x64/python-env-tools/bin/pet, th
This is the output of ~/.vscode-server/extensions/ms-python.vscode-python-envs-0.3.10991008-linux-x64/python-env-tools/bin/pet runs

Looks like you have different versions of Python env extension installed.
0.1.2025011501 and 0.3.10991008.
Please can you ensure you have the same versions.
& then share the logs again.

@TioeAre
Copy link
Author

TioeAre commented Apr 14, 2025

@DonJayamanne sorry for that, I once backed up .vscode_server for some reason and misremembered the path.

now I run a new docker container, this is the output for pet before the Python Environments enabled.

~/.vscode-server/extensions/ms-python.vscode-python-envs-0.3.10991008-linux-x64/python-env-tools/bin/pet
Manager (Conda)
   Executable  : /home/lixuan-ustc/anaconda3/bin/conda
   Version     : 24.9.2

Environment (Conda)
   Name        : chartcoder
   Executable  : /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
   Version     : 3.10.0
   Prefix      : /home/lixuan-ustc/anaconda3/envs/chartcoder
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.10"

Environment (Conda)
   Name        : base
   Executable  : /home/lixuan-ustc/anaconda3/bin/python
   Version     : 3.12.7
   Prefix      : /home/lixuan-ustc/anaconda3
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/bin/python"
               : "/home/lixuan-ustc/anaconda3/bin/python3"
               : "/home/lixuan-ustc/anaconda3/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/bin/python3.12"

Environment (LinuxGlobal)
   Executable  : /bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/bin/python3"
               : "/bin/python3.8"

Environment (LinuxGlobal)
   Executable  : /usr/bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/usr/bin/python3"
               : "/usr/bin/python3.8"


Breakdown by each locator:
--------------------------
Conda                : 18.916358ms
Homebrew             : 298.989µs
LinuxGlobal          : 42.844091ms
PipEnv               : 518ns
Pixi                 : 16.433µs
Poetry               : 5.909495ms
PyEnv                : 171.303µs
Venv                 : 3.921µs
VirtualEnv           : 51.857µs
VirtualEnvWrapper    : 3.499µs

Breakdown for finding Environments:
-----------------------------------
GlobalVirtualEnvs    : 605.929µs
Locators             : 43.810072ms
Path                 : 69.829342ms
Workspaces           : 10.777477ms

Managers:
---------
Conda                : 1

Environments (4):
------------------
Conda                : 2
LinuxGlobal          : 2

Completed in 71ms

This is the output after enable the extension and reload the vscode window.

~/.vscode-server/extensions/ms-python.vscode-python-envs-0.3.10991008-linux-x64/python-env-tools/bin/pet
Manager (Conda)
   Executable  : /home/lixuan-ustc/anaconda3/bin/conda
   Version     : 24.9.2

Environment (Conda)
   Name        : chartcoder
   Executable  : /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
   Version     : 3.13.2
   Prefix      : /home/lixuan-ustc/anaconda3/envs/chartcoder
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python3.13"

Environment (Conda)
   Name        : base
   Executable  : /home/lixuan-ustc/anaconda3/bin/python
   Version     : 3.12.7
   Prefix      : /home/lixuan-ustc/anaconda3
   Architecture: x64
   Manager     : Conda, /home/lixuan-ustc/anaconda3/bin/conda
   Symlinks    : "/home/lixuan-ustc/anaconda3/bin/python"
               : "/home/lixuan-ustc/anaconda3/bin/python3"
               : "/home/lixuan-ustc/anaconda3/bin/python3.1"
               : "/home/lixuan-ustc/anaconda3/bin/python3.12"

Environment (LinuxGlobal)
   Executable  : /bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/bin/python3"
               : "/bin/python3.8"

Environment (LinuxGlobal)
   Executable  : /usr/bin/python3
   Version     : 3.8.10.final.0
   Prefix      : /usr
   Architecture: x64
   Symlinks    : "/usr/bin/python3"
               : "/usr/bin/python3.8"


Breakdown by each locator:
--------------------------
Conda                : 29.33521ms
Homebrew             : 142.15µs
LinuxGlobal          : 52.441075ms
PipEnv               : 5.594µs
Pixi                 : 4.388µs
Poetry               : 7.921675ms
PyEnv                : 386.309µs
Venv                 : 431ns
VirtualEnv           : 14.47µs
VirtualEnvWrapper    : 3.077µs

Breakdown for finding Environments:
-----------------------------------
GlobalVirtualEnvs    : 516.029µs
Locators             : 53.120614ms
Path                 : 78.407327ms
Workspaces           : 14.745335ms

Managers:
---------
Conda                : 1

Environments (4):
------------------
Conda                : 2
LinuxGlobal          : 2

Completed in 79ms

there is a short video, at first pip list shows all packages, then I enable the plugin and reload the window and activate the env chartcoder by the plugin

then all packages disappeared

2025-04-14.14-37-53.mp4

@DonJayamanne
Copy link

DonJayamanne commented Apr 14, 2025

Thank you the the logs and the screenshot.

enable the extension and reload the vscode window.

@TioeAre
Please can you list all of the files in this directory before and after enabling the extension
/home/lixuan-ustc/anaconda3/bin/
Thanks again for your patience.

@karthiknadig Looks like the extension is installing something. If you check the recording above you can see the progress bar at the bottom right for some installation. Could it be thats whats causing this issue.
I don't see how PET can change the results based on activation of an extension, clearly something is changing in the file system and PET doesn't do that.

@TioeAre
Copy link
Author

TioeAre commented Apr 14, 2025

@DonJayamanne Here are files before enabling the extension

~/anaconda3/bin$ tree -a
.
├── 2to3 -> 2to3-3.12
├── 2to3-3.12
├── acountry
├── activate
├── adig
├── aec
├── ahost
├── anaconda
├── anaconda-navigator
├── anaconda-project
├── aomdec
├── aomenc
├── archspec
├── assistant
├── automat-visualize
├── autopep8
├── b2
├── balsam
├── binstar
├── bjam
├── black
├── blackd
├── bokeh
├── brotli
├── bsdcat
├── bsdcpio
├── bsdtar
├── bunzip2
├── bzcat
├── bzcmp -> bzdiff
├── bzdiff
├── bzegrep -> bzgrep
├── bzfgrep -> bzgrep
├── bzgrep
├── bzip2
├── bzip2recover
├── bzless -> bzmore
├── bzmore
├── canbusutil
├── captoinfo -> tic
├── cbrunsli
├── certutil
├── cftp
├── chardetect
├── cjpeg
├── ckeygen
├── clear
├── compile_et
├── conch
├── conda
├── conda2solv
├── conda-build
├── conda-content-trust
├── conda-convert
├── conda-debug
├── conda-develop
├── conda-env
├── conda-inspect
├── conda-metapackage
├── conda-pack
├── conda-render
├── conda-repo
├── conda-server
├── conda-skeleton
├── conda-token
├── cookiecutter
├── cph
├── cpuinfo
├── c_rehash
├── csv-import
├── cups-config
├── curl
├── curl-config
├── curve_keygen
├── dask
├── dask-scheduler
├── dask-spec
├── dask-ssh
├── dask-worker
├── datashader
├── dav1d
├── dbrunsli
├── dbus-cleanup-sockets
├── dbus-daemon
├── dbus-launch
├── dbus-monitor
├── dbus-run-session
├── dbus-send
├── dbus-test-tool
├── dbus-update-activation-environment
├── dbus-uuidgen
├── deactivate
├── derb
├── designer
├── distro
├── djpeg
├── dltest
├── dmypy
├── dotenv
├── dumpsolv
├── elasticurl
├── elastipubsub
├── epylint
├── f2py
├── fax2ps
├── fax2tiff
├── fc-cache
├── fc-cat
├── fc-conflist
├── fc-list
├── fc-match
├── fc-pattern
├── fc-query
├── fc-scan
├── fc-validate
├── fits2bitmap
├── fitscheck
├── fitscopy
├── fitsdiff
├── fitsheader
├── fitsinfo
├── fixqt4headers.pl
├── flake8
├── flask
├── fonttools
├── fpack
├── freetype-config
├── funpack
├── gapplication
├── gdbus
├── gdbus-codegen
├── genbrk
├── gencfu
├── gencnval
├── gendict
├── genrb
├── get_gprof
├── get_objgraph
├── gflags_completions.sh
├── gif2h5
├── gif2rgb
├── gifbuild
├── gifclrmp
├── giffix
├── giftext
├── giftool
├── gio
├── gio-querymodules
├── glib-compile-resources
├── glib-compile-schemas
├── glib-genmarshal
├── glib-gettextize
├── glib-mkenums
├── gobject-query
├── gresource
├── grpc_cpp_plugin
├── grpc_csharp_plugin
├── grpc_node_plugin
├── grpc_objective_c_plugin
├── grpc_php_plugin
├── grpc_python_plugin
├── grpc_ruby_plugin
├── gsettings
├── gss-client
├── gst-device-monitor-1.0
├── gst-discoverer-1.0
├── gst-inspect-1.0
├── gst-launch-1.0
├── gst-play-1.0
├── gst-stats-1.0
├── gst-typefind-1.0
├── gtester
├── gtester-report
├── h52gif
├── h5c++
├── h5cc
├── h5clear
├── h5copy
├── h5debug
├── h5diff
├── h5dump
├── h5fc
├── h5format_convert
├── h5import
├── h5jam
├── h5ls
├── h5mkgrp
├── h5perf_serial
├── h5redeploy
├── h5repack
├── h5repart
├── h5stat
├── h5unjam
├── h5watch
├── holoviews
├── httpx
├── iconv
├── icu-config
├── icuexportdata
├── icuinfo
├── idle3 -> idle3.12
├── idle3.12
├── imagecodecs
├── imageio_download_bin
├── imageio_remove_bin
├── imcopy
├── infocmp
├── infotocap -> tic
├── innochecksum
├── installcheck
├── ippeveprinter
├── ipptool
├── ipython
├── ipython3
├── isort
├── isort-identify-imports
├── isql
├── isympy
├── iusql
├── jlpm
├── jpegtran
├── jpgicc
├── jp.py
├── jq
├── jsondiff
├── jsonpatch
├── jsonpointer
├── jsonschema
├── jupyter
├── jupyter-console
├── jupyter-dejavu
├── jupyter-events
├── jupyter-execute
├── jupyter-kernel
├── jupyter-kernelspec
├── jupyter-lab
├── jupyter-labextension
├── jupyter-labhub
├── jupyter-migrate
├── jupyter-nbconvert
├── jupyter-notebook
├── jupyter-qtconsole
├── jupyter-run
├── jupyter-server
├── jupyter-troubleshoot
├── jupyter-trust
├── JxrDecApp
├── JxrEncApp
├── k5srvutil
├── kadmin
├── kdestroy
├── keyring
├── kinit
├── klist
├── kpasswd
├── krb5-config
├── ksu
├── kswitch
├── ktutil
├── kvno
├── lconvert
├── libdeflate-gunzip
├── libdeflate-gzip
├── libpng16-config
├── libpng-config -> libpng16-config
├── linguist
├── linkicc
├── lprodump
├── lrelease
├── lrelease-pro
├── lsm2bin
├── lupdate
├── lupdate-pro
├── lz4
├── lz4c -> lz4
├── lz4cat -> lz4
├── lz4_decompress
├── lzcat -> xz
├── lzcmp -> xzdiff
├── lzdiff -> xzdiff
├── lzegrep -> xzgrep
├── lzfgrep -> xzgrep
├── lzgrep -> xzgrep
├── lzless -> xzless
├── lzma -> xz
├── lzmadec
├── lzmainfo
├── lzmore -> xzmore
├── mailmail
├── makeconv
├── mamba-package
├── markdown-it
├── markdown_py
├── matplotlib
├── mergesolv
├── meshdebug
├── mirror_server
├── mirror_server_stop
├── moc
├── myisamchk
├── myisam_ftdump
├── myisamlog
├── myisampack
├── my_print_defaults
├── mypy
├── mypyc
├── mysql
├── mysqladmin
├── mysqlbinlog
├── mysqlcheck
├── mysql_client_test
├── mysql_client_test_embedded
├── mysql_config
├── mysql_config_editor
├── mysqld
├── mysqld_multi
├── mysqld_safe
├── mysqldump
├── mysqldumpslow
├── mysql_embedded
├── mysqlimport
├── mysql_install_db
├── mysql_plugin
├── mysqlpump
├── mysql_secure_installation
├── mysql.server -> ../mysql/support-files/mysql.server
├── mysqlshow
├── mysqlslap
├── mysql_ssl_rsa_setup
├── mysqltest
├── mysqltest_embedded
├── mysql_tzinfo_to_sql
├── mysql_upgrade
├── mysqlxtest
├── navigator-updater
├── ncursesw6-config
├── nghttp
├── nghttpd
├── nghttpx
├── nltk
├── normalizer
├── nspr-config
├── nss-config
├── numba
├── odbc_config
├── odbcinst
├── onig-config
├── openssl
├── opj_compress
├── opj_decompress
├── opj_dump
├── orc-contents
├── orc-memory
├── orc-metadata
├── orc-scan
├── orc-statistics
├── pal2rgb
├── panel
├── patch
├── patchelf
├── pcre2-config
├── pcre2grep
├── pcre2_jit_test
├── pcre2posix_test
├── pcre2test
├── perror
├── pg_config
├── pip
├── pip3
├── pixeltool
├── pk12util
├── pkgdata
├── pkginfo
├── pngfix
├── png-fix-itxt
├── ppm2tiff
├── produce_x_platform_fuzz_corpus
├── protoc -> protoc-25.3.0
├── protoc-25.3.0
├── psicc
├── pt2to3
├── ptdump
├── ptrepack
├── pttree
├── pybabel
├── pycodestyle
├── pyct
├── pydoc -> pydoc3.12
├── pydoc3 -> pydoc3.12
├── pydoc3.12
├── pydocstyle
├── pyflakes
├── pyftmerge
├── pyftsubset
├── pygmentize
├── pyhtmlizer
├── pyjson5
├── pylint
├── pylint-config
├── pylsp
├── pylupdate5
├── pyrcc5
├── pyreverse
├── pysemver
├── py.test
├── pytest
├── python -> python3.12
├── python3 -> python3.12
├── python3.1 -> python3.12
├── python3.12
├── python3.12-config
├── python3-config -> python3.12-config
├── pyuic5
├── qcollectiongenerator
├── qdarkstyle
├── qdarkstyle.example
├── qdarkstyle.utils
├── qdbus
├── qdbuscpp2xml
├── qdbusviewer
├── qdbusxml2cpp
├── qdistancefieldgenerator
├── qdoc
├── qgltf
├── qhelpgenerator
├── qlalr
├── qmake
├── qml
├── qmlcachegen
├── qmleasing
├── qmlformat
├── qmlimportscanner
├── qmllint
├── qmlmin
├── qmlplugindump
├── qmlpreview
├── qmlprofiler
├── qmlscene
├── qmltestrunner
├── qmltyperegistrar
├── qscxmlc
├── qta-browser
├── qtattributionsscanner
├── qt.conf
├── qtdiag
├── qtpaths
├── qtplugininfo
├── qtpy
├── qvkgen
├── qwebengine_convert_dict
├── raw2tiff
├── rcc
├── rdjpgcom
├── repc
├── replace
├── repo2solv
├── reset -> tset
├── resolveip
├── resolve_stack_dump
├── rst2html4.py
├── rst2html5.py
├── rst2html.py
├── rst2latex.py
├── rst2man.py
├── rst2odt_prepstyles.py
├── rst2odt.py
├── rst2pseudoxml.py
├── rst2s5.py
├── rst2xetex.py
├── rst2xml.py
├── rstpep2html.py
├── run_x_platform_fuzz_corpus
├── samp_hub
├── sclient
├── scrapy
├── send2trash
├── sha256_profile
├── showtable
├── sim_client
├── sip-build
├── sip-distinfo
├── sip-install
├── sip-module
├── sip-sdist
├── sip-wheel
├── skivi
├── slencheck
├── slugify
├── smem
├── sphinx-apidoc
├── sphinx-autogen
├── sphinx-build
├── sphinx-quickstart
├── spyder
├── sqlite3
├── sqlite3_analyzer
├── streamlit
├── streamlit.cmd
├── stubgen
├── stubtest
├── symilar
├── syncqt.pl
├── tabs
├── tabulate
├── tclsh -> tclsh8.6
├── tclsh8.6
├── testsolv
├── tic
├── tiff2bw
├── tiff2fsspec
├── tiff2pdf
├── tiff2ps
├── tiff2rgba
├── tiffcmp
├── tiffcomment
├── tiffcp
├── tiffcrop
├── tiffdither
├── tiffdump
├── tifffile
├── tiffinfo
├── tiffmedian
├── tiffset
├── tiffsplit
├── tificc
├── timezone-dump
├── tkconch
├── tldextract
├── toe
├── tput
├── tqdm
├── tracegen
├── transicc
├── trial
├── tset
├── ttx
├── twist
├── twistd
├── uic
├── undill
├── unidecode
├── unlz4 -> lz4
├── unlzma -> xz
├── unxz -> xz
├── unzstd -> zstd
├── uuclient
├── validate-docstrings
├── volint
├── watchmedo
├── wcslint
├── wheel
├── wish -> wish8.6
├── wish8.6
├── wrjpgcom
├── wsdump
├── x86_64-conda_cos7-linux-gnu-ld -> x86_64-conda-linux-gnu-ld
├── x86_64-conda-linux-gnu-ld
├── xkbcli
├── xml2-config
├── xml2-config.bak
├── xmlcatalog
├── xmllint
├── xmlpatterns
├── xmlpatternsvalidator
├── xmlwf
├── xslt-config
├── xsltproc
├── xz
├── xzcat -> xz
├── xzcmp -> xzdiff
├── xzdec
├── xzdiff
├── xzegrep -> xzgrep
├── xzfgrep -> xzgrep
├── xzgrep
├── xzless
├── xzmore
├── yapf
├── yapf-diff
├── zfp
├── zlib_decompress
├── zopfli
├── zopflipng
├── zstd
├── zstdcat -> zstd
├── zstdgrep
├── zstdless
└── zstdmt -> zstd

0 directories, 588 files

this is the output after enable the plugin

~/anaconda3/bin$ tree -a
.
├── 2to3 -> 2to3-3.12
├── 2to3-3.12
├── acountry
├── activate
├── adig
├── aec
├── ahost
├── anaconda
├── anaconda-navigator
├── anaconda-project
├── aomdec
├── aomenc
├── archspec
├── assistant
├── automat-visualize
├── autopep8
├── b2
├── balsam
├── binstar
├── bjam
├── black
├── blackd
├── bokeh
├── brotli
├── bsdcat
├── bsdcpio
├── bsdtar
├── bunzip2
├── bzcat
├── bzcmp -> bzdiff
├── bzdiff
├── bzegrep -> bzgrep
├── bzfgrep -> bzgrep
├── bzgrep
├── bzip2
├── bzip2recover
├── bzless -> bzmore
├── bzmore
├── canbusutil
├── captoinfo -> tic
├── cbrunsli
├── certutil
├── cftp
├── chardetect
├── cjpeg
├── ckeygen
├── clear
├── compile_et
├── conch
├── conda
├── conda2solv
├── conda-build
├── conda-content-trust
├── conda-convert
├── conda-debug
├── conda-develop
├── conda-env
├── conda-inspect
├── conda-metapackage
├── conda-pack
├── conda-render
├── conda-repo
├── conda-server
├── conda-skeleton
├── conda-token
├── cookiecutter
├── cph
├── cpuinfo
├── c_rehash
├── csv-import
├── cups-config
├── curl
├── curl-config
├── curve_keygen
├── dask
├── dask-scheduler
├── dask-spec
├── dask-ssh
├── dask-worker
├── datashader
├── dav1d
├── dbrunsli
├── dbus-cleanup-sockets
├── dbus-daemon
├── dbus-launch
├── dbus-monitor
├── dbus-run-session
├── dbus-send
├── dbus-test-tool
├── dbus-update-activation-environment
├── dbus-uuidgen
├── deactivate
├── derb
├── designer
├── distro
├── djpeg
├── dltest
├── dmypy
├── dotenv
├── dumpsolv
├── elasticurl
├── elastipubsub
├── epylint
├── f2py
├── fax2ps
├── fax2tiff
├── fc-cache
├── fc-cat
├── fc-conflist
├── fc-list
├── fc-match
├── fc-pattern
├── fc-query
├── fc-scan
├── fc-validate
├── fits2bitmap
├── fitscheck
├── fitscopy
├── fitsdiff
├── fitsheader
├── fitsinfo
├── fixqt4headers.pl
├── flake8
├── flask
├── fonttools
├── fpack
├── freetype-config
├── funpack
├── gapplication
├── gdbus
├── gdbus-codegen
├── genbrk
├── gencfu
├── gencnval
├── gendict
├── genrb
├── get_gprof
├── get_objgraph
├── gflags_completions.sh
├── gif2h5
├── gif2rgb
├── gifbuild
├── gifclrmp
├── giffix
├── giftext
├── giftool
├── gio
├── gio-querymodules
├── glib-compile-resources
├── glib-compile-schemas
├── glib-genmarshal
├── glib-gettextize
├── glib-mkenums
├── gobject-query
├── gresource
├── grpc_cpp_plugin
├── grpc_csharp_plugin
├── grpc_node_plugin
├── grpc_objective_c_plugin
├── grpc_php_plugin
├── grpc_python_plugin
├── grpc_ruby_plugin
├── gsettings
├── gss-client
├── gst-device-monitor-1.0
├── gst-discoverer-1.0
├── gst-inspect-1.0
├── gst-launch-1.0
├── gst-play-1.0
├── gst-stats-1.0
├── gst-typefind-1.0
├── gtester
├── gtester-report
├── h52gif
├── h5c++
├── h5cc
├── h5clear
├── h5copy
├── h5debug
├── h5diff
├── h5dump
├── h5fc
├── h5format_convert
├── h5import
├── h5jam
├── h5ls
├── h5mkgrp
├── h5perf_serial
├── h5redeploy
├── h5repack
├── h5repart
├── h5stat
├── h5unjam
├── h5watch
├── holoviews
├── httpx
├── iconv
├── icu-config
├── icuexportdata
├── icuinfo
├── idle3 -> idle3.12
├── idle3.12
├── imagecodecs
├── imageio_download_bin
├── imageio_remove_bin
├── imcopy
├── infocmp
├── infotocap -> tic
├── innochecksum
├── installcheck
├── ippeveprinter
├── ipptool
├── ipython
├── ipython3
├── isort
├── isort-identify-imports
├── isql
├── isympy
├── iusql
├── jlpm
├── jpegtran
├── jpgicc
├── jp.py
├── jq
├── jsondiff
├── jsonpatch
├── jsonpointer
├── jsonschema
├── jupyter
├── jupyter-console
├── jupyter-dejavu
├── jupyter-events
├── jupyter-execute
├── jupyter-kernel
├── jupyter-kernelspec
├── jupyter-lab
├── jupyter-labextension
├── jupyter-labhub
├── jupyter-migrate
├── jupyter-nbconvert
├── jupyter-notebook
├── jupyter-qtconsole
├── jupyter-run
├── jupyter-server
├── jupyter-troubleshoot
├── jupyter-trust
├── JxrDecApp
├── JxrEncApp
├── k5srvutil
├── kadmin
├── kdestroy
├── keyring
├── kinit
├── klist
├── kpasswd
├── krb5-config
├── ksu
├── kswitch
├── ktutil
├── kvno
├── lconvert
├── libdeflate-gunzip
├── libdeflate-gzip
├── libpng16-config
├── libpng-config -> libpng16-config
├── linguist
├── linkicc
├── lprodump
├── lrelease
├── lrelease-pro
├── lsm2bin
├── lupdate
├── lupdate-pro
├── lz4
├── lz4c -> lz4
├── lz4cat -> lz4
├── lz4_decompress
├── lzcat -> xz
├── lzcmp -> xzdiff
├── lzdiff -> xzdiff
├── lzegrep -> xzgrep
├── lzfgrep -> xzgrep
├── lzgrep -> xzgrep
├── lzless -> xzless
├── lzma -> xz
├── lzmadec
├── lzmainfo
├── lzmore -> xzmore
├── mailmail
├── makeconv
├── mamba-package
├── markdown-it
├── markdown_py
├── matplotlib
├── mergesolv
├── meshdebug
├── mirror_server
├── mirror_server_stop
├── moc
├── myisamchk
├── myisam_ftdump
├── myisamlog
├── myisampack
├── my_print_defaults
├── mypy
├── mypyc
├── mysql
├── mysqladmin
├── mysqlbinlog
├── mysqlcheck
├── mysql_client_test
├── mysql_client_test_embedded
├── mysql_config
├── mysql_config_editor
├── mysqld
├── mysqld_multi
├── mysqld_safe
├── mysqldump
├── mysqldumpslow
├── mysql_embedded
├── mysqlimport
├── mysql_install_db
├── mysql_plugin
├── mysqlpump
├── mysql_secure_installation
├── mysql.server -> ../mysql/support-files/mysql.server
├── mysqlshow
├── mysqlslap
├── mysql_ssl_rsa_setup
├── mysqltest
├── mysqltest_embedded
├── mysql_tzinfo_to_sql
├── mysql_upgrade
├── mysqlxtest
├── navigator-updater
├── ncursesw6-config
├── nghttp
├── nghttpd
├── nghttpx
├── nltk
├── normalizer
├── nspr-config
├── nss-config
├── numba
├── odbc_config
├── odbcinst
├── onig-config
├── openssl
├── opj_compress
├── opj_decompress
├── opj_dump
├── orc-contents
├── orc-memory
├── orc-metadata
├── orc-scan
├── orc-statistics
├── pal2rgb
├── panel
├── patch
├── patchelf
├── pcre2-config
├── pcre2grep
├── pcre2_jit_test
├── pcre2posix_test
├── pcre2test
├── perror
├── pg_config
├── pip
├── pip3
├── pixeltool
├── pk12util
├── pkgdata
├── pkginfo
├── pngfix
├── png-fix-itxt
├── ppm2tiff
├── produce_x_platform_fuzz_corpus
├── protoc -> protoc-25.3.0
├── protoc-25.3.0
├── psicc
├── pt2to3
├── ptdump
├── ptrepack
├── pttree
├── pybabel
├── pycodestyle
├── pyct
├── pydoc -> pydoc3.12
├── pydoc3 -> pydoc3.12
├── pydoc3.12
├── pydocstyle
├── pyflakes
├── pyftmerge
├── pyftsubset
├── pygmentize
├── pyhtmlizer
├── pyjson5
├── pylint
├── pylint-config
├── pylsp
├── pylupdate5
├── pyrcc5
├── pyreverse
├── pysemver
├── py.test
├── pytest
├── python -> python3.12
├── python3 -> python3.12
├── python3.1 -> python3.12
├── python3.12
├── python3.12-config
├── python3-config -> python3.12-config
├── pyuic5
├── qcollectiongenerator
├── qdarkstyle
├── qdarkstyle.example
├── qdarkstyle.utils
├── qdbus
├── qdbuscpp2xml
├── qdbusviewer
├── qdbusxml2cpp
├── qdistancefieldgenerator
├── qdoc
├── qgltf
├── qhelpgenerator
├── qlalr
├── qmake
├── qml
├── qmlcachegen
├── qmleasing
├── qmlformat
├── qmlimportscanner
├── qmllint
├── qmlmin
├── qmlplugindump
├── qmlpreview
├── qmlprofiler
├── qmlscene
├── qmltestrunner
├── qmltyperegistrar
├── qscxmlc
├── qta-browser
├── qtattributionsscanner
├── qt.conf
├── qtdiag
├── qtpaths
├── qtplugininfo
├── qtpy
├── qvkgen
├── qwebengine_convert_dict
├── raw2tiff
├── rcc
├── rdjpgcom
├── repc
├── replace
├── repo2solv
├── reset -> tset
├── resolveip
├── resolve_stack_dump
├── rst2html4.py
├── rst2html5.py
├── rst2html.py
├── rst2latex.py
├── rst2man.py
├── rst2odt_prepstyles.py
├── rst2odt.py
├── rst2pseudoxml.py
├── rst2s5.py
├── rst2xetex.py
├── rst2xml.py
├── rstpep2html.py
├── run_x_platform_fuzz_corpus
├── samp_hub
├── sclient
├── scrapy
├── send2trash
├── sha256_profile
├── showtable
├── sim_client
├── sip-build
├── sip-distinfo
├── sip-install
├── sip-module
├── sip-sdist
├── sip-wheel
├── skivi
├── slencheck
├── slugify
├── smem
├── sphinx-apidoc
├── sphinx-autogen
├── sphinx-build
├── sphinx-quickstart
├── spyder
├── sqlite3
├── sqlite3_analyzer
├── streamlit
├── streamlit.cmd
├── stubgen
├── stubtest
├── symilar
├── syncqt.pl
├── tabs
├── tabulate
├── tclsh -> tclsh8.6
├── tclsh8.6
├── testsolv
├── tic
├── tiff2bw
├── tiff2fsspec
├── tiff2pdf
├── tiff2ps
├── tiff2rgba
├── tiffcmp
├── tiffcomment
├── tiffcp
├── tiffcrop
├── tiffdither
├── tiffdump
├── tifffile
├── tiffinfo
├── tiffmedian
├── tiffset
├── tiffsplit
├── tificc
├── timezone-dump
├── tkconch
├── tldextract
├── toe
├── tput
├── tqdm
├── tracegen
├── transicc
├── trial
├── tset
├── ttx
├── twist
├── twistd
├── uic
├── undill
├── unidecode
├── unlz4 -> lz4
├── unlzma -> xz
├── unxz -> xz
├── unzstd -> zstd
├── uuclient
├── validate-docstrings
├── volint
├── watchmedo
├── wcslint
├── wheel
├── wish -> wish8.6
├── wish8.6
├── wrjpgcom
├── wsdump
├── x86_64-conda_cos7-linux-gnu-ld -> x86_64-conda-linux-gnu-ld
├── x86_64-conda-linux-gnu-ld
├── xkbcli
├── xml2-config
├── xml2-config.bak
├── xmlcatalog
├── xmllint
├── xmlpatterns
├── xmlpatternsvalidator
├── xmlwf
├── xslt-config
├── xsltproc
├── xz
├── xzcat -> xz
├── xzcmp -> xzdiff
├── xzdec
├── xzdiff
├── xzegrep -> xzgrep
├── xzfgrep -> xzgrep
├── xzgrep
├── xzless
├── xzmore
├── yapf
├── yapf-diff
├── zfp
├── zlib_decompress
├── zopfli
├── zopflipng
├── zstd
├── zstdcat -> zstd
├── zstdgrep
├── zstdless
└── zstdmt -> zstd

0 directories, 588 files

this is the output of tree in the path ~/anaconda3/envs/chartcoder/bin/ before and after enable the plugin.

# before enable the plugin
~/anaconda3/envs/chartcoder/bin$ tree -a
.
├── 2to3 -> 2to3-3.10
├── 2to3-3.10
├── accelerate
├── accelerate-config
├── accelerate-estimate-memory
├── accelerate-launch
├── accelerate-merge-weights
├── bunzip2
├── bzcat
├── bzcmp -> bzdiff
├── bzdiff
├── bzegrep -> bzgrep
├── bzfgrep -> bzgrep
├── bzgrep
├── bzip2
├── bzip2recover
├── bzless -> bzmore
├── bzmore
├── captoinfo -> tic
├── clear
├── convert-caffe2-to-onnx
├── convert-onnx-to-caffe2
├── cpuinfo
├── c_rehash
├── datasets-cli
├── deepspeed
├── deepspeed.pt
├── distro
├── ds
├── ds_bench
├── ds_elastic
├── dsr
├── ds_report
├── ds_ssh
├── f2py
├── fastapi
├── fonttools
├── ftfy
├── get_gprof
├── get_objgraph
├── gradio
├── hjson
├── httpx
├── huggingface-cli
├── idle3 -> idle3.10
├── idle3.10
├── infocmp
├── infotocap -> tic
├── isympy
├── jsonschema
├── l2m
├── latex2mathml
├── lzcat -> xz
├── lzcmp -> xzdiff
├── lzdiff -> xzdiff
├── lzegrep -> xzgrep
├── lzfgrep -> xzgrep
├── lzgrep -> xzgrep
├── lzless -> xzless
├── lzma -> xz
├── lzmadec
├── lzmainfo
├── lzmore -> xzmore
├── markdown2
├── markdown-it
├── ncursesw6-config
├── ninja
├── normalizer
├── openai
├── openssl
├── pip
├── pip3
├── pyav
├── pydoc -> pydoc3.10
├── pydoc3 -> pydoc3.10
├── pydoc3.10
├── pyftmerge
├── pyftsubset
├── pygmentize
├── python -> python3.10
├── python3 -> python3.10
├── python3.1 -> python3.10
├── python3.10
├── python3.10-config
├── python3-config -> python3.10-config
├── reset -> tset
├── shortuuid
├── shtab
├── sqlite3
├── sqlite3_analyzer
├── tabs
├── tclsh -> tclsh8.6
├── tclsh8.6
├── tic
├── toe
├── torchrun
├── tput
├── tqdm
├── transformers-cli
├── tset
├── ttx
├── undill
├── unlzma -> xz
├── unxz -> xz
├── upload_theme
├── uvicorn
├── wandb
├── wavedrompy
├── wb
├── websockets
├── wheel
├── wish -> wish8.6
├── wish8.6
├── x86_64-conda_cos7-linux-gnu-ld -> x86_64-conda-linux-gnu-ld
├── x86_64-conda-linux-gnu-ld
├── xz
├── xzcat -> xz
├── xzcmp -> xzdiff
├── xzdec
├── xzdiff
├── xzegrep -> xzgrep
├── xzfgrep -> xzgrep
├── xzgrep
├── xzless
└── xzmore

0 directories, 125 files
# after enable the plugin

~/anaconda3/envs/chartcoder/bin$ tree -a
.
├── accelerate
├── accelerate-config
├── accelerate-estimate-memory
├── accelerate-launch
├── accelerate-merge-weights
├── bunzip2
├── bzcat
├── bzcmp -> bzdiff
├── bzdiff
├── bzegrep -> bzgrep
├── bzfgrep -> bzgrep
├── bzgrep
├── bzip2
├── bzip2recover
├── bzless -> bzmore
├── bzmore
├── captoinfo -> tic
├── clear
├── convert-caffe2-to-onnx
├── convert-onnx-to-caffe2
├── cpuinfo
├── c_rehash
├── datasets-cli
├── deepspeed
├── deepspeed.pt
├── distro
├── ds
├── ds_bench
├── ds_elastic
├── dsr
├── ds_report
├── ds_ssh
├── f2py
├── fastapi
├── fonttools
├── ftfy
├── get_gprof
├── get_objgraph
├── gradio
├── hjson
├── httpx
├── huggingface-cli
├── idle3 -> idle3.13
├── idle3.13
├── infocmp
├── infotocap -> tic
├── isympy
├── jsonschema
├── l2m
├── latex2mathml
├── lzcat -> xz
├── lzcmp -> xzdiff
├── lzdiff -> xzdiff
├── lzegrep -> xzgrep
├── lzfgrep -> xzgrep
├── lzgrep -> xzgrep
├── lzless -> xzless
├── lzma -> xz
├── lzmadec
├── lzmainfo
├── lzmore -> xzmore
├── markdown2
├── markdown-it
├── ncursesw6-config
├── ninja
├── normalizer
├── openai
├── openssl
├── pip
├── pip3
├── pyav
├── pydoc -> pydoc3.13
├── pydoc3 -> pydoc3.13
├── pydoc3.13
├── pyftmerge
├── pyftsubset
├── pygmentize
├── python -> python3.13
├── python3 -> python3.13
├── python3.1 -> python3.13
├── python3.13
├── python3.13-config
├── python3-config -> python3.13-config
├── reset -> tset
├── shortuuid
├── shtab
├── sqlite3
├── sqlite3_analyzer
├── tabs
├── tclsh -> tclsh8.6
├── tclsh8.6
├── tic
├── toe
├── torchrun
├── tput
├── tqdm
├── transformers-cli
├── tset
├── ttx
├── undill
├── unlzma -> xz
├── unxz -> xz
├── upload_theme
├── uvicorn
├── wandb
├── wavedrompy
├── wb
├── websockets
├── wheel
├── wish -> wish8.6
├── wish8.6
├── x86_64-conda_cos7-linux-gnu-ld -> x86_64-conda-linux-gnu-ld
├── x86_64-conda-linux-gnu-ld
├── xmlwf
├── xz
├── xzcat -> xz
├── xzcmp -> xzdiff
├── xzdec
├── xzdiff
├── xzegrep -> xzgrep
├── xzfgrep -> xzgrep
├── xzgrep
├── xzless
└── xzmore

0 directories, 124 files

@TioeAre
Copy link
Author

TioeAre commented Apr 14, 2025

there are the differences in path ~/anaconda3/envs/chartcoder/bin, left is before enabling, right is after

Image

@karthiknadig
Copy link
Member

@DonJayamanne The part for pet was the python versions issue.

@TioeAre Can you share the logs from Output > Python Environments. It should contain details on what it tried to install, or even why it tried to install something.

@TioeAre
Copy link
Author

TioeAre commented Apr 15, 2025

@karthiknadig logs from Output > Python Environments

2025-04-15 08:49:17.334 [info] Starting Python Locator /home/lixuan-ustc/.vscode-server/extensions/ms-python.vscode-python-envs-0.3.10991008-linux-x64/python-env-tools/bin/pet server
2025-04-15 08:49:17.334 [info] Using conda from persistent state: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.334 [info] Refreshing conda environments
2025-04-15 08:49:17.361 [info] Discovered manager: (Conda) /home/lixuan-ustc/anaconda3/bin/conda
2025-04-15 08:49:17.361 [info] Discovered env: /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:17.362 [info] Discovered env: /bin/python3
2025-04-15 08:49:17.362 [info] Discovered env: /usr/bin/python3
2025-04-15 08:49:17.364 [info] Discovered env: /home/lixuan-ustc/anaconda3/bin/python
2025-04-15 08:49:17.371 [info] Locator Conda took 29.046238ms
2025-04-15 08:49:17.371 [info] Locator Homebrew took 417.858µs
2025-04-15 08:49:17.371 [info] Locator LinuxGlobal took 26.746969ms
2025-04-15 08:49:17.371 [info] Locator PipEnv took 144.773µs
2025-04-15 08:49:17.371 [info] Locator Pixi took 253.499µs
2025-04-15 08:49:17.371 [info] Locator Poetry took 4.735366ms
2025-04-15 08:49:17.371 [info] Locator PyEnv took 945.071µs
2025-04-15 08:49:17.371 [info] Locator Venv took 87.78µs
2025-04-15 08:49:17.371 [info] Locator VirtualEnv took 86.8µs
2025-04-15 08:49:17.372 [info] Locator VirtualEnvWrapper took 143.803µs
2025-04-15 08:49:17.372 [info] Locator GlobalVirtualEnvs took 463.722µs
2025-04-15 08:49:17.372 [info] Locator Locators took 29.216895ms
2025-04-15 08:49:17.372 [info] Locator Path took 36.028691ms
2025-04-15 08:49:17.372 [info] Locator Workspaces took 10.118452ms
2025-04-15 08:49:17.372 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.373 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:17.373 [info] Found base environment: /home/lixuan-ustc/anaconda3
2025-04-15 08:49:17.388 [info] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":36,"breakdown":{"GlobalVirtualEnvs":0,"Locators":29,"Path":36,"Workspaces":10},"locators":{"Conda":29,"Homebrew":0,"LinuxGlobal":26,"PipEnv":0,"Pixi":0,"Poetry":4,"PyEnv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
2025-04-15 08:49:17.414 [info] Python API: Changed environment from undefined to chartcoder (3.10.0) for: /fs-ift/med/lixuan-ustc/projects/ChartCoder
2025-04-15 08:49:17.414 [info] Internal: Changed environment from undefined to chartcoder (3.10.0) for: /fs-ift/med/lixuan-ustc/projects/ChartCoder
2025-04-15 08:49:17.471 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:17.471 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.471 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:17.472 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.477 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:17.477 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.477 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:17.479 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:17.479 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.480 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:17.482 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:17.482 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.482 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:17.593 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:17.594 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:17.594 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:19.824 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:20.782 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:20.782 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:20.782 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:20.788 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:20.788 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:20.788 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:20.800 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:20.800 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:20.800 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:20.801 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:20.801 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:20.801 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:30.077 [info] Python API: Changed environment from undefined to base (3.12.7) for: global
2025-04-15 08:49:30.077 [info] Internal: Changed environment from undefined to base (3.12.7) for: global
2025-04-15 08:49:32.184 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:32.708 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:32.708 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:32.708 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:32.709 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:32.709 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:32.709 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:32.712 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:32.712 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:32.712 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:34.123 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:34.123 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:34.123 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:34.123 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:36.033 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:36.546 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:36.546 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:36.546 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:36.546 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:36.546 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:36.546 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder
2025-04-15 08:49:36.549 [info] Resolved Python Environment /home/lixuan-ustc/anaconda3/envs/chartcoder/bin/python
2025-04-15 08:49:36.550 [info] Using conda from cache: /home/lixuan-ustc/anaconda3/condabin/conda
2025-04-15 08:49:36.550 [info] Found named environment: /home/lixuan-ustc/anaconda3/envs/chartcoder

this are all logs since enable the plugin

@karthiknadig
Copy link
Member

Thanks for the details. I found the bug. Basically if for some reason we fail to get packages, we assume that python is not installed and try to install python that can cause this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants