-
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
Get "select virtual environment for the worskpace" prompt to show up regardless of pythonpath setting #5499
Comments
Prescribed solution
|
[using the most recent insiders build of the extension ("2019.9.33401-rc")] I was able to verify that, if steps:
At this point I expected to be prompted, but was not. (possibly related: #7132) |
FWIW, if I reload the window between steps 8 and 9 then it works as expected. |
This is likely an upstream VS Code issue. It is ignoring the re-creation of the .venv directory at step 9. From what Kartik said, this isn't a problem on Windows (I'm testing on Linux). detailsOrder of events:
I tried debugging this. First I checked to see if that "internal" event was fired. It did for step 1 in my earlier comment. For step 9 it did not. So then I checked to see if the filesystem watcher fired the "onDidCreate" event for step 9. It did not. This means that, on linux at least, the filesystem watcher (upstream VS Code code) is ignoring the re-creation of the .venv directory. I wouldn't be surprised if there is some sort of cache involved which isn't getting flushed when the directory is deleted in step 8. This does not seem to be a problem on Windows. Also, all the events fire properly if I create a new virtual environment with a different name. |
#4908 but right now we're displaying it only only if there isn't an interpreter path set in the settings.json file. We should display it also when a global interpreter (i.e. not a virtual environment) is set there.
The text was updated successfully, but these errors were encountered: