Skip to content

PSReadline error #2995

Answered by daxian-dbw
gihanrangana asked this question in Q&A
Nov 10, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

This issue was fixed in 2.2.0-beta3 version of PSReadLine. You can fix this by upgrading to the latest 2.2.0-beta4 version of PSReadLine. Instructions for doing so:

  1. stop all instances of pwsh.
  2. from cmd.exe run: pwsh -noprofile -command "Install-Module PSReadLine -AllowPrerelease -Force"

If you want to remove that beta version of PSReadLine and use the 2.1.0 version of PSReadLine that's shipped with PowerShell 7.2, you can:

  1. run pwsh -noprofile -noninteractive to start pwsh without loading PSReadLine
  2. run Uninstall-Module -Name PSReadLine -RequiredVersion <2.2.0-beta1 or 2.2.0-beta2> -AllowPrerelease to remove the module. Or, you can manually remove that module folder.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gihanrangana
Comment options

Answer selected by daxian-dbw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants