Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

PowerShell extension fails to start / crash on Windows PowerShell 5.1 with .NET Runtime error

Abierto
#5,608 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
powershell, typescript

Línea de trabajo

The issue is a crash in PowerShell Editor Services on Windows PowerShell 5.1 with a .NET Runtime error. Start by examining the extension logs and the Windows Event Viewer details (Event ID 1022, HRESULT 0x80004005). Look at the initialization code in the PowerShell extension, likely in the language server or session startup. Reproduce the crash locally to capture more logs. 'Done' is identifying the root cause of the .NET Runtime failure and proposing a fix.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

When launching Visual Studio Code or activating the PowerShell extension, the PowerShell extension (PowerShell Editor Services) fails to start the integrated terminal session and prompts to report an issue.

Checking the Windows Event Viewer around the time of the crash showed a .NET Runtime failure:

  • Event ID: 1022 (.NET Runtime version 4.0.30319.0, HRESULT: 0x80004005)
    The PowerShell host session failed to initialize properly.
PowerShell Version
Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      5.1.26100.9502                                                                          
PSEdition                      Desktop                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
BuildVersion                   10.0.26100.9502                                                                         
CLRVersion                     4.0.30319.42000                                                                         
WSManStackVersion              3.0                                                                                     
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1
Visual Studio Code Version
1.107.0
x64
Extension Version
ms-vscode.powershell@2025.4.0
Steps to Reproduce
  1. Open Visual Studio Code (v1.107.0 on Windows 11).
  2. Activate the PowerShell extension (ms-vscode.powershell v2025.4.0).
  3. The extension attempts to start using default Windows PowerShell 5.1 (Desktop edition).
  4. The extension fails to initialize/crashes, and a notification prompts to report the issue.
Visuals

No response

Logs

No response

Lenguaje dominante
TypeScript
Estrellas
1.9k
Forks
548
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PowerShell/vscode-powershell

Todos los issues de PowerShell/vscode-powershell

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.