PowerShell 7.2.0 – Couldn’t load kind System.Administration.Automation.Subsystem.PredictionResult

[ad_1]


My PowerShell upgraded to the brand new PowerShell 7.2.0 and it occurred robotically since I get PowerShell from the Home windows Retailer. Nonetheless, my fancy immediate use PSReadLine with Predictive Autocomplete stopped working out of the blue.

Nonetheless, out of the blue I began getting this error on each immediate.

Couldn't load kind 'System.Administration.Automation.Subsystem.PredictionResult' from meeting 'Microsoft.PowerShell.PSReadLine.Polyfiller, Model=1.0.0.0, Tradition=impartial, 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)

Properly, you may see I am utilizing a Beta of PSReadLine 2.2:

### Atmosphere
PSReadLine: 2.2.0-beta2
PowerShell: 7.2.0

However I’ve did not preserve it updated, and after I acquired into this state, I spotted simply because my immediate wasn’t fairly (momentarily) I may replace it with one line whereas nonetheless staying on the Beta Practice.

Set up-Module PSReadLine -AllowPrerelease -Power

Now I am on 2.2.0-beta4 and all is effectively and I’ve my cool prediction historical past again!


Sponsor: Couchbase Capella DBaaS is versatile, full-featured and absolutely managed  with built-in entry through Okay/V, SQL and full textual content search. It’s blazing quick, but surprisingly reasonably priced. Attempt Capella at present free of charge.




About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, marketing consultant, father, diabetic, and Microsoft worker. He’s a failed stand-up comedian, a cornrower, and a ebook creator.

facebook
twitter
subscribe
About   Publication

Internet hosting By
Hosted in an Azure App Service










[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *