Skip to content

PowerShell Extension terminal unusable when using Windows PowerShell with PSReadLine >= 2.2.5 #4804

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

Closed
6 tasks done
sba923 opened this issue Oct 28, 2023 · 4 comments
Closed
6 tasks done
Labels
Issue-Bug A bug to squash. Resolution-External Will close automatically.

Comments

@sba923
Copy link

sba923 commented Oct 28, 2023

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Using the latest PowerShell Extension v2023.9.5, that comes with PSReadLine 2.3.4, is not possible with Windows PowerShell:

image

Reverting to PSReadLine 2.0.0, works, anything >= 2.2.5 yields the same behavior.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22621.2506
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2506
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.83.1
f1b07bd25dfad64b0167beb15359ae573aecd2cc
x64

Extension Version

Steps to Reproduce

Launch VScode, open any .ps1 file, and switch the PowerShell session to "Windows PowerShell (x64)"

Visuals

No response

Logs

1698477220-9012415f-77ca-49e4-a3a8-c49c6146ab011698477191238.zip

@sba923 sba923 added the Issue-Bug A bug to squash. label Oct 28, 2023
@andyleejordan
Copy link
Member

@daxian-dbw do we know of any issues affecting PSReadLine and Windows PowerShell compatibility?

@SydneyhSmith
Copy link
Collaborator

@StevenBucher98 are you aware of any issues with PSReadLine and Windows PowerShell?

@sba923
Copy link
Author

sba923 commented Nov 8, 2023

Sorry, forgot to share here that we determined with @JanDeDobbeleer that removing the "shell_integration": true" statement from my oh-my-posh profile makes the issue go away.

See https://twitter.com/SBarizien/status/1719646419416490051?t=8tUVSUirC7DB3X2oEan2pA&s=19 and #4731

@andyleejordan andyleejordan added the Resolution-External Will close automatically. label Nov 8, 2023
@github-actions github-actions bot added the Stale label Nov 16, 2023
Copy link
Contributor

This issue has been marked as resolved and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Resolution-External Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants