-
Notifications
You must be signed in to change notification settings - Fork 312
Error on Preview 6 System.TypeLoadException: Could not load type 'System.Management.Automation.Subsystem.PredictionResult' #2511
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
I am getting this as well on Linux: EnvironmentPSReadLine: 2.2.0-beta2
PowerShell: 7.2.0-preview.6
OS: Linux 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP Thu Apr 22 16:00:45 UTC
BufferWidth: 155
BufferHeight: 22
Last 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.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 |
UPDATEUsers in a similar thread posted that the teams are aware of this issue:
Happening with me as well. Seems to be exclusive to PowerShell 7.2.0-preview.6. Environment'Output env data when error occurred:'
'The environment script for bug posts would not produce any output via the host session,'
Exception report
Steps to reproduceInstall PSReadLine 2.2.0-beta2 Expected behaviorTypical PowerShell startup behavior--without errors and with a typical prompt. Actual behaviorUpon launching any instance of PS 7.2.0-preview.6, the user is presented with the given errors and messages. The console remains open and responsive, though there is no prompt available. The user can type commands; text remains white. Pressing Enter will run the command and the expected output will be displayed, after which the included error messages appear. Prompt never appears. Tab completion seems to be functional, though upon pressing TAB, another error message appears. The user's typed text moves to the center of the console, the suggested completion appears to the right of that, and another error message block appears above these, at the top of the console. The original error message and the caret remain at the bottom of the screen. PSReadLine seems to be behaving fine with PowerShell 7.1.3. |
Same issue for me after upgrading to preview 6. Initially, I had psreadline 2.2.0-beta1 installed, which throwed the same error as 2.2.0-beta2. EnvironmentPSReadLine: 2.2.0-beta2 Last 0 Keys
Exception
|
Thanks for reporting and using the preview version of PowerShell!
This was addressed by #2524. We will release 2.2.0-beta3 with this fix today or tomorrow. |
Uh oh!
There was an error while loading. Please reload this page.
script in $profile
Exception Error:
Exception
The script did not run when pasted into windows terminal running preview. Dunno.
The text was updated successfully, but these errors were encountered: