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

Use .python-version to select python interpreter #22744

Closed
tekumara opened this issue Jan 12, 2024 · 1 comment
Closed

Use .python-version to select python interpreter #22744

tekumara opened this issue Jan 12, 2024 · 1 comment
Labels
feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team

Comments

@tekumara
Copy link

pyenv uses a .python-version file when selecting the python version. It would be super nice if the workspace Python Interpreter selection would use .python-version to select the appropriate pyenv version on a system with pyenv.

Current behaviour

  1. If python.defaultInterpreterPath is set, this will be the workspace's python interpreter when opening a workspace containing a .python-version file, rather than the version specified in .python-version which might differ.
  2. When opening a terminal, if the selected python interpreter is a pyenv intrepreter, the pyenvActivationProvider will run pyenv shell to set the terminal to the workspace's python interpreter. This may differ from the version in .python-version. This conflicts with the behaviour of pyenv in a non-vscode terminal.
@tekumara tekumara added the feature-request Request for new features or functionality label Jan 12, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 12, 2024
@karthiknadig
Copy link
Member

karthiknadig commented Jan 12, 2024

Duplicate #1167

This is being worked on in the current iteration. #22669

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants