-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Default to pipenv or poetry environments if available #19153
Comments
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
I was working on #18263 which could also solve this issue for you. It basically means only pipenv environment created for the current workspace will be displayed in the list, so we won't have to choose or run any additional commands. |
Absolutely! I experimenting with fastapi, installed via and import failed. Googled for like 10 minutes to find out, interpreter was still global.
|
Similar issue for pyenv: #1167 |
While this issue didn't garner enough upvotes, the team thinks it's a reasonable idea, so we will keep this issue open. |
It'd be good to get the documentation changed at least. It suggests that pipenv interpreter should work out of the box, but all my web searchings until I found this issue used fragile workarounds to force it. https://code.visualstudio.com/docs/python/environments Even a note saying that pipenv requires manually changing the detected interpreter, would be a direct pointer to getting this working. I had to garner that hint from above. |
…icrosoft/vscode-python#23102) For microsoft/vscode-python#19153 Filter out any pipenv or poetry envs which do not belong to the current workspace.
…icrosoft/vscode-python#23102) For microsoft/vscode-python#19153 Filter out any pipenv or poetry envs which do not belong to the current workspace.
Already started a discussion about this here. It's already detected if pipenv is available and labels the correct environment as the pipenv environment, but vscode-python still defaults to / recommends the global interpreter.
I would like vscode-python to default to the pipenv interpreter if it is available or have an option to alter this behaviour.
The text was updated successfully, but these errors were encountered: