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 abruptly.
Nonetheless, abruptly I began getting this error on each immediate.
Couldn't load kind 'System.Administration.Automation.Subsystem.PredictionResult' from meeting 'Microsoft.PowerShell.PSReadLine.Polyfiller, Model=18.104.22.168, Tradition=impartial, PublicKeyToken=null'.
at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
Properly, you possibly can see I am utilizing a Beta of PSReadLine 2.2:
However I’ve didn’t maintain it updated, and once I bought into this state, I noticed simply because my immediate wasn’t fairly (momentarily) I might replace it with one line whereas nonetheless staying on the Beta Prepare.
Set up-Module PSReadLine -AllowPrerelease -Drive
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 totally managed with built-in entry through Okay/V, SQL and full textual content search. It’s blazing quick, but surprisingly inexpensive. Strive Capella as we speak without cost.