2025-02-14 09:27:52.099 [info] > & ./.venv/Scripts/Activate.ps1 ; echo 'e8b39361-0157-4923-80e1-22d70d46dee6' ; python ~/.vscode/extensions/ms-python.python-2025.0.0-win32-x64/python_files/printEnvVariables.py
2025-02-14 09:27:52.099 [info] shell: powershellCore
2025-02-14 09:27:54.847 [info] Setting environment variable COMPOSE_FILE in collection to docker-compose-dev.yml {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable CONDA_PROMPT_MODIFIER in collection to False {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable DB_USER in collection to readonly-django-user {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable DISABLE_API_AUTH in collection to True {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable DISABLE_API_CACHE in collection to True {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable OT_API_KEY in collection to da2-x7u2ucifubbttnaz5ezhzhckmy {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable OT_API_URL in collection to https://gql.open-trade.io {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Prepending environment variable PATH in collection to c:\Users\username\.vscode\extensions\ms-python.python-2025.0.0-win32-x64\python_files\deactivate\powershell;C:\Users\username\Source\my-project\.venv/Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\PostgreSQL\16\bin;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.8.0_211\bin;C:\Hadoop\hadoop-3.3.6\bin;C:\Program Files\WireGuard\;C:\Program Files\WezTerm;C:\Program Files (x86)\oh-my-posh\bin;C:\Program Files\PowerShell\7\;C:\Program Files\GitHub CLI\;C:\Users\username\.local\bin;C:\Users\username\scoop\shims;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\AppData\Roaming\npm;C:\Users\username\AppData\Local\Programs\Microsoft VS Code Insiders\bin;;C:\Users\username\AppData\Local\spicetify; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable POSH_SESSION_ID in collection to c13863ce-f399-4200-9e93-365e4a93f9db {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable POSH_SHELL_VERSION in collection to 7.5.0 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable POSH_THEME in collection to C:\Users\username\Source\scripts\oh-my-posh\plenty-of-info.omp.json {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable POWERLINE_COMMAND in collection to oh-my-posh {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable PSMODULEPATH in collection to C:\Users\username\OneDrive - FiveSigma\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable PYTHONIOENCODING in collection to utf-8 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable PYTHONUNBUFFERED in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable SECRET_KEY in collection to j#mba3)n^__zfwuz2k(ph*1*q1ik@s^iaeo#v$cxwy!_r%+!$( {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable TEMP in collection to C:\Users\username\AppData\Local\Temp {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable TMP in collection to C:\Users\username\AppData\Local\Temp {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable USE_DISKCACHE in collection to 0 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable VIRTUAL_ENV in collection to C:\Users\username\Source\my-project\.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-02-14 09:27:54.847 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to my-project {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
Type: Bug
Behaviour
I've found that there is no way for me to update the living integrated terminal with the updated .env variables, is that right? The only way is to kill the terminal and start a new one. Relaunch terminal does not relaunch it, and does not update environment variables
Steps to reproduce:
create a .env file in a python project folder, if you make any changes to it, your terminal will show an orange warning triangle and suggest either Relaunching the terminal or Show environment contributions.
Your newly added environment variables from the .env will never arrive to already launched terminals.
Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2025.0.0
VS Code version: Code 1.97.1 (e249dada235c2083c83813bd65b7f4707fb97b76, 2025-02-10T13:13:58.153Z)
OS version: Windows_NT x64 10.0.26100
Modes:
python.languageServersetting: PylanceUser Settings
Installed Extensions
A/B Experiments