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
Improve diagnostics for risky environment directory glob patterns #427
When a client configures PET with broad or recursive environmentDirectories glob patterns, configure can spend time expanding filesystem globs before returning. If this crosses the client timeout, the client may kill PET and users only see a generic message such as PET exiting with SIGTERM.
This is hard to diagnose because the actionable setting is not obvious from the failure.
Warn immediately when configure receives recursive environment-directory patterns such as **/.venv.
Include the exact pattern and elapsed time in slow glob warnings, not just aggregate configure glob time.
Update docs/JSONRPC.md to discourage recursive workspace-wide environmentDirectories and recommend bounded patterns such as .venv and */.venv.
Consider a glob expansion time budget so PET can return an actionable error before the client kills the process.
Notes
The Python Environments extension default now uses bounded patterns (.venv and */.venv), so this is mainly a PET guardrail for explicit, stale, or third-party client inputs.
Activity