Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`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.

Aperta
#5,307 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell, typescript, vscode
Ambito
desktop, devtools

Direzione di ricerca

Inizia riproducendo la sequenza Windows VS Code descritta nell'issue: invoca il file .PS1, annulla l'arresto, invocalo nuovamente, chiudi VS Code con WM_CLOSE e riaprilo. Esamina i logs disponibili dell'estensione e la gestione dei processi o delle pipe attorno al malfunzionamento; il lavoro è completato quando il file può essere invocato nuovamente dopo aver annullato l'arresto senza l'errore connect ENOENT.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Issue-Bug Needs: Triage
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.gy4 appears when a .PS1 file 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
  1. Invoke a .PS1 file containing shutdown /r /fw via 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
    }
    
  2. Cancel when it prompts the user to, because of unkillable processes.

  3. Reinvoke the file. It causes the undermentioned:

    A Screenshot

  4. WM_CLOSE code. ^3

  5. Invoke code.

  6. Invoke the file again. It'll function.

Lingua principale
TypeScript
Stelle
1.9k
Fork
548
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/vscode-powershell

Tutte le issue di PowerShell/vscode-powershell

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.