PowerShell / PowerShell/vscode-powershell
`connect ENOENT \\.\pipe\PSES_fskvz4fs.gy4` appears, until VSC has been reinvoked, when a `.PS1` file is invoked in VSC, after cancelling a shutdown that was caused by a PS1 file, which was invoked by VSC.
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 1.9k
- フォーク
- 548
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
As was originally reported at microsoft/vscode/issues/244192:
connect ENOENT \\.\pipe\PSES_fskvz4fs.gy4appears when a.PS1file is invoked in VSC, after cancelling a shutdown that was caused by a PS1 file, which was invoked by VSC. The error ceases to appear after VSC has been (closed, then) reinvoked.
PowerShell Version
I did not collect this at the time. However, if relevant to issues/4332, it may contain them.
Extension Version
〃
Logs
〃
Visual Studio Code Version
Version: 1.98.2 (user setup) Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78 Date: 2025-03-12T13:32:45.399Z Electron: 34.2.0 ElectronBuildId: 11161602 Chromium: 132.0.6834.196 Node.js: 20.18.2 V8: 13.2.152.36-electron.0 OS: Windows_NT x64 10.0.26120
Steps to Reproduce
-
Invoke a
.PS1file containingshutdown /r /fwvia VSC's GUI: ^1#!/usr/bin/env pwsh #Requires -PSEdition 'Core' #Requires -Version 7.5.0 If ([OperatingSystem]::IsWindows() -Eq $True) { sudo shutdown /r /fw /t 0 } -
Cancel when it prompts the user to, because of unkillable processes.
-
Reinvoke the file. It causes the undermentioned:
-
WM_CLOSEcode. ^3 -
Invoke
code. -
Invoke the file again. It'll function.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue に記載された Windows VS Code の手順を再現します。.PS1 ファイルを呼び出し、シャットダウンをキャンセルし、再度呼び出し、WM_CLOSE で VS Code を閉じてから、再び開きます。拡張機能で利用可能なログと、失敗の前後におけるプロセスまたはパイプの処理を調査します。シャットダウンをキャンセルした後、connect ENOENT エラーなしでファイルを再度呼び出せれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell, typescript, vscode
- 領域
- desktop, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100