-
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
Extension forgets the Python interpreter for my workspace (pythonDeprecatePythonPath exp) #16599
Comments
Hi @david-waterworth, thank you for reaching out! Could you provide the content of the Thanks! |
Hi @kimadeline After opening a python folder for the first time after upgrading, this is the contents of
Note, it seems to have found 2 paths but there's only one set in settings.json
and the one it picked was wrong (it took the first). |
Hi, this is actually expected behavior as we no longer use
Closing this. |
@karrtikr yes I know - that's why I raised the issue. Now every single one of my projects is using a random different interpreter to the one I had configured in |
Ah I see, apologies. Yes that is undesirable behavior and settings should have migrated automatically. This seems like a bug. I'll verify if I can reproduce it and get back to you soon. |
Unfortunately I'm unable to reproduce this issue. We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we can try further using their assistance. But until then I'm afraid there's not much that can be done. I've updated the title so it's more visible. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thank you, @karrtikr. I realized that eventually and forgot to come back and clear that up. I was misinterpreting the docs. |
No problem, if you feel this could have been clearer feel free to open an issue in https://github.com/Microsoft/vscode-docs. |
Closing in favor of #17977 |
I restarted vscode today and my workspace python virtualenv changed from the virtual env I had selected in python.pythonPath to one from an unrelated project. This appears to be a consequence of the pythonDeprecatePythonPath experiment. It's not clear to me how this is supposed to work yet, but in any case I would have assumed that when it is first enabled the project interpreter shouldn't silently change from one virtualenv to another, it should migrate the previous settings and continue to use the correct virtualenv?
Environment data
Expected behaviour
When restarting vscode, the project's virtualenv should not change
Actual behaviour
On restart, pythonDeprecatePythonPath changed my virtualenv to a different one, unrelated to the existing python.pythonPath
Steps to reproduce:
The text was updated successfully, but these errors were encountered: