You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected:
Open certain environment in the terminal and the shell should work normally.
Actual:
Opened a terminal, but it seemed that the shell had no access to $PATH, since it couldn't recognize commands like "git" or even "shutdown", which are definitly in $PATH.
Steps to reproduce:
Simply click "Open in Terminal" button under the "Global" environment.
When I was using "PowerShell" as the default integrated terminal profile, an error message saying it couldn't recognize "oh-my-posh" popped out since I had oh-my-posh installed. This reminded me that the shell might not be able to access $PATH. So I changed the default shell to Command Prompt, which resulted in similarly not recognizing commands like "python", "cmd" and "help".
However, opening an terminal for the other environment created by venv seemed working fine in my end.
Screen Recording
Diagnostic data
Python version (& distribution if applicable, e.g. Anaconda): 3.9.6
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
Value of the python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
[DEBUG 2022-7-4 23:20:54.514]: Shell path 'Python 3.9.6 64-bit', base path 'Python 3.9.6 64-bit'
[DEBUG 2022-7-4 23:20:54.514]: Shell path identified as shell 'other'
[DEBUG 2022-7-4 23:20:54.514]: Terminal name 'Python 3.9.6 64-bit' identified as shell 'other'
[DEBUG 2022-7-4 23:20:54.514]: [object Object]. Shell identified as other (Terminal name is Python 3.9.6 64-bit)
[DEBUG 2022-7-4 23:20:54.514]: Shell path 'C:\Program Files\PowerShell\7\pwsh.exe', base path 'C:\Program Files\PowerShell\7\pwsh'
[DEBUG 2022-7-4 23:20:54.514]: Shell path identified as shell 'powershellCore'
[DEBUG 2022-7-4 23:20:54.514]: Terminal shell path 'C:\Program Files\PowerShell\7\pwsh.exe' identified as shell 'powershellCore'
[DEBUG 2022-7-4 23:20:54.514]: [object Object]. Shell identified as powershellCore (Terminal name is Python 3.9.6 64-bit)
[DEBUG 2022-7-4 23:20:54.514]: Shell identified as 'powershellCore'
Issue Type: Bug
Behaviour
Expected vs. Actual
Expected:
Open certain environment in the terminal and the shell should work normally.
Actual:
Opened a terminal, but it seemed that the shell had no access to $PATH, since it couldn't recognize commands like "git" or even "shutdown", which are definitly in $PATH.
Steps to reproduce:
However, opening an terminal for the other environment created by venv seemed working fine in my end.
Screen Recording
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: 1.0.4
VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: