-
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
Look into ways to automatically select environment without specifying python.pythonPath
#2126
Comments
This came up in #2125 . This might only apply in situations specifically like |
python.pythonPath
python.pythonPath
See comments here #2125 (comment) Summary:
|
I take that back, guess that what needs to be determined and decided. Sorry. I guess we'll need to first come up with some solution and the make the decision. |
This comment has been minimized.
This comment has been minimized.
This is already supported, been there from day 1. Added to support exactly the scenario you have mentioned. |
Thank you all for the feedback on this. I'm not fully understanding the challenges behind this but it seems like in most cases, a python project has a venv associated with it so in most cases VSC can just ask the venv manager e.g. |
@eirannejad not everyone uses a environment management tool, so there's subtly there. Otherwise explaining is premature as we have not taken the time to write out our own design for the solution yet. |
#7805 will implicitly take care of this. |
same problem |
@brettcannon This can be closed. I'm on the latest VSCode and latest vscode-python extension. It properly auto-detects the |
@Bananaman thanks for letting us know about this rather stale issue. 😅 |
Basically VS Code's design of having only global and workspace settings means there is no concept of a machine-specific setting when teams standardize on a workspace
settings.json
. That means we should look at ways to let people either specify the exact way they want their environment to be selected without specifying an absolute path or scale back when we writepython.pythonPath
tosettings.json
.One key thing to keep in mind is that environment discovery can be expensive, so we may need to come up with a solution where people can say, e.g.
python.usePipenv
or something so we know to short-circuit searching in other ways and only usepipenv
.The text was updated successfully, but these errors were encountered: