Skip to content

Immediate exception after windows inside upgrade #3005

@mucki-at

Description

@mucki-at

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Oops, something went wrong.
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.2.0
OS: Microsoft Windows 10.0.22498
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.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)


### Screenshot

![image](https://user-images.githubusercontent.com/23323005/141171244-d4be6123-eeda-4b18-8250-cb2b179e2a2c.png)


### Environment data

```console
cannot complete. Neither pasting, nor trying to store as PS1 and executing produces any output except more exceptions.

Steps to reproduce

NB: I tried to repro on PSReadLine 2.1.0 but i cannot seem to downgrade from 2.2.0-beta1 (I don't know how i ended up with the beta version either).

  1. Upgrade to insider build 22498.rs_onecore_sigma_rd.211105-1700
  2. Start powershell

Expected behavior

nothing, just powershell prompt

Actual behavior

immediate exception, even though some commands can still be run (and seem to work), but output is spammed with exception reports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions