You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search the existing issues, especially the pinned issues.
Exception report
Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.mdThank you!### EnvironmentPSReadLine: 2.2.0-beta1PowerShell: 7.6.2OS: Microsoft Windows 10.0.26220BufferWidth: 120BufferHeight: 30Last 0 Keys### ExceptionSystem.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.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)I cannot run the script on 7.2.6PS Version: 5.1.26100.8544PS HostName: ConsoleHostPSReadLine Version: 2.0.0PSReadLine EditMode: WindowsOS: 10.0.26100.7934 (WinBuild.160101.0800)BufferWidth: 120BufferHeight: 9001
This issue was fixed in 2.2.0-beta3 version of PSReadLine. You can fix this by upgrading to the latest 2.3.5 version of PSReadLine.
To upgrade, simply run Install-Module PSReadLine -AllowPrerelease -Force from your PowerShell console.
If you want to remove that beta version of PSReadLine and use the 2.1.0 version of PSReadLine that's shipped with PowerShell 7.2, you can:
run pwsh -noprofile -noninteractive to start pwsh without loading PSReadLine
run Uninstall-Module -Name PSReadLine -RequiredVersion <2.2.0-beta1 or 2.2.0-beta2> -AllowPrerelease to remove the module. Or, you can manually remove that module folder.
Activity
github-actions commentedon Jun 5, 2026
This issue was fixed in 2.2.0-beta3 version of PSReadLine. You can fix this by upgrading to the latest 2.3.5 version of PSReadLine.
To upgrade, simply run
Install-Module PSReadLine -AllowPrerelease -Forcefrom your PowerShell console.If you want to remove that beta version of PSReadLine and use the 2.1.0 version of PSReadLine that's shipped with PowerShell 7.2, you can:
pwsh -noprofile -noninteractiveto startpwshwithout loading PSReadLineUninstall-Module -Name PSReadLine -RequiredVersion <2.2.0-beta1 or 2.2.0-beta2> -AllowPrereleaseto remove the module. Or, you can manually remove that module folder.