microsoft / microsoft/vscode-python-debugger

$PATH ordering is wrong when running with Python debugger.

未關閉
#258 3 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@karthiknadig 已經在處理了。

開始於 2024年8月8日。

bug needs PR
主要語言
TypeScript
星號
180
分支
126
平均合併
2 天 3 小時
30 天內合併 PR
3

描述

Issue Type: Bug

  1. Open a Python file.
  2. Press Ctrl-F5 to run a Python file.
  3. The Python file uses another executable (specifically, clang).
  4. My code fails because the $PATH order is different than it should be and as a result the clang call is using the wrong clang installation and fails..

See the screenshots for how the which clang output differs between the debugger terminal and the standard terminal. The origin of this problem is that the $PATH environment variable is in the wrong order in the debugger terminal.

164948222-8b8b9120-302e-42e4-b50c-8a1c9afeca3a

Extension version: 2022.4.1
VS Code version: Code 1.66.2 (Universal) (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:49:20.994Z)
OS version: Darwin arm64 21.4.0
Restricted Mode: No

System Info
Item Value
CPUs Apple M1 Max (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 5, 4, 3
Memory (System) 64.00GB (23.60GB free)
Process Argv --crash-reporter-id b532f079-f941-47c0-ab2f-f74d9a137557
Screen Reader no
VM 0%

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。