Powershell 7.2 and Windows Terminal #14014

Open
opened 2026-01-31 03:58:31 +00:00 by claunia · 0 comments
Owner

Originally created by @KrisCarr on GitHub (May 28, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.1023

Other Software

Powershell 7.2.0-preview.6
Windows Terminal Preview Version: 1.9.1445.0

Steps to reproduce

Open Powershell 7.2.0-preview.6 in Windows Terminal.

This error does not happen if Powershell is opened on its own from the start menu.

JSON is simply:

{
    "guid": "{a3a2e83a-884a-5379-baa8-16f193a13b21}",
    "hidden": false,
    "name": "PowerShell 7 Preview",
    "source": "Windows.Terminal.PowershellCore",
    "fontFace": "Cascadia Code PL"
},

Expected Behavior

The terminal prompt.

Actual Behavior

The following error in the console window instead of the expected prompt:

Environment

PSReadLine: 2.2.0-beta1
PowerShell: 7.2.0-preview.6
OS: Microsoft Windows 10.0.19043
BufferWidth: 120
BufferHeight: 30

Last 0 Keys


Exception

System.TypeLoadException: Could not load type 'System.Management.Automation.Subsystem.PredictionResult' from assembly 'Microsoft.PowerShell.PSReadLine.Polyfiller, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at Microsoft.PowerShell.PSConsoleReadLine.PredictionViewBase.Reset()
   at Microsoft.PowerShell.PSConsoleReadLine.PredictionInlineView.Reset() in Microsoft.PowerShell.PSReadLine2.dll:token 0x60004a6+0x0
   at Microsoft.PowerShell.PSConsoleReadLine.Prediction.Reset() in Microsoft.PowerShell.PSReadLine2.dll:token 0x6000478+0x7
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000f2+0x118
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000eb+0x60
Originally created by @KrisCarr on GitHub (May 28, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.1023 ### Other Software Powershell 7.2.0-preview.6 Windows Terminal Preview Version: 1.9.1445.0 ### Steps to reproduce Open Powershell 7.2.0-preview.6 in Windows Terminal. This error does not happen if Powershell is opened on its own from the start menu. JSON is simply: ``` { "guid": "{a3a2e83a-884a-5379-baa8-16f193a13b21}", "hidden": false, "name": "PowerShell 7 Preview", "source": "Windows.Terminal.PowershellCore", "fontFace": "Cascadia Code PL" }, ``` ### Expected Behavior The terminal prompt. ### Actual Behavior The following error in the console window instead of the expected prompt: ### Environment PSReadLine: 2.2.0-beta1 PowerShell: 7.2.0-preview.6 OS: Microsoft Windows 10.0.19043 BufferWidth: 120 BufferHeight: 30 Last 0 Keys ``` ``` ### Exception ``` System.TypeLoadException: Could not load type 'System.Management.Automation.Subsystem.PredictionResult' from assembly 'Microsoft.PowerShell.PSReadLine.Polyfiller, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at Microsoft.PowerShell.PSConsoleReadLine.PredictionViewBase.Reset() at Microsoft.PowerShell.PSConsoleReadLine.PredictionInlineView.Reset() in Microsoft.PowerShell.PSReadLine2.dll:token 0x60004a6+0x0 at Microsoft.PowerShell.PSConsoleReadLine.Prediction.Reset() in Microsoft.PowerShell.PSReadLine2.dll:token 0x6000478+0x7 at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000f2+0x118 at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000eb+0x60 ```
claunia added the Needs-TriageNeeds-Tag-FixNeeds-AttentionProduct-Powershell labels 2026-01-31 03:58:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14014