Skip to content

PSReadLine crashes on latest build of PowerShell #2482

@kborowinski

Description

@kborowinski

Environment

PSReadLine: 2.2.0-beta2
PowerShell: 7.2.0-preview.5
OS: Microsoft Windows 10.0.19043
BufferWidth: 237
BufferHeight: 9001

Exception report

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)

Steps to reproduce

psreadline

Probable cause

Are recent changes to prediction interface causing this?

Workaround

Rollback PSReadLine module to version 2.1.0 or rollback PowerShell to version 7.2.0-preview.5-46-ge927e94aedb6c425ec98174ac28a1de9feecd72a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions