Skip to content
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

Add customizable interpreter discovery timeout #24227

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

mnoah1
Copy link

@mnoah1 mnoah1 commented Oct 2, 2024

Addressing issue #24226

This adds a way to customize the timeout for the interpreter info script to run, by customizing the duration of the VSC_PYTHON_INTERPRETER_INFO_TIMEOUT environment variable.

This is to address setups (e.g. a monorepo with Bazel) where the hard coded 15 seconds is insufficient, as the first Python run also includes additional setup work to ensure the venv is available for use before the interpreter can actually execute.

This is being done via env var instead of via a VS Code setting to avoid introducing additional settings that will be deprecated after other planned upcoming work on interpreter discovery (see discussion on 24226).

@mnoah1
Copy link
Author

mnoah1 commented Oct 2, 2024

@microsoft-github-policy-service agree company="Uber"

@mnoah1 mnoah1 changed the title Update Python interpreter discovery timeout Add env var to customize interpreter discovery timeout Oct 7, 2024
@mnoah1 mnoah1 changed the title Add env var to customize interpreter discovery timeout Add customizable interpreter discovery timeout Oct 7, 2024
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug skip tests Updates to tests unnecessary labels Oct 7, 2024
@karthiknadig karthiknadig self-assigned this Oct 7, 2024
@karthiknadig karthiknadig enabled auto-merge (squash) October 7, 2024 20:07
@karthiknadig karthiknadig merged commit 204b8ca into microsoft:main Oct 7, 2024
43 of 44 checks passed
@mnoah1 mnoah1 deleted the adjust-interpreter-timeout branch October 23, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug skip tests Updates to tests unnecessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants