-
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
Selecting Python interpreter fails if using Finder (macOS) #22755
Comments
Duplicate of #22431 (comment), it happens due to a limitation on VS Code's end. Closing in favor of #22431 (comment). |
Could I ask you to elaborate on what limitation you're referring to? #22431 appears to about symlinks. The instructions above don't use the Also, maybe I should point out that the |
Digging around a bit, this also looks like a duplicate of #13603 (excep for mention of the failure to detect the interpreter automatically). The upstream issue is vscode #105455 from 2020, which apparently was considered a feature request and closed for lack of interest (and since locked, barring additional upvotes). I'm curious if the upstream feature is necessary to fix this bug? It seems like the "Python: Select Interpreter" wizard leads macOS users (for whom |
Yep, happy to elaborate. So you identified the issue correctly, there are two:
We're hoping once the second is resolved the first would no longer be needed. Leaving the finder issue as is also helps highlight to VS Code that it's still a problem, which might change their mind about supporting it later. |
Selecting the Python interpreter through the command palette wizard using Finder fails, whereas entering the interpreter filepath manually works.
Steps to reproduce:
1-7. Using the system terminal (not the built-in VS Code terminal):
Pylance will complain about being unable to find the imported flask module:
If at step 12, instead of clicking "Find..." the path is entered manually (/path/to/my_project/venv/bin/python), Pylance will recognize the flask module without issue.
Environment data
The text was updated successfully, but these errors were encountered: