-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Interpreter shown in the status bar is not the selected one on MacOS #16197
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
Comments
Need to investigate to see if it's a mac-only issue. |
Not sure if this is helpful, or what additional information I can provide, but I am experiencing this exact behavior on Windows 10. When I first open a workspace the interpreter shown is a random interpreter VSCode found (it's not set for any of my workspaces). Opening another file then updates to display the correct interpreter, set for my workspace. From that point on (in the session) everything is fine. Thanks, |
Yep it is! Thanks for confirming that it doesn't happen only on macs @stevetwist! |
Introduced by #15971 |
Could be related: #16291. Can anyone confirm if this only happens when in DeprecatePythonPath experiment? i.e does #16291 (comment) help? |
Happens when not in the DeprecatePythonPath experiment:
|
@stevetwist Unfortunately I'm unable to reproduce this on Windows when not in deprecate python path exp. Can you try #16291 (comment) and see if it helps? |
@karrtikr I can confirm that opting out of the 'DeprecatePythonPath' experiment fixed this issue for me, on Windows. Thanks, |
@kimadeline It seems this issue is only on Mac then so I cannot reproduce this. #16391 has just been merged which could potentially fix it, can you check if you can repro this on |
I'm observe that for some reason we no longer log if the user is in |
I can't reproduce it using Insiders version 2021.6.916495917-dev 🥳 Since this is fixed in Insiders @stevetwist you can either set up the Python extension to use one of our Insiders release channel with the Thank you! |
Environment data
python.languageServer
setting: PylanceExpected behaviour
Interpreter shown in the status bar should be the selected interpreter.
Actual behaviour
Interpreter shown is whatever the extension could find (it's not even the interpreter I use in
python.defaultInterpreterPath
and I opted into all experiments), in this case/usr/local/bin/python3
.Notes:
Note the difference between the interpreter in the bottom left, and the current interpreter in the quickpick:
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: