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

"Open in Terminal" working poorly. #36

Open
thezbm opened this issue Aug 3, 2022 · 0 comments
Open

"Open in Terminal" working poorly. #36

thezbm opened this issue Aug 3, 2022 · 0 comments

Comments

@thezbm
Copy link

thezbm commented Aug 3, 2022

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:

  1. Simply click "Open in Terminal" button under the "Global" environment.
  2. 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

bug

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 (ViewOutput, 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'

User Settings


languageServer: "Pylance"

terminal
• executeInFileDir: "<placeholder>"

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
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz (8 x 3111)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 15.79GB (1.25GB free)
Process Argv --folder-uri file:///c%3A/Users/GaryZhang/Documents/My_Codes/Python --crash-reporter-id 3d287bfa-4761-4921-b5cd-15c81082c5fc
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30525689
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
pylanb8912:30529769
vsclangdc:30486549
c4g48928:30535728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant