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.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.9k
- Forks
- 547
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Windows-VS-Code-Sequenz im Issue zu reproduzieren: Rufe die .PS1-Datei auf, brich das Herunterfahren ab, rufe sie erneut auf, schließe VS Code mit WM_CLOSE und öffne es erneut. Untersuche die verfügbaren Logs der Extension sowie die Prozess- oder Pipe-Handhabung rund um den Fehler; fertig ist es, wenn die Datei nach dem Abbrechen des Herunterfahrens erneut aufgerufen werden kann, ohne den connect ENOENT-Fehler.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell, typescript, vscode
- Bereich
- desktop, devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100