-
Notifications
You must be signed in to change notification settings - Fork 312
PSReadline crashed on daily build #2495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
repros with beta 2 of psreadline as well |
A breaking change to the command prediction experimental feature was merged on 5/20, and now changes to PSReadLine need to be done to work with the new interface. For now, I'm afraid you will have to switch to PSReadLine 2.1.0 temporarily, or you can use -noninteractive when working with the latest bits for the time being. The PSReadLine side changes are done, but the release of it will have to wait until after the next preview release of PowerShell because it depends on the NuGet packages. |
Dup #2482 |
🎉 This issue was addressed in 2524, which has now been successfully released in |
7.2.0-preview.7 and PSReadLine 2.2.0 beta3 seem to be working on first examination. (7.2.0-preview.5 and PSReadLine 2.2.0 beta3 did not work together.) |
Environment
PSReadLine: 2.2.0-beta1
PowerShell: 7.2.0-daily20210525.1
OS: Darwin 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:47 PDT 2021; root:xnu-7195.101.2~1/RELEASE_X86_64
BufferWidth: 125
BufferHeight: 41
Last 0 Keys
Exception
Steps to reproduce
start pwsh from the 7.2.0-daily20210525.1 build on macOS
Expected behavior
pwsh should start
Actual behavior
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)
work around
launch with
pwsh-daily -noprofile -noninteractive
The text was updated successfully, but these errors were encountered: