PowerShell extension fails to start / crash on Windows PowerShell 5.1 with .NET Runtime error
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- powershell, typescript
- Bereich
- cli, developer-experience, tooling
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
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
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
[email protected]
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.9k
- Forks
- 552
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PowerShell/vscode-powershell
-
agentic-workflows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
PowerShell/vscode-powershell#5656 ·
-
agentic-workflows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
PowerShell/vscode-powershell#5615 · 1 Kommentar ·
-
agentic-workflows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
PowerShell/vscode-powershell#5607 ·
-
agentic-workflows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
PowerShell/vscode-powershell#5599 · 3 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
PowerShell/vscode-powershell#5592 · 2 Kommentare · 1 Reaktion ·
Alle Issues in PowerShell/vscode-powershell
Ähnliche Issues
-
e2e-failure ready-to-code
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
redhat-developer/rhdh-plugin-export-overlays#4460 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
docs(api): openapi.yaml still documents gif-tools optimize colors as 2-256 instead of 2, 4, 16, 256Offenarea: backend documentation priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
snapotter-hq/SnapOtter#2919 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
obsidianmd/pele#39 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
biomejs/biome#12475 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag