Skip to content
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

This error occurs when starting PowerShell7. #2549

Closed
Fish-XD opened this issue Jun 6, 2021 · 1 comment
Closed

This error occurs when starting PowerShell7. #2549

Fish-XD opened this issue Jun 6, 2021 · 1 comment

Comments

@Fish-XD
Copy link

Fish-XD commented Jun 6, 2021

Environment

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

Last 0 Keys

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() in Microsoft.PowerShell.PSReadLine2.dll:token 0x60004ca+0x0
   at Microsoft.PowerShell.PSConsoleReadLine.Prediction.Reset() in Microsoft.PowerShell.PSReadLine2.dll:token 0x600049b+0x7
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics) in Microsoft.PowerShell.PSReadLine2.dll:token 0x6000101+0x118
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000fa+0x60

Steps to reproduce

There will be this every time I start, I can’t provide an explanation of the problem, sorry.

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jun 6, 2021
@jpomfret
Copy link

I was having the same issues - it's due to a breaking changes introduced in PowerShell 7.2.0-preview.6.

Fix is to update PSReadLine to 2.2.0-beta3

Details on the PR: #2524

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants