PowerShell / PowerShell/vscode-powershell

Start-Transcript + Write-Progress + yarn + MacOS: ^[[23;1R

Aperta
#5,159 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Issue-Bug Needs: Triage
Lingua principale
TypeScript
Stelle
1.9k
Fork
548
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

An ANSI escape sequence is emitted and script execution is blocked until you hit Enter a bunch of times.

PowerShell Version
Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Name             : ConsoleHost
Version          : 7.5.0
InstanceId       : 54662023-751e-4a90-bdac-1799cccf6dfb
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
1.98.2
ddc367ed5c8936efe395cffeec279b04ffd7db78
arm64
Extension Version
ms-vscode.powershell@2025.0.0
Steps to Reproduce

Run on MacOS in VS Code

# test.ps1
Start-Transcript -Path (New-TemporaryFile).FullName
Write-Progress "a"
yarn --version
Stop-Transcript
PS /Users/user/code> ./test.ps1
Transcript started, output file is /var/folders/c0/vqmgyfpx38q4bwrxrkcgwcyr0000gn/T/tmpMneggD.tmp
1.22.22                                                                                                                 
^[[6;1R
Details
  • Does not happen on VS Code in Windows
  • Does not happen from zsh Terminal outside of VS Code when run from `pwsh -File ./test.ps1
Visuals

Image

Logs

No response

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.

Direzione di ricerca

Esegui il test.ps1 fornito con Start-Transcript, Write-Progress, yarn --version e Stop-Transcript nel terminale di VS Code su macOS, quindi confrontalo con il comportamento descritto di zsh esterno e pwsh -File. Il lavoro è completato quando la sequenza di escape ANSI non viene più emessa e l'esecuzione non richiede di premere ripetutamente Invio.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.