You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Environment discovery is taking a VERY long time #1587
Did some investigation and I think the root cause is that handleHardRefresh doesn't dedup.
One refreshEnvironments(undefined) call → fans out to N parallel manager.refresh(undefined) calls → each independently asks PET to do a full scan with the same key.
Concretely, the chain at startup:
So each manager only cares about its own env type (poetry filters PET output for kind === 'poetry', pyenv filters for 'pyenv', etc.), but the PET scan they each trigger is an identical full discovery of everything on the system. That's why the same Discovered env: <path> lines appear 4-5 times in the log.
Activity
rchiodo commentedon Jun 18, 2026
I tried again. Here's the full logs:
python-environments.log
StellaHuang95 commentedon Jun 19, 2026
Did some investigation and I think the root cause is that
handleHardRefreshdoesn't dedup.One
refreshEnvironments(undefined)call → fans out to N parallelmanager.refresh(undefined)calls → each independently asks PET to do a full scan with the same key.Concretely, the chain at startup:
So each manager only cares about its own env type (poetry filters PET output for kind === 'poetry', pyenv filters for 'pyenv', etc.), but the PET scan they each trigger is an identical full discovery of everything on the system. That's why the same
Discovered env: <path>lines appear 4-5 times in the log.Coalesce concurrent native finder refreshes with the same key (#1598)