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

VIRTUAL_ENV_PROMPT is not respected by extension #22956

Closed
Arnatious opened this issue Feb 22, 2024 · 5 comments · Fixed by #23080
Closed

VIRTUAL_ENV_PROMPT is not respected by extension #22956

Arnatious opened this issue Feb 22, 2024 · 5 comments · Fixed by #23080
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug experimenting Feature is part of an experiment needs PR Ready to be worked on verified Verification succeeded
Milestone

Comments

@Arnatious
Copy link

Arnatious commented Feb 22, 2024

Type: Bug

Using the latest prerelease of python to fix virtualenv activation being entirely broken:

Behaviour

Expected vs. Actual

VSCode terminals spawn with part of path (.venv) prepending prompt regardless of VIRTUAL_ENV_PROMPT. Example below with oh-my-zsh, agnoster theme. Worked correctly prior to 2024/02/22.

Using prerelease extension version as automatic virutalenv activation stopped working entirely without it today.

(.venv)  tkern@dc7-sim-h06-218  /home/scratch.tkern_inf/testgen_otel/otel_pypl_bridge  ↰ main ±  deactivate
 tkern@dc7-sim-h06-218  /home/scratch.tkern_inf/testgen_otel/otel_pypl_bridge  ↰ main ±  source .venv/bin/activate
(otel-pypl-bridge-py3.9)  tkern@dc7-sim-h06-218  /home/scratch.tkern_inf/testgen_otel/otel_pypl_bridge  ↰ main ±  code .venv/bin/activate

Prompt should have been (otel-pypl-bridge-py3.9)

Steps to reproduce:

  1. Create a virtualenv using e.g. poetry, which will set VIRTUAL_ENV_PROMPT to something non-standard based on pyproject.toml info
  2. Set as default virtual environment in a workspace
  3. Open a new terminal - the name will be taken from the path to the virtualenv instead

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.17
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Poetry
  • 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-22 15:25:32.370 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-02-22 15:25:32.370 [info] Experiment 'pythonREPLSmartSend' is active
2024-02-22 15:25:32.370 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-02-22 15:25:32.370 [info] Experiment 'pythonTestAdapter' is active
2024-02-22 15:25:32.370 [info] Default formatter is set to ms-python.black-formatter for workspace /home/scratch.tkern_inf/testgen_otel/otel_pypl_bridge
2024-02-22 15:25:32.370 [info] Test server listening.
2024-02-22 15:25:32.371 [info] Python interpreter path: ./.venv/bin/python
2024-02-22 15:25:33.330 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2024.1.10531008/pythonFiles/printEnvVariables.py
2024-02-22 15:25:33.330 [info] shell: zsh
2024-02-22 15:25:33.433 [info] > /home/utils/Python/builds/3.9.16-20230503/bin/python ~/.vscode-server/extensions/ms-python.python-2024.1.10531008/pythonFiles/printEnvVariables.py
2024-02-22 15:25:33.433 [info] shell: zsh
2024-02-22 15:25:33.523 [info] Send text to terminal: /home/utils/Python/builds/3.9.16-20230503/bin/python /home/tkern/.vscode-server/extensions/ms-python.python-2024.1.10531008/pythonFiles/printEnvVariablesToFile.py /home/tkern/.vscode-server/extensions/ms-python.python-2024.1.10531008/pythonFiles/deactivate/zsh/envVars.txt
2024-02-22 15:25:34.353 [info] Starting Pylance language server.

User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Extension version: 2024.0.1
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.4.152-4.x86_64

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
7j2b6412:30969109
bg6jg535:30958357

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 22, 2024
@karrtikr karrtikr added the experimenting Feature is part of an experiment label Feb 23, 2024
@karrtikr
Copy link

karrtikr commented Feb 27, 2024

  • Please provide the debug logs which can help diagnose the issue:

    • Run Developer: Set log level command
    • Select Trace
    • Run Developer: Reload Window command
    • Provide the output:
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

  • Can you elaborate on what VIRTUALENV_ENV_PROMPT is, where it is set, and the contents of your ./venv/bin/activate script?

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 27, 2024
@Arnatious Arnatious changed the title VIRTUALENV_ENV_PROMPT is not respected by extension VIRTUAL_ENV_PROMPT is not respected by extension Mar 4, 2024
@Arnatious
Copy link
Author

Typo on my part when making the issue - edited and fixed - the actual variable is VIRTUAL_ENV_PROMPT

Trace level output:
2024-03-03 21:51:06.358 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-03-03 21:51:06.358 [info] Experiment 'pythonREPLSmartSend' is active
2024-03-03 21:51:06.358 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-03-03 21:51:06.358 [info] Experiment 'pythonTestAdapter' is active
2024-03-03 21:51:06.358 [debug] Start watching file for changes /home/arnatious/.conda/environments.txt
2024-03-03 21:51:06.358 [debug] Start watching: /home/arnatious/.conda with pattern environments.txt using VSCode API
2024-03-03 21:51:06.358 [debug] Start watching root /home/arnatious/fooproject for globs ["python","*/python","*/bin/python"]
2024-03-03 21:51:06.358 [debug] Start watching: /home/arnatious/fooproject with pattern python using VSCode API
2024-03-03 21:51:06.358 [debug] Start watching: /home/arnatious/fooproject with pattern */python using VSCode API
2024-03-03 21:51:06.358 [debug] Start watching: /home/arnatious/fooproject with pattern */bin/python using VSCode API
2024-03-03 21:51:06.358 [info] Default formatter is set to ms-python.black-formatter for workspace /home/arnatious/fooproject
2024-03-03 21:51:06.358 [debug] Waiting for test server to start...
2024-03-03 21:51:06.359 [info] Test server listening.
2024-03-03 21:51:06.359 [debug] Test server started.
2024-03-03 21:51:06.359 [debug] Testing: Setting up watcher for /home/arnatious/fooproject
2024-03-03 21:51:06.367 [debug] Needed to validate /home/arnatious/fooproject/.venv/bin/python with latest info
2024-03-03 21:51:06.368 [info] Python interpreter path: ./.venv/bin/python
2024-03-03 21:51:06.368 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:06.525 [debug] Searching for custom workspace envs
2024-03-03 21:51:06.525 [debug] Finished searching for custom workspace envs
2024-03-03 21:51:06.530 [debug] Searching for workspace virtual envs in: /home/arnatious/fooproject
2024-03-03 21:51:06.536 [debug] Getting poetry for cwd /home/arnatious/fooproject
2024-03-03 21:51:06.536 [debug] Probing poetry binary for /home/arnatious/fooproject: poetry
2024-03-03 21:51:06.538 [debug] Dump environment variables {
    "USER": "arnatious",
    "VSCODE_WSL_EXT_LOCATION": "/mnt/d/Programs/VSCode-win32-x64-1.85.2/data/extensions/ms-vscode-remote.remote-wsl-0.81.9",
    "SHLVL": "0",
    "HOME": "/home/arnatious",
    "OLDPWD": "/mnt/d/Programs/VSCode-win32-x64-1.85.2",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
    "WSL_DISTRO_NAME": "Ubuntu",
    "WAYLAND_DISPLAY": "wayland-0",
    "LOGNAME": "arnatious",
    "PULSE_SERVER": "unix:/mnt/wslg/PulseServer",
    "WSL_INTEROP": "/run/WSL/13690_interop",
    "NAME": "arnatious-pc",
    "_": "/home/arnatious/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/node",
    "TERM": "xterm-256color",
    "XDG_RUNTIME_DIR": "/run/user/1000/",
    "DISPLAY": ":0",
    "LANG": "en_US.UTF-8",
    "SHELL": "/usr/bin/zsh",
    "PWD": "/mnt/d/Programs/VSCode-win32-x64-1.85.2",
    "HOSTTYPE": "x86_64",
    "WSL2_GUI_APPS_ENABLED": "1",
    "WSLENV": "VSCODE_WSL_EXT_LOCATION/up",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "PYENV_ROOT": "/home/arnatious/.pyenv",
    "ZSH": "/home/arnatious/.oh-my-zsh",
    "PAGER": "less",
    "LESS": "-R",
    "LSCOLORS": "Gxfxcxdxbxegedabagacad",
    "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",
    "SSH_AUTH_SOCK": "/tmp/ssh-XXXXXXcLj266/agent.587",
    "SSH_AGENT_PID": "589",
    "GPG_AGENT_INFO": "/run/user/1000//gnupg/S.gpg-agent:672:1",
    "HISTSIZE": "1000000000",
    "SAVEHIST": "1000000000",
    "NVM_DIR": "/home/arnatious/.config/nvm",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "VSCODE_CWD": "/mnt/d/Programs/VSCode-win32-x64-1.85.2",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/1000/vscode-ipc-3fa6a188-48b2-409e-b13c-4ec4cbd61145.sock",
    "PATH": "/home/arnatious/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:/home/arnatious/.local/bin:/usr/local/lib/nodejs/bin:/home/arnatious/go/bin:/home/arnatious/.pyenv/shims:/home/arnatious/.pyenv/bin:/usr/local/sbin:/usr/sbin:/sbin/:/home/arnatious/bin:/usr/local/go/bin:/home/arnatious/.cargo/bin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python312/Scripts/:/mnt/c/Python312/:/mnt/c/Python311/Scripts/:/mnt/c/Python311/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/ProgramData/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Calibre2/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/ProgramData/chocolatey/lib/mpv.install/tools:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/arnatious/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/arnatious/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/arnatious/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/MKVToolNix"
}
2024-03-03 21:51:06.544 [info] > poetry env list --full-path
2024-03-03 21:51:06.544 [info] cwd: .
2024-03-03 21:51:06.545 [debug] Workspace Virtual Environment: [added] /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:06.545 [debug] Workspace Virtual Environment: [skipped] /home/arnatious/fooproject/.venv/bin/python3
2024-03-03 21:51:06.545 [debug] Workspace Virtual Environment: [skipped] /home/arnatious/fooproject/.venv/bin/python3.11
2024-03-03 21:51:06.547 [debug] Finished searching for workspace virtual envs
2024-03-03 21:51:06.549 [debug] Best effort version B for /home/arnatious/fooproject/.venv/bin/python {"major":3,"minor":11,"micro":-1}
2024-03-03 21:51:06.550 [debug] Best effort version C for /home/arnatious/fooproject/.venv/bin/python {"major":3,"minor":11,"micro":3,"release":{"level":"final","serial":0}}
2024-03-03 21:51:06.551 [debug] Best effort version D for /home/arnatious/fooproject/.venv/bin/python {"major":-1,"minor":-1,"micro":-1,"release":{"level":"final","serial":-1}}
2024-03-03 21:51:06.560 [info] > ./.venv/bin/python -I ~/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/interpreterInfo.py
2024-03-03 21:51:06.562 [debug] Best effort version B for /home/arnatious/fooproject/.venv/bin/python {"major":3,"minor":11,"micro":-1}
2024-03-03 21:51:06.564 [debug] Best effort version C for /home/arnatious/fooproject/.venv/bin/python {"major":3,"minor":11,"micro":3,"release":{"level":"final","serial":0}}
2024-03-03 21:51:06.564 [debug] Best effort version D for /home/arnatious/fooproject/.venv/bin/python {"major":-1,"minor":-1,"micro":-1,"release":{"level":"final","serial":-1}}
2024-03-03 21:51:06.600 [debug] Found interpreter for >> /home/arnatious/fooproject/.venv/bin/python -I /home/arnatious/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/get_output_via_markers.py /home/arnatious/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/interpreterInfo.py <<: {"versionInfo":[3,11,3,"final",0],"sysPrefix":"/home/arnatious/fooproject/.venv","sysVersion":"3.11.3 (main, May  4 2023, 16:59:24) [GCC 11.3.0]","is64Bit":true}
2024-03-03 21:51:07.215 [debug] Time taken to run poetry env list --full-path in ms 681
2024-03-03 21:51:07.216 [debug] Found poetry via filesystem probing for /home/arnatious/fooproject: poetry
2024-03-03 21:51:07.217 [debug] Searching for poetry virtual envs in: /home/arnatious/fooproject/.venv
2024-03-03 21:51:07.217 [debug] Searching for poetry virtual envs in: /home/arnatious/fooproject/.venv
2024-03-03 21:51:07.218 [debug] Poetry Virtual Environment: [added] /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.218 [debug] Poetry Virtual Environment: [added] /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.218 [debug] Finished searching for poetry envs
2024-03-03 21:51:07.218 [debug] Finished with environment resolver
2024-03-03 21:51:07.218 [debug] Finished with environment reducer
2024-03-03 21:51:07.221 [debug] Python API env change detected /home/arnatious/fooproject/.venv/bin/python update
2024-03-03 21:51:07.221 [debug] Environments added to cache [{"name":"3.11.3","location":"/home/arnatious/.pyenv/versions/3.11.3","kind":"global-pyenv","executable":{"filename":"/home/arnatious/.pyenv/versions/3.11.3/bin/python","sysPrefix":"/home/arnatious/.pyenv/versions/3.11.3","ctime":1683244172404,"mtime":1683244172404},"display":"Python 3.11.3 64-bit ('3.11.3')","version":{"major":3,"minor":11,"micro":3,"release":{"level":"final","serial":0},"sysVersion":"3.11.3 (main, May  4 2023, 16:59:24) [GCC 11.3.0]"},"arch":3,"distro":{"org":""},"source":[],"id":"/home/arnatious/.pyenv/versions/3.11.3/bin/python","detailedDisplayName":"Python 3.11.3 64-bit ('3.11.3': pyenv)"},{"name":".venv","location":"/home/arnatious/fooproject/.venv","kind":"poetry","executable":{"filename":"/home/arnatious/fooproject/.venv/bin/python","sysPrefix":"/home/arnatious/fooproject/.venv","ctime":1709531365939,"mtime":1709531365939},"searchLocation":{"$mid":1,"fsPath":"/home/arnatious/fooproject/.venv","path":"/home/arnatious/fooproject/.venv","scheme":"file"},"display":"Python 3.11.3 ('.venv': Poetry)","version":{"major":3,"minor":11,"micro":3,"release":{"level":"final","serial":0},"sysVersion":"3.11.3 (main, May  4 2023, 16:59:24) [GCC 11.3.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/arnatious/fooproject/.venv/bin/python","detailedDisplayName":"Python 3.11.3 ('.venv': Poetry)"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python2","sysPrefix":"/usr","ctime":1693114182401,"mtime":1627471026000},"display":"Python 2.7.18 64-bit","version":{"major":2,"minor":7,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"2.7.18 (default, Jul  1 2022, 10:30:50) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/bin/python2","detailedDisplayName":"Python 2.7.18 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python3","sysPrefix":"/usr","ctime":1683234213373,"mtime":1660819144000},"display":"Python 3.10.12 64-bit","version":{"major":3,"minor":10,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/bin/python3","detailedDisplayName":"Python 3.10.12 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python2","sysPrefix":"/usr","ctime":1693114182401,"mtime":1627471026000},"display":"Python 2.7.18 64-bit","version":{"major":2,"minor":7,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"2.7.18 (default, Jul  1 2022, 10:30:50) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python2","detailedDisplayName":"Python 2.7.18 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1683234213373,"mtime":1660819144000},"display":"Python 3.10.12 64-bit","version":{"major":3,"minor":10,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.10.12 64-bit"}]
2024-03-03 21:51:07.222 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.305 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.305 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.590 [debug] Dump environment variables {
    "USER": "arnatious",
    "VSCODE_WSL_EXT_LOCATION": "/mnt/d/Programs/VSCode-win32-x64-1.85.2/data/extensions/ms-vscode-remote.remote-wsl-0.81.9",
    "SHLVL": "0",
    "HOME": "/home/arnatious",
    "OLDPWD": "/mnt/d/Programs/VSCode-win32-x64-1.85.2",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
    "WSL_DISTRO_NAME": "Ubuntu",
    "WAYLAND_DISPLAY": "wayland-0",
    "LOGNAME": "arnatious",
    "PULSE_SERVER": "unix:/mnt/wslg/PulseServer",
    "WSL_INTEROP": "/run/WSL/13690_interop",
    "NAME": "arnatious-pc",
    "_": "/home/arnatious/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/node",
    "TERM": "xterm-256color",
    "XDG_RUNTIME_DIR": "/run/user/1000/",
    "DISPLAY": ":0",
    "LANG": "en_US.UTF-8",
    "SHELL": "/usr/bin/zsh",
    "PWD": "/mnt/d/Programs/VSCode-win32-x64-1.85.2",
    "HOSTTYPE": "x86_64",
    "WSL2_GUI_APPS_ENABLED": "1",
    "WSLENV": "VSCODE_WSL_EXT_LOCATION/up",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "PYENV_ROOT": "/home/arnatious/.pyenv",
    "ZSH": "/home/arnatious/.oh-my-zsh",
    "PAGER": "less",
    "LESS": "-R",
    "LSCOLORS": "Gxfxcxdxbxegedabagacad",
    "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",
    "SSH_AUTH_SOCK": "/tmp/ssh-XXXXXXcLj266/agent.587",
    "SSH_AGENT_PID": "589",
    "GPG_AGENT_INFO": "/run/user/1000//gnupg/S.gpg-agent:672:1",
    "HISTSIZE": "1000000000",
    "SAVEHIST": "1000000000",
    "NVM_DIR": "/home/arnatious/.config/nvm",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "VSCODE_CWD": "/mnt/d/Programs/VSCode-win32-x64-1.85.2",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/1000/vscode-ipc-3fa6a188-48b2-409e-b13c-4ec4cbd61145.sock",
    "PATH": "/home/arnatious/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:/home/arnatious/.local/bin:/usr/local/lib/nodejs/bin:/home/arnatious/go/bin:/home/arnatious/.pyenv/shims:/home/arnatious/.pyenv/bin:/usr/local/sbin:/usr/sbin:/sbin/:/home/arnatious/bin:/usr/local/go/bin:/home/arnatious/.cargo/bin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python312/Scripts/:/mnt/c/Python312/:/mnt/c/Python311/Scripts/:/mnt/c/Python311/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/ProgramData/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Calibre2/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/ProgramData/chocolatey/lib/mpv.install/tools:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/arnatious/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/arnatious/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/arnatious/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/MKVToolNix"
}
2024-03-03 21:51:07.591 [debug] Received shell integration sequence for zsh
2024-03-03 21:51:07.607 [debug] Activation Commands received source /home/arnatious/fooproject/.venv/bin/activate for shell /usr/bin/zsh, resource /home/arnatious/fooproject and interpreter /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.607 [debug] Activating Environment to capture Environment variables, . /home/arnatious/fooproject/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/arnatious/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/printEnvVariables.py
2024-03-03 21:51:07.607 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/printEnvVariables.py
2024-03-03 21:51:07.607 [info] shell: zsh
2024-03-03 21:51:07.649 [debug] Activated environment variables for /home/arnatious/fooproject {
  USER: 'arnatious',
  VSCODE_WSL_EXT_LOCATION: '/mnt/d/Programs/VSCode-win32-x64-1.85.2/data/extensions/ms-vscode-remote.remote-wsl-0.81.9',
  SHLVL: '0',
  HOME: '/home/arnatious',
  OLDPWD: '/mnt/d/Programs/VSCode-win32-x64-1.85.2',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
  WSL_DISTRO_NAME: 'Ubuntu',
  WAYLAND_DISPLAY: 'wayland-0',
  LOGNAME: 'arnatious',
  PULSE_SERVER: 'unix:/mnt/wslg/PulseServer',
  WSL_INTEROP: '/run/WSL/13690_interop',
  NAME: 'arnatious-pc',
  _: '/home/arnatious/fooproject/.venv/bin/python',
  TERM: 'xterm-256color',
  XDG_RUNTIME_DIR: '/run/user/1000/',
  DISPLAY: ':0',
  LANG: 'en_US.UTF-8',
  SHELL: '/usr/bin/zsh',
  PWD: '/mnt/d/Programs/VSCode-win32-x64-1.85.2',
  HOSTTYPE: 'x86_64',
  WSL2_GUI_APPS_ENABLED: '1',
  WSLENV: 'VSCODE_WSL_EXT_LOCATION/up',
  VSCODE_HANDLES_SIGPIPE: 'true',
  PYENV_ROOT: '/home/arnatious/.pyenv',
  ZSH: '/home/arnatious/.oh-my-zsh',
  PAGER: 'less',
  LESS: '-R',
  LSCOLORS: 'Gxfxcxdxbxegedabagacad',
  LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:',
  SSH_AUTH_SOCK: '/tmp/ssh-XXXXXXcLj266/agent.587',
  SSH_AGENT_PID: '589',
  GPG_AGENT_INFO: '/run/user/1000//gnupg/S.gpg-agent:672:1',
  HISTSIZE: '1000000000',
  SAVEHIST: '1000000000',
  NVM_DIR: '/home/arnatious/.config/nvm',
  VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
  VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
  VSCODE_NLS_CONFIG: '{"locale":"en","osLocale":"en","availableLanguages":{}}',
  VSCODE_CWD: '/mnt/d/Programs/VSCode-win32-x64-1.85.2',
  ELECTRON_RUN_AS_NODE: '1',
  VSCODE_IPC_HOOK_CLI: '/run/user/1000/vscode-ipc-3fa6a188-48b2-409e-b13c-4ec4cbd61145.sock',
  PATH: '/home/arnatious/fooproject/.venv/bin:/home/arnatious/.local/bin:/usr/local/lib/nodejs/bin:/usr/local/sbin:/usr/sbin:/sbin/:/home/arnatious/bin:/usr/local/go/bin:/home/arnatious/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:/home/arnatious/go/bin:/home/arnatious/.pyenv/shims:/home/arnatious/.pyenv/bin:/home/arnatious/.cargo/bin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python312/Scripts/:/mnt/c/Python312/:/mnt/c/Python311/Scripts/:/mnt/c/Python311/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/ProgramData/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Calibre2/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/ProgramData/chocolatey/lib/mpv.install/tools:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/arnatious/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/arnatious/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/arnatious/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/MKVToolNix',
  PYTHONUNBUFFERED: '1',
  PYTHONIOENCODING: 'utf-8',
  VIRTUAL_ENV: '/home/arnatious/fooproject/.venv',
  VIRTUAL_ENV_PROMPT: 'fooproject-py3.11',
  PS1: '(fooproject-py3.11) '
}
2024-03-03 21:51:07.655 [info] > ~/.pyenv/versions/3.11.3/bin/python ~/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/printEnvVariables.py
2024-03-03 21:51:07.655 [info] shell: zsh
2024-03-03 21:51:07.686 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.687 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.688 [info] Prepending environment variable PATH in collection with /home/arnatious/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/deactivate/zsh:/home/arnatious/fooproject/.venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-03 21:51:07.688 [info] Setting environment variable VIRTUAL_ENV in collection to /home/arnatious/fooproject/.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-03 21:51:07.688 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to fooproject-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-03 21:51:07.688 [info] Prepending environment variable PS1 in collection with (.venv)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-03-03 21:51:07.688 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:07.689 [info] Send text to terminal: /home/arnatious/.pyenv/versions/3.11.3/bin/python /home/arnatious/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/printEnvVariablesToFile.py /home/arnatious/.vscode-server/extensions/ms-python.python-2024.3.10640539/python_files/deactivate/zsh/envVars.txt
2024-03-03 21:51:07.691 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined
2024-03-03 21:51:07.692 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined
2024-03-03 21:51:08.175 [debug] Received shell integration sequence for zsh
2024-03-03 21:51:08.199 [debug] Time taken to get env vars using terminal is 511ms
2024-03-03 21:51:08.308 [debug] Received shell integration sequence for zsh
2024-03-03 21:51:08.648 [info] Starting Pylance language server.
2024-03-03 21:51:08.649 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:08.654 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:08.655 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:08.709 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-03-03 21:51:08.710 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/arnatious/fooproject/.venv/bin/python","path":"/home/arnatious/fooproject/.venv/bin/python"}
2024-03-03 21:51:08.710 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined
2024-03-03 21:51:08.711 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-03-03 21:51:08.711 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/arnatious/fooproject/.venv/bin/python","path":"/home/arnatious/fooproject/.venv/bin/python"}
2024-03-03 21:51:12.186 [debug] Terminal shell path '/usr/bin/zsh' identified as shell 'zsh'
2024-03-03 21:51:12.186 [debug] Shell identified as zsh 
2024-03-03 21:51:12.186 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:12.938 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:17.740 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:17.740 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:18.651 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python
2024-03-03 21:51:19.083 [debug] Received shell integration sequence for zsh
2024-03-03 21:51:22.492 [debug] Found cached env for /home/arnatious/fooproject/.venv/bin/python

.venv/bin/activate content

# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly


if [ "${BASH_SOURCE-}" = "$0" ]; then
    echo "You must source this script: \$ source $0" >&2
    exit 33
fi

deactivate () {
    unset -f pydoc >/dev/null 2>&1 || true

    # reset old environment variables
    # ! [ -z ${VAR+_} ] returns true if VAR is declared at all
    if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then
        PATH="$_OLD_VIRTUAL_PATH"
        export PATH
        unset _OLD_VIRTUAL_PATH
    fi
    if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
        PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
        export PYTHONHOME
        unset _OLD_VIRTUAL_PYTHONHOME
    fi

    # The hash command must be called to get it to forget past
    # commands. Without forgetting past commands the $PATH changes
    # we made may not be respected
    hash -r 2>/dev/null

    if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
        PS1="$_OLD_VIRTUAL_PS1"
        export PS1
        unset _OLD_VIRTUAL_PS1
    fi

    unset VIRTUAL_ENV
    unset VIRTUAL_ENV_PROMPT
    if [ ! "${1-}" = "nondestructive" ] ; then
    # Self destruct!
        unset -f deactivate
    fi
}

# unset irrelevant variables
deactivate nondestructive

VIRTUAL_ENV='/home/arnatious/fooproject/.venv'
if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then
    VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV")
fi
export VIRTUAL_ENV

_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH

if [ "xfooproject-py3.11" != x ] ; then
    VIRTUAL_ENV_PROMPT="fooproject-py3.11"
else
    VIRTUAL_ENV_PROMPT=$(basename "$VIRTUAL_ENV")
fi
export VIRTUAL_ENV_PROMPT

# unset PYTHONHOME if set
if ! [ -z "${PYTHONHOME+_}" ] ; then
    _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
    unset PYTHONHOME
fi

if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
    _OLD_VIRTUAL_PS1="${PS1-}"
    PS1="(${VIRTUAL_ENV_PROMPT}) ${PS1-}"
    export PS1
fi

# Make sure to unalias pydoc if it's already there
alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true

pydoc () {
    python -m pydoc "$@"
}

# The hash command must be called to get it to forget past
# commands. Without forgetting past commands the $PATH changes
# we made may not be respected
hash -r 2>/dev/null

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Mar 4, 2024
@Arnatious
Copy link
Author

Arnatious commented Mar 4, 2024

We can see from the logs that the addon does seem to identify VIRTUAL_ENV_PROMPT correctly, but for some reason it goes ahead and prepends (.venv) instead

2024-03-03 21:51:07.688 [info] Setting environment variable VIRTUAL_ENV in collection to /home/arnatious/fooproject/.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-03 21:51:07.688 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to fooproject-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-03 21:51:07.688 [info] Prepending environment variable PS1 in collection with (.venv)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}

@karrtikr karrtikr added bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Mar 15, 2024
@karrtikr karrtikr added this to the March 2024 milestone Mar 15, 2024
karrtikr pushed a commit that referenced this issue Mar 15, 2024
Closes #22956

Because we calculate `PS1` ourselves due to a limitation:
#22078, this environment
variable may not end up being respected as do not use `PS1`. This PR
fixes it.
@karrtikr
Copy link

Fix should be out in the pre-release version of the extensio, use the following to try it out:

image

@karrtikr karrtikr added the author-verification-requested Issues potentially verifiable by issue author label Mar 22, 2024
@karrtikr
Copy link

@Arnatious Let us know if you can verify it is fixed.

@rzhao271 rzhao271 added the verified Verification succeeded label Mar 27, 2024
wesm pushed a commit to posit-dev/positron that referenced this issue Apr 5, 2024
…ython#23080)

Closes microsoft/vscode-python#22956

Because we calculate `PS1` ourselves due to a limitation:
microsoft/vscode-python#22078, this environment
variable may not end up being respected as do not use `PS1`. This PR
fixes it.
wesm pushed a commit to posit-dev/positron that referenced this issue Apr 8, 2024
…ython#23080)

Closes microsoft/vscode-python#22956

Because we calculate `PS1` ourselves due to a limitation:
microsoft/vscode-python#22078, this environment
variable may not end up being respected as do not use `PS1`. This PR
fixes it.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug experimenting Feature is part of an experiment needs PR Ready to be worked on verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants