PowerShell / PowerShell/vscode-powershell
Start-Job -PSVersion 5.1 does not include the Windows Powershell module user path when run in PSIC terminal
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 1.9k
- フォーク
- 548
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Issue Type: Bug
Reproduce
In PSIC terminal:
Start-Job -PSVersion '5.1' -ScriptBlock {$ENV:PSModulePath} | Receive-Job -Wait
Expected
PSModulePath contains $HOME\Documents\WindowsPowershell\Modules
Actual
Only contains system folders and the powershell preview extension modules folder
C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;c:\Users\JGrote\.vscode-insiders\extensions\ms-vscode.powershell-preview-2021.5.0\modules
Workaround
Add back to PSModulePath as first step in the job
Extension version: 2021.5.0
VS Code version: Code - Insiders 1.57.0-insider (fe1eafc80c07608de52a2f9c99fee103dea77f5e, 2021-06-04T12:21:40.077Z)
OS version: Windows_NT x64 10.0.19043
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 4700U with Radeon Graphics (8 x 1996) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.36GB (4.84GB free) |
| Process Argv | --folder-uri file:///c%3A/Users/JGrote/Projects/PowerConfig --crash-reporter-id 4453efaa-0821-4555-88e2-3de8bad9109e |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
vspre833cf:30267465
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158cf:30286554
pythonvsuse255:30303025
vscgsv2:30305091
vscorehov:30301224
vscod805:30301674
vscextlang:30310088
vsccppwtct:30312693
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、PSIC ターミナルでコマンドを再現し、5.1 Start-Job セッションの PSModulePath を、期待されるユーザーモジュールパスと比較します。ソースファイルもテストも指定されていないため、拡張機能のジョブとセッションの初期化を追跡します。ユーザーパスが workaround を必要とせずに存在していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100