ITADN

PowerShell 7.6.2.0 startup error

#5164Openmweaver59 创建于 2026-06-04
Needs-Triage :mag:
M
mweaver59commented
### Prerequisites - [x] Write a descriptive title. - [x] Make sure you are able to repro it on the [latest released version](https://www.powershellgallery.com/packages/PSReadLine) - [x] Search the existing issues, especially the pinned issues. ### Exception report ```console Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections. Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.md Thank you! ### Environment PSReadLine: 2.2.0-beta1 PowerShell: 7.6.2 OS: Microsoft Windows 10.0.26220 BufferWidth: 120 BufferHeight: 30 Last 0 Keys ### Exception 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.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) I cannot run the script on 7.2.6 PS Version: 5.1.26100.8544 PS HostName: ConsoleHost PSReadLine Version: 2.0.0 PSReadLine EditMode: Windows OS: 10.0.26100.7934 (WinBuild.160101.0800) BufferWidth: 120 BufferHeight: 9001 ``` ### Screenshot <img width="1483" height="762" alt="Image" src="https://github.com/user-attachments/assets/f3184341-e39a-440f-8b79-f5357ebab7d3" /> <img width="2560" height="1440" alt="Image" src="https://github.com/user-attachments/assets/391dcac9-f829-4bd1-a390-7353001af4ad" /> Environment data script will not run. ### Environment data ```console Cannot run ``` ### Steps to reproduce Just install and run as administrator/ ### Expected behavior run with command line ready for input ### Actual behavior just run it and is fails never completely starts
0 条评论