-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pipenv not activating venv on Gitbash #22957
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
Hi @lukaszwojcik89 , can you please provide the screenshots and the debug logs which can help diagnose the issue:
Output for
|
Hey, thanks for the reply. actual logs + screenshot: correct version logs + screeshot: |
Closing in favor of #22910. You seem to be using Git bash which isn't officially supported by the Python extension, please try switching your default shell as instructed in the other issue, also try pre-release. |
ok, it seems to work on CMD correctly. So it is an issue with gitbash. Thanks for help! |
Type: Bug
Hey.
I wanted to report a problem like this. I code in Python, and I use Pipenv as a virtual environment manager every day. So far, VSCode automatically detected the environment created via pipenv and selected it as active.
Unfortunately, for the past few days I've been having a huge problem with this. I don't know if it's a matter of updating the extension for python or the program itself, but VSCode has stopped detecting environments automatically. Even when I manually select it as the default interpreter for a given workspace it is not properly activated and all packages install "outside" the environment.
I also noticed that after activating the environment, the prompt indicating that it is active (i.e. with the environment name in parentheses) is no longer displayed. Previously there were no such problems so I assume it is either related to extension Python or to VSCode itself (both were recently updated).
Of the things I checked on my own to find the cause of the issue are:
Has anyone perhaps had similar problems? Is there any way to solve this?
VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:40:56.878Z)
OS version: Windows_NT x64 10.0.22621
Modes:
System Info
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (100)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: