Skip to content
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

Terminal no longer activates virtual environment for Git Bash on Windows #23008

Closed
kyrlon opened this issue Mar 1, 2024 · 5 comments
Closed
Assignees
Labels
experimenting Feature is part of an experiment info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@kyrlon
Copy link

kyrlon commented Mar 1, 2024

Type: Bug

Behaviour

Expected vs. Actual

It's been some time since I actively worked with Python and virtual environments (venv) on Windows. There have been several updates since I last remember. Previously, upon selecting a virtual environment (venv), the terminal would automatically activate the virtual environment and display its current environment. However, in my current setup with VSCode and Python extension version v2024.2.1, I noticed a change in this behavior. I'm uncertain when this alteration occurred, so I reverted back to an older version from a couple of years ago, v2021.10.1365161279. You can observe below how the activation process used to function with cmd and Powershell:
output

This gif below showcases the activation with cmd and git bash:
output

Similar post: #22822

Steps to reproduce:

  1. Create a python virtual environment via py -m venv [NAME OF VENV].
  2. select the virtual environment from the python version dropdown in VS Code
  3. Open a terminal (cmd, Powershell, Git Bash)

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2024-02-29 16:02:12.763 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:12.763 [debug] Found cached env for C:\Users\kyrlon\AppData\Local\Programs\Python\Python311\python.exe
2024-02-29 16:02:14.489 [debug] p
2024-02-29 16:02:14.536 [debug] y
2024-02-29 16:02:14.775 [debug] t
2024-02-29 16:02:14.900 [debug] h
2024-02-29 16:02:14.993 [debug] o
2024-02-29 16:02:15.038 [debug] n
2024-02-29 16:02:15.306 [debug]  
2024-02-29 16:02:15.683 [debug] -
2024-02-29 16:02:15.912 [debug] m
2024-02-29 16:02:16.007 [debug]  
2024-02-29 16:02:25.915 [debug] �
2024-02-29 16:02:25.928 [debug] �[K
2024-02-29 16:02:26.400 [debug] �
2024-02-29 16:02:26.408 [debug] �[K
2024-02-29 16:02:26.429 [debug] ��[K
2024-02-29 16:02:26.461 [debug] �
2024-02-29 16:02:26.472 [debug] �[K
2024-02-29 16:02:26.493 [debug] �
2024-02-29 16:02:26.505 [debug] �[K
2024-02-29 16:02:26.527 [debug] �
2024-02-29 16:02:26.540 [debug] �[K
2024-02-29 16:02:26.695 [debug] �
2024-02-29 16:02:26.708 [debug] �[K
2024-02-29 16:02:26.883 [debug] �
2024-02-29 16:02:26.897 [debug] �[K
2024-02-29 16:02:27.430 [debug]  
2024-02-29 16:02:27.573 [debug] -
2024-02-29 16:02:27.699 [debug] -
2024-02-29 16:02:27.809 [debug] v
2024-02-29 16:02:27.977 [debug] e
2024-02-29 16:02:28.085 [debug] r
2024-02-29 16:02:28.224 [debug] s
2024-02-29 16:02:28.368 [debug] io
2024-02-29 16:02:28.430 [debug] n
2024-02-29 16:02:28.628 [debug] 

2024-02-29 16:02:28.645 [debug] �[?2004l
2024-02-29 16:02:28.971 [debug] P
2024-02-29 16:02:29.003 [debug] ython 3.11.4

2024-02-29 16:02:29.522 [debug] �[?2004h
2024-02-29 16:02:29.554 [debug] �[32m
kyrlon@WORKSTATION �[35mMINGW64 �[33m/c/Users/kyrlon/Desktop/pythonpyv�[m
$ �[69X
2024-02-29 16:02:30.210 [debug] p
2024-02-29 16:02:30.347 [debug] y
2024-02-29 16:02:30.472 [debug]  
2024-02-29 16:02:30.897 [debug] -
2024-02-29 16:02:31.413 [debug] m
2024-02-29 16:02:31.472 [debug]  
2024-02-29 16:02:31.788 [debug] v
2024-02-29 16:02:31.958 [debug] e
2024-02-29 16:02:32.147 [debug] n
2024-02-29 16:02:32.242 [debug] v
2024-02-29 16:02:32.381 [debug]  
2024-02-29 16:02:33.665 [debug] p
2024-02-29 16:02:33.741 [debug] y
2024-02-29 16:02:35.066 [debug] s
2024-02-29 16:02:35.860 [debug] �
2024-02-29 16:02:35.873 [debug] �[K
2024-02-29 16:02:36.189 [debug] e
2024-02-29 16:02:36.405 [debug] x
2024-02-29 16:02:36.715 [debug] 

2024-02-29 16:02:36.732 [debug] �[?2004l
2024-02-29 16:02:37.122 [debug] Received event created "c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe" for baseglob python.exe
2024-02-29 16:02:38.127 [debug] Fired event  {"type":"created","kind":"virt-venv","searchLocation":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv","scheme":"file"}} from locator
2024-02-29 16:02:38.128 [debug] Searching for custom workspace envs
2024-02-29 16:02:38.128 [debug] Finished searching for custom workspace envs
2024-02-29 16:02:38.129 [debug] Searching for workspace virtual envs in: c:\Users\kyrlon\Desktop\pythonpyv
2024-02-29 16:02:38.129 [debug] Finished searching for poetry envs
2024-02-29 16:02:38.132 [debug] Workspace Virtual Environment: [added] c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:38.140 [debug] Python API env change detected C:\USERS\KYRLON\DESKTOP\PYTHONPYV\PYEX\SCRIPTS\PYTHON.EXE add
2024-02-29 16:02:38.153 [debug] Found cached env for C:\Users\kyrlon\AppData\Local\Programs\Python\Python39\python.exe
2024-02-29 16:02:38.153 [debug] Found cached env for C:\Users\kyrlon\AppData\Local\Programs\Python\Python311\python.exe
2024-02-29 16:02:38.153 [info] > .\pyex\Scripts\python.exe -I ~\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\interpreterInfo.py
2024-02-29 16:02:38.153 [debug] Finished with environment reducer
2024-02-29 16:02:38.153 [debug] No cached env found for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:38.165 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39\\python.exe","id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON39\\PYTHON.EXE","executable":{"uri":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39\\python.exe","_sep":1,"path":"/C:/Users/kyrlon/AppData/Local/Programs/Python/Python39/python.exe","scheme":"file"},"bitness":"64-bit","sysPrefix":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39"},"version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]"},"tools":[]},"id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON39\\PYTHON.EXE"}
2024-02-29 16:02:38.168 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311\\python.exe","id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON311\\PYTHON.EXE","executable":{"uri":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311\\python.exe","_sep":1,"path":"/C:/Users/kyrlon/AppData/Local/Programs/Python/Python311/python.exe","scheme":"file"},"bitness":"64-bit","sysPrefix":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311"},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"tools":[]},"id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON311\\PYTHON.EXE"}
2024-02-29 16:02:38.170 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:38.172 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex/Scripts/python.exe","scheme":"file"},"bitness":"Unknown"},"environment":{"type":"VirtualEnvironment","name":"pyex","folderUri":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv","_sep":1,"external":"file:///c%3A/Users/kyrlon/Desktop/pythonpyv","path":"/c:/Users/kyrlon/Desktop/pythonpyv","scheme":"file"},"name":"pythonpyv","index":0}},"version":{"major":3,"minor":11,"micro":4},"tools":["Venv"]},"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE"}
2024-02-29 16:02:38.175 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:38.383 [debug] Found interpreter for >> c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe -I c:\Users\kyrlon\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\get_output_via_markers.py c:\Users\kyrlon\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\interpreterInfo.py <<: {"versionInfo":[3,11,4,"final",0],"sysPrefix":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex","sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]","is64Bit":true}
2024-02-29 16:02:38.384 [debug] Python API env change detected C:\USERS\KYRLON\DESKTOP\PYTHONPYV\PYEX\SCRIPTS\PYTHON.EXE update
2024-02-29 16:02:38.384 [debug] Finished with environment resolver
2024-02-29 16:02:38.384 [debug] Environment resolver resolved c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe for {"name":"pyex","location":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex","kind":"virt-venv","executable":{"filename":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","sysPrefix":"","ctime":1709240557070,"mtime":1709240557045},"searchLocation":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex","scheme":"file"},"display":"Python 3.11.4 ('pyex': venv)","version":{"major":3,"minor":11,"micro":4},"arch":1,"distro":{"org":""},"source":[],"type":"Virtual","id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","detailedDisplayName":"Python 3.11.4 ('pyex': venv)"} to {"arch":3,"executable":{"filename":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","sysPrefix":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex","mtime":-1,"ctime":-1},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"}}
2024-02-29 16:02:38.385 [debug] Resolved c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe using downstream locator
2024-02-29 16:02:38.385 [debug] Python API env change detected C:\USERS\KYRLON\DESKTOP\PYTHONPYV\PYEX\SCRIPTS\PYTHON.EXE update
2024-02-29 16:02:38.385 [debug] Flushing env to cache C:\USERS\KYRLON\DESKTOP\PYTHONPYV\PYEX\SCRIPTS\PYTHON.EXE
2024-02-29 16:02:38.386 [debug] Found cached env for C:\Users\kyrlon\AppData\Local\Programs\Python\Python39\python.exe
2024-02-29 16:02:38.386 [debug] Found cached env for C:\Users\kyrlon\AppData\Local\Programs\Python\Python311\python.exe
2024-02-29 16:02:38.387 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:38.390 [debug] Removing invalid env from cache C:\USERS\KYRLON\DESKTOP\PYTHONPYV\NEW_ISSUE\SCRIPTS\PYTHON.EXE
2024-02-29 16:02:38.390 [debug] Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39\\python.exe","sysPrefix":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39","ctime":1709214619413,"mtime":1630370214000},"display":"Python 3.9.7 64-bit","version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]"},"arch":3,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.9 (64-bit)"},"source":["windows registry"],"id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON39\\PYTHON.EXE","detailedDisplayName":"Python 3.9.7 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311\\python.exe","sysPrefix":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311","ctime":1709240103693,"mtime":1686132094000},"display":"Python 3.11.4 64-bit","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"arch":3,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.11 (64-bit)"},"source":["windows registry","path env var"],"id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON311\\PYTHON.EXE","detailedDisplayName":"Python 3.11.4 64-bit"},{"name":"lab3","location":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\lab3","kind":"virt-venv","executable":{"filename":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\lab3\\Scripts\\python.exe","sysPrefix":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\lab3","ctime":1708056695066,"mtime":1708056694882},"searchLocation":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\lab3","_sep":1,"path":"/c:/Users/kyrlon/Desktop/cs_6440/Lab-3-OMOP-on-FHIR/lab3","scheme":"file"},"display":"Python 3.11.4 ('lab3': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"C:\\USERS\\KYRLON\\DESKTOP\\CS_6440\\LAB-3-OMOP-ON-FHIR\\LAB3\\SCRIPTS\\PYTHON.EXE","detailedDisplayName":"Python 3.11.4 ('lab3': venv)"},{"name":"bbb","location":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\bbb","kind":"virt-venv","executable":{"filename":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\bbb\\Scripts\\python.exe","sysPrefix":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\bbb","ctime":1708057305671,"mtime":1708057305642},"searchLocation":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\cs_6440\\Lab-3-OMOP-on-FHIR\\bbb","_sep":1,"path":"/c:/Users/kyrlon/Desktop/cs_6440/Lab-3-OMOP-on-FHIR/bbb","scheme":"file"},"display":"Python 3.11.4 ('bbb': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"C:\\USERS\\KYRLON\\DESKTOP\\CS_6440\\LAB-3-OMOP-ON-FHIR\\BBB\\SCRIPTS\\PYTHON.EXE","detailedDisplayName":"Python 3.11.4 ('bbb': venv)"},{"name":"pyex","location":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex","kind":"virt-venv","executable":{"filename":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","sysPrefix":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex","ctime":1709240557070,"mtime":1709240557045},"searchLocation":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex","_sep":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex","scheme":"file"},"display":"Python 3.11.4 ('pyex': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","detailedDisplayName":"Python 3.11.4 ('pyex': venv)"}]
2024-02-29 16:02:38.390 [debug] Received event {"type":"created","kind":"virt-venv","searchLocation":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv","_sep":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv","scheme":"file"},"providerId":"workspaceVirtualEnvLocator","envPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe"} file change event
2024-02-29 16:02:38.391 [debug] Found cached env for C:\Users\kyrlon\AppData\Local\Programs\Python\Python311\python.exe
2024-02-29 16:02:38.392 [debug] Storage update failed for key PYTHON_ENV_INFO_CACHE  retrying by resetting first
2024-02-29 16:02:38.397 [debug] Storage update failed for key PYTHON_ENV_INFO_CACHE  retrying by resetting first
2024-02-29 16:02:38.400 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:38.402 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:38.404 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex/Scripts/python.exe","scheme":"file"},"bitness":"64-bit","sysPrefix":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex"},"environment":{"type":"VirtualEnvironment","name":"pyex","folderUri":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv","_sep":1,"external":"file:///c%3A/Users/kyrlon/Desktop/pythonpyv","path":"/c:/Users/kyrlon/Desktop/pythonpyv","scheme":"file"},"name":"pythonpyv","index":0}},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"tools":["Venv"]},"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE"}
2024-02-29 16:02:38.405 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39\\python.exe","id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON39\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/C:/Users/kyrlon/AppData/Local/Programs/Python/Python39/python.exe","scheme":"file"},"bitness":"64-bit","sysPrefix":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39"},"version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]"},"tools":[]},"id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON39\\PYTHON.EXE"}
2024-02-29 16:02:38.407 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:38.408 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:38.411 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311\\python.exe","id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON311\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/C:/Users/kyrlon/AppData/Local/Programs/Python/Python311/python.exe","scheme":"file"},"bitness":"64-bit","sysPrefix":"C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311"},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"tools":[]},"id":"C:\\USERS\\KYRLON\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON311\\PYTHON.EXE"}
2024-02-29 16:02:38.414 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2024-02-29 16:02:40.621 [debug] Interpreter Path updated WORKSPACE_FOLDER_INTERPRETER_PATH_C:\USERS\KYRLON\DESKTOP\PYTHONPYV c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.622 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.627 [debug] Testing: Triggered refresh due to interpreter change.
2024-02-29 16:02:40.627 [debug] Testing: Clearing all discovered tests
2024-02-29 16:02:40.627 [debug] Testing: Forcing test data refresh
2024-02-29 16:02:40.627 [debug] Testing: Refreshing all test data
2024-02-29 16:02:40.629 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.629 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.629 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.629 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.630 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.630 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.630 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.634 [info] Discover tests for workspace name: pythonpyv - uri: c:\Users\kyrlon\Desktop\pythonpyv
2024-02-29 16:02:40.635 [info] Python interpreter path: .\pyex\Scripts\python.exe
2024-02-29 16:02:40.636 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.639 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.644 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.644 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.648 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.675 [debug] Extension ms-python.isort accessed resolveEnvironment with args: {"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe"}
2024-02-29 16:02:40.676 [debug] Extension ms-python.isort accessed getActiveEnvironmentPath with args: undefined
2024-02-29 16:02:40.678 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined
2024-02-29 16:02:40.680 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe"}
2024-02-29 16:02:40.682 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined
2024-02-29 16:02:40.684 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-02-29 16:02:40.686 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2024-02-29 16:02:40.688 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","executable":{"uri":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe","_sep":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex/Scripts/python.exe","scheme":"file"},"bitness":"64-bit","sysPrefix":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex"},"environment":{"type":"VirtualEnvironment","name":"pyex","folderUri":{"$mid":1,"path":"/c:/Users/kyrlon/Desktop/pythonpyv/pyex","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"c:\\Users\\kyrlon\\Desktop\\pythonpyv","_sep":1,"external":"file:///c%3A/Users/kyrlon/Desktop/pythonpyv","path":"/c:/Users/kyrlon/Desktop/pythonpyv","scheme":"file"},"name":"pythonpyv","index":0}},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]"},"tools":["Venv"]},"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE"}
2024-02-29 16:02:40.691 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe"}
2024-02-29 16:02:40.693 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined
2024-02-29 16:02:40.694 [debug] Extension ms-python.isort accessed getActiveEnvironmentPath with args: undefined
2024-02-29 16:02:40.695 [debug] Extension ms-python.isort accessed resolveEnvironment with args: {"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe"}
2024-02-29 16:02:40.697 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"C:\\USERS\\KYRLON\\DESKTOP\\PYTHONPYV\\PYEX\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts\\python.exe"}
2024-02-29 16:02:40.699 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-02-29 16:02:40.700 [debug] Activation Commands received undefined for shell C:\Program Files\Git\bin\bash.exe, resource c:\Users\kyrlon\Desktop\pythonpyv and interpreter c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:40.702 [debug] Activated environment variables for c:\Users\kyrlon\Desktop\pythonpyv {
  ALLUSERSPROFILE: 'C:\\ProgramData',
  APPDATA: 'C:\\Users\\kyrlon\\AppData\\Roaming',
  CHROME_CRASHPAD_PIPE_NAME: '\\\\.\\pipe\\crashpad_19864_IVAZFVVWPRXGPNCT',
  COMPUTERNAME: 'WORKSTATION',
  DISPLAY: 'localhost:0.0',
  ELECTRON_RUN_AS_NODE: '1',
  FPS_BROWSER_APP_PROFILE_STRING: 'Internet Explorer',
  FPS_BROWSER_USER_PROFILE_STRING: 'Default',
  HOMEDRIVE: 'I:',
  HOMEPATH: '\\',
  HOMESHARE: '\\\\homedirs.icl.gtri.org\\home1$\\kyrlon',
  LDMS_LOCAL_DIR: 'C:\\Program Files (x86)\\Ivanti\\EPM Agent\\Data\\',
  LOCALAPPDATA: 'C:\\Users\\kyrlon\\AppData\\Local',
  LOGONSERVER: '\\\\ICLDC13',
  NSPR_NATIVE_THREADS_ONLY: '1',
  NUMBER_OF_PROCESSORS: '16',
  NVM_HOME: 'C:\\Users\\kyrlon\\AppData\\Roaming\\nvm',
  NVM_SYMLINK: 'C:\\Program Files\\nodejs',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'undefined',
  OS: 'Windows_NT',
  PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
  PROCESSOR_ARCHITECTURE: 'AMD64',
  PROCESSOR_IDENTIFIER: 'Intel64 Family 6 Model 141 Stepping 1, GenuineIntel',
  PROCESSOR_LEVEL: '6',
  PROCESSOR_REVISION: '8d01',
  PROMPT: '$e]9;9;$P$e\\$P$G',
  PUBLIC: 'C:\\Users\\Public',
  SESSIONNAME: 'Console',
  STTASKFOLDERPATH: 'Ivanti\\PatchSDK\\Deployments',
  TEMP: 'C:\\Users\\KLONGW~1\\AppData\\Local\\Temp\\1',
  TMP: 'C:\\Users\\KLONGW~1\\AppData\\Local\\Temp\\1',
  UATDATA: 'C:\\Windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77',
  USERDNSDOMAIN: 'ICL.GTRI.ORG',
  USERDOMAIN: 'ICL',
  USERDOMAIN_ROAMINGPROFILE: 'ICL',
  USERNAME: 'kyrlon',
  USERPROFILE: 'C:\\Users\\kyrlon',
  VBOX_MSI_INSTALL_PATH: 'C:\\Program Files\\Oracle\\VirtualBox\\',
  VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
  VSCODE_CODE_CACHE_PATH: 'C:\\Users\\kyrlon\\AppData\\Roaming\\Code\\CachedData\\903b1e9d8990623e3d7da1df3d33db3e42d80eda',
  VSCODE_CRASH_REPORTER_PROCESS_TYPE: 'extensionHost',
  VSCODE_CWD: 'C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Microsoft VS Code',
  VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
  VSCODE_IPC_HOOK: '\\\\.\\pipe\\3d007d46-1.86.2-main-sock',
  VSCODE_NLS_CONFIG: '{"locale":"en-us","osLocale":"en-us","availableLanguages":{},"_languagePackSupport":true}',
  VSCODE_PID: '19864',
  VXIPNPPATH: 'C:\\Program Files (x86)\\IVI Foundation\\VISA\\',
  VXIPNPPATH64: 'C:\\Program Files\\IVI Foundation\\VISA\\',
  ZES_ENABLE_SYSMAN: '1',
  COMSPEC: 'C:\\Windows\\system32\\cmd.exe',
  COMMONPROGRAMFILES: 'C:\\Program Files\\Common Files',
  'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files',
  COMMONPROGRAMW6432: 'C:\\Program Files\\Common Files',
  DRIVERDATA: 'C:\\Windows\\System32\\Drivers\\DriverData',
  'INTELLIJ IDEA COMMUNITY EDITION': 'C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2023.3.3\\bin;',
  ONEDRIVE: 'C:\\Users\\kyrlon\\OneDrive',
  PSMODULEPATH: 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\Windows Kits\\10\\Microsoft Application Virtualization\\Sequencer\\AppvPkgConverter;C:\\Program Files (x86)\\Windows Kits\\10\\Microsoft Application Virtualization\\Sequencer\\AppvSequencer;C:\\Program Files (x86)\\Windows Kits\\10\\Microsoft Application Virtualization\\',
  PROGRAMDATA: 'C:\\ProgramData',
  PROGRAMFILES: 'C:\\Program Files',
  'PROGRAMFILES(X86)': 'C:\\Program Files (x86)',
  PROGRAMW6432: 'C:\\Program Files',
  SYSTEMDRIVE: 'C:',
  SYSTEMROOT: 'C:\\Windows',
  __PSLOCKDOWNPOLICY: '0',
  MAKE: 'mingw32-make',
  WINDIR: 'C:\\Windows',
  PATH: 'c:\\Users\\kyrlon\\Desktop\\pythonpyv\\pyex\\Scripts;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\FFmpeg\\bin;C:\\Program Files\\Iperf3;C:\\Users\\kyrlon\\AppData\\Roaming\\nvm;C:\\Program Files\\Wireshark\\;C:\\texlive\\2021\\bin\\win32;C:\\Program Files\\dotnet\\;C:\\Program Files\\platform-tools;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files (x86)\\Windows Kits\\10\\Microsoft Application Virtualization\\Sequencer\\;C:\\Program Files\\Rescue and Smart Assistant\\fastboot.exe;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2022b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2022b\\bin;C:\\Program Files\\scrcpy;C:\\Program Files\\VcXsrv;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Restart Explorer;C:\\Program Files\\Git\\cmd;%APPDATA%\\Python\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files\\mingw64\\bin;C:\\Users\\kyrlon\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\;C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Users\\kyrlon\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\kyrlon\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Nmap;C:\\Users\\kyrlon\\AppData\\Roaming\\npm;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2023.3.3\\bin;;C:\\Users\\kyrlon\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs'
}
2024-02-29 16:02:40.704 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:40.711 [debug] Activation Commands received undefined for shell cmd, resource c:\Users\kyrlon\Desktop\pythonpyv and interpreter c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:41.714 [debug] Did we determine shell integration to be working for bash ? false
2024-02-29 16:02:41.715 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:41.716 [debug] Prepending environment variable PATH in collection with c:\Users\kyrlon\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\deactivate\bash;c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-02-29 16:02:41.716 [error] Failed to initialize deactivate script C:\Program Files\Git\bin\bash.exe [Error: "c:\Users\kyrlon\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\deactivate\bash\envVars.txt" file not created
	at Timeout.<anonymous> (c:\Users\kyrlon\.vscode\extensions\ms-python.python-2024.2.1\out\client\extension.js:2:276572)
	at listOnTimeout (node:internal/timers:569:17)
	at process.processTimers (node:internal/timers:512:7)]
2024-02-29 16:02:41.922 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:42.222 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:42.441 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:43.591 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:44.373 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:44.798 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:45.251 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:48.386 [debug] �[?2004h
2024-02-29 16:02:48.416 [debug] �[32m
kyrlon@WORKSTATION �[35mMINGW64 �[33m/c/Users/kyrlon/Desktop/pythonpyv�[m
$ �[69X
2024-02-29 16:02:51.036 [debug] �[25l�[H�[K�[32m
kyrlon@WORKSTATION �[35mMINGW64 �[33m/c/Users/kyrlon/Desktop/pythonpyv�[K�[m
$ py --version�[K
Python 3.11.4�[K
�[K�[32m
kyrlon@WORKSTATION �[35mMINGW64 �[33m/c/Users/kyrlon/Desktop/pythonpyv�[K�[m
$ py -m venv pyex�[K
�[K�[32m
kyrlon@WORKSTATION �[35mMINGW64 �[33m/c/Users/kyrlon/Desktop/pythonpyv�[K�[m
$�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K�[10;3H�[?25h
2024-02-29 16:02:51.051 [debug] 
$�[K�[1C
2024-02-29 16:02:53.501 [debug] Clearing context for python dependencies not installed: c:\Users\kyrlon\Desktop\pythonpyv\ex.py
2024-02-29 16:02:54.153 [debug] �[?2004h�[2J�[m�[H�]0;MINGW64:/c/Users/kyrlon/Desktop/pythonpyv��[?25h
2024-02-29 16:02:54.169 [debug] �[25l�[35m�[K�[32m
kyrlon@WORKSTATION �[35mMINGW64 �[33m/c/Users/kyrlon/Desktop/pythonpyv�[32m�[K�[m
$ �[35m�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K
�[K�[3;3H�[?25h
2024-02-29 16:02:55.857 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2024-02-29 16:02:55.857 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe
2024-02-29 16:02:55.858 [debug] Found cached env for c:\Users\kyrlon\Desktop\pythonpyv\pyex\Scripts\python.exe

User Settings


languageServer: "Pylance"

Extension version: 2024.2.1
VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:40:56.878Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 31.73GB (15.46GB free)
Process Argv --crash-reporter-id 4b424971-a09e-4d5b-a6fb-39fbe012b9a0
Screen Reader no
VM 33%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
d34g3935:30971562
edj9j583:30969295
fegfb526:30973843
bg6jg535:30958357
dsvsc020:30973508

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 1, 2024
@kyrlon kyrlon changed the title Terminal no longer activates virtual environment for Git Bash on Windows Terminal no longer activates virtual environment for Git Bash/Powershell/cmd on Windows Mar 1, 2024
@karrtikr
Copy link

karrtikr commented Mar 1, 2024

Please try pre-release and provide the "complete" debug level logs again, thanks. You can upload it as a .txt file.

image

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 1, 2024
@karrtikr
Copy link

karrtikr commented Mar 1, 2024

Note Gitbash isn't supported by Python extension, so use Select default profile to switch to cmd or powershell if need be.

@kyrlon
Copy link
Author

kyrlon commented Mar 1, 2024

Attached is a recent attempt with the pre-release versiondebug_3_1_24.txt
as mentioned here

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Mar 1, 2024
@karrtikr karrtikr added the experimenting Feature is part of an experiment label Mar 4, 2024
@monk-time
Copy link

monk-time commented Mar 11, 2024

I left a comment in a similar issue about a possible culprit. My repo is located at D:\Code\python\temp, and I have the pre-release version of the Python extension.

Git Bash activates venv as expected:

"terminal.integrated.defaultProfile.windows": "Command Prompt"

Show environment contributions
# Terminal Environment Changes

## Extension: vscode.git

Enables the following features: git auth provider

- `GIT_ASKPASS=c:\Program Files\_my\VS Code\resources\app\extensions\git\dist\askpass.sh`
- `VSCODE_GIT_ASKPASS_NODE=C:\Program Files\_my\VS Code\Code.exe`
- `VSCODE_GIT_ASKPASS_EXTRA_ARGS=`
- `VSCODE_GIT_ASKPASS_MAIN=c:\Program Files\_my\VS Code\resources\app\extensions\git\dist\askpass-main.js`
- `VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-ac35ff672a-sock`

## Extension: ms-python.python

Activated environment for `.\venv\Scripts\python.exe`

- `PATH=D:\Code\python\temp\venv\Scripts;${env:PATH}`
- `PROMPT=(venv) $P$G`
- `VIRTUAL_ENV=D:\Code\python\temp\venv`
- `VIRTUAL_ENV_PROMPT=(venv) `
- `_OLD_VIRTUAL_PROMPT=$P$G`

Git Bash doesn't activate venv:

"terminal.integrated.defaultProfile.windows": "Git Bash"

Show environment contributions
# Terminal Environment Changes

## Extension: vscode.git

Enables the following features: git auth provider

- `GIT_ASKPASS=c:\Program Files\_my\VS Code\resources\app\extensions\git\dist\askpass.sh`
- `VSCODE_GIT_ASKPASS_NODE=C:\Program Files\_my\VS Code\Code.exe`
- `VSCODE_GIT_ASKPASS_EXTRA_ARGS=`
- `VSCODE_GIT_ASKPASS_MAIN=c:\Program Files\_my\VS Code\resources\app\extensions\git\dist\askpass-main.js`
- `VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-ac35ff672a-sock`

## Extension: ms-python.python

Activated environment for `.\venv\Scripts\python.exe`

- `EXEPATH=C:\Program Files\_my\Git\bin`
- `HOME=C:\Users\Gjoob`
- `MSYS=disable_pcon`
- `MSYSTEM=MINGW64`
- `PATH=c:\Users\Gjoob\.vscode\extensions\ms-python.python-2024.3.10681011\python_files\deactivate\bash;D;C:\Code\python\temp\venv\Scripts;C:\Program Files\_my\Git\mingw64\bin;C:\Program Files\_my\Git\usr\bin;C:\Users\Gjoob\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\_my\nodejs;C:\Program Files\_my\VS Code\bin;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\_my\Git\cmd;C:\Python\Scripts;C:\Python;C:\Users\Gjoob\AppData\Local\Microsoft\WindowsApps;D:\Programs\Portable\_bin;C:\Users\Gjoob\AppData\Roaming\npm;C:\Program Files\_my\PyCharm Community Edition\bin;${env:PATH}`
- `PLINK_PROTOCOL=ssh`
- `PS1=(venv) ${env:PS1}`
- `PWD=C:/Program Files/_my/VS Code`
- `PYTHONIOENCODING=utf-8`
- `PYTHONUNBUFFERED=1`
- `TERM=xterm-256color`
- `VIRTUAL_ENV=D:\Code\python\temp\venv`
- `VIRTUAL_ENV_PROMPT=(venv) `

The issue seems to stem from faulty $PATH formation, specifically the part ;D;C:\Code\python\temp\venv\Scripts; has wrong drive (should just be ;D:\Code..., I don't have drive root in my $PATH. What I also don't get is why environment contributions for the same terminal (Git Bash) differ so much when using a different default terminal setting, it seems to me the two shouldn't affect each other at all?

@karrtikr
Copy link

@kyrlon It still looks like Git bash is selected as default profile, also the logs don't seem to be set to "debug" level as requested earlier. Please follow these instructions and upload the logs, and we'll be happy to have a look.

@monk-time Git bash isn't supported by Python extension, try switching to some other shell and create a new issue #23008 (comment) if the problem reoccurs.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2024
@karrtikr karrtikr changed the title Terminal no longer activates virtual environment for Git Bash/Powershell/cmd on Windows Terminal no longer activates virtual environment for Git Bash on Windows Mar 15, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
experimenting Feature is part of an experiment info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants