Skip to content

Loading the virtual environment is too slow #266411

@jalenzz

Description

@jalenzz
2025-08-19 07:36:53.413 [info] Starting Python Locator xxx server
2025-08-19 07:36:53.413 [info] Using conda from persistent state: /opt/conda/condabin/conda
2025-08-19 07:37:46.494 [info] Resolved Python Environment /home/xx/xxx/.venv/bin/python
2025-08-19 07:37:46.712 [info] Discovered env: /home/xx/xxx/.venv/bin/python
2025-08-19 07:37:46.860 [info] Locator GlobalVirtualEnvs took 561ns
2025-08-19 07:37:46.915 [info] Locator Locators took 551ns
2025-08-19 07:37:46.920 [info] Locator Path took 681ns
2025-08-19 07:37:46.928 [info] Locator Workspaces took 4.089947ms
2025-08-19 07:37:46.929 [info] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":4,"breakdown":{"GlobalVirtualEnvs":0,"Locators":0,"Path":0,"Workspaces":4},"locators":{}}}}
2025-08-19 07:37:46.952 [info] Found venv environment: xxx (3.12.11)
2025-08-19 07:37:46.959 [info] Discovered env: /home/xxx/xxx/.venv/bin/python
2025-08-19 07:37:47.024 [info] Discovered manager: (Conda) /opt/conda/bin/conda
2025-08-19 07:37:47.025 [info] Discovered env: /opt/conda/bin/python
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.025 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.026 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.026 [info] Discovered env: /home/xxx/.conda/envs/xxx
2025-08-19 07:37:47.026 [info] Discovered env: /usr/bin/python3
2025-08-19 07:37:47.026 [info] Discovered env: /bin/python3

It took a full minute just from Using conda from persistent state to Resolved Python Environment. Every time I reopen VSCode, I have to wait a whole minute for this virtual environment to load, that's painfully slow.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions