Skip to content

PredictionResult exception after upgrading WindowsTerminal using Nuget #4564

@jtattreo

Description

@jtattreo

I ran "winget upgrade Microsoft.WindowsTerminal" from within WinTerm. It appeard to run fine, then instrcuted to restart Terminal. After doing so, it now fails at load time.

Environment

PSReadLine: 2.2.0-beta1
PowerShell: 7.5.0
OS: Microsoft Windows 10.0.19045
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()
   at Microsoft.PowerShell.PSConsoleReadLine.Prediction.Reset()
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions