PowerShell extension fails to start / crash on Windows PowerShell 5.1 with .NET Runtime error
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
- Área
- cli, developer-experience, tooling
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
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
- Open Visual Studio Code (v1.107.0 on Windows 11).
- Activate the PowerShell extension (
ms-vscode.powershellv2025.4.0). - The extension attempts to start using default Windows PowerShell 5.1 (Desktop edition).
- 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
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/vscode-powershell
-
agentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
PowerShell/vscode-powershell#5607 ·
-
[aw] Agentic Issue Triage failed Abiertoagentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
PowerShell/vscode-powershell#5599 · 3 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PowerShell/vscode-powershell#5592 · 2 comentarios · 1 reacción ·
-
[aw] Agentic Issue Triage failed Abiertoagentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
PowerShell/vscode-powershell#5583 · 1 comentario ·
-
powershell.scriptAnalysis.settingsPath (Description): Warning Message Should Provide A Workaround AbiertoArea-Code Formatting Issue-Enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
PowerShell/vscode-powershell#4653 · 3 comentarios · 4 reacciones ·
Todos los issues de PowerShell/vscode-powershell
Issues similares
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Crush Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
ElementsProject/cln-application#167 · 1 comentario · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Quantco/pnpm-licenses#17 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100