-
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
In-project virtualenv not available when added to .gitignore #21855
Comments
That's interesting, thanks for letting us know about this. We'll try to reproduce this behavior and get back to you soon. |
VS Code Insiders: https://code.visualstudio.com/insiders/ |
@karrtikr which version did you use for testing? |
Try the latest pre-release version for VS Code Insiders |
I'm no longer able to repro on vscode ver 1.81.1... |
Good to know, We just made a new VS Code release which likely has something to do with it |
Type: Bug
Behaviour
Expected vs. Actual
I use in-project Poetry virtual environment stored in
.venv/
. The venv loads fine automatically in VSCode.But if I add
.venv/
to.gitignore
and restart VSCode, then the venv doesn't load. (It load the system python interpreter instead).The in-project venv is also no longer available from the "Python: Select Interpreter".
Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: