-
Notifications
You must be signed in to change notification settings - Fork 491
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
PSReadLine 2.2.0-beta 3 breaks extension #3393
Comments
I have the same issue. On PSReadLine 2.2.0-beta3 and PowerShell 2021.5.1 the debug controls do not work in VSC. I had to rollback to PSReadLine 2.1.0 as workaround. |
@daxian-dbw - do you need me to open an issue on PSReadLine repo as well? This may be an issue with PSReadLine itself? |
PSReadLine 2.2.0-beta3 (and beta2, probably all of 2.2.0) is incompatible with the extension right now, we bundle (and only support) 2.1.0. In the past it was decided that the extension should try to use the latest version of PSReadLine installed, despite potential compatibility issues, but we are planning to revert that behavior to avoid bugs just as you all have hit here (PowerShell/PowerShellEditorServices#1493). We would welcome any work done to fix compatibility issues between PowerShell Editor Services and PSReadLine 2.2.0, as when it releases we will need to upgrade the bundled module. |
This is strange. Comparing to 2.2.0-beta2, the 2.2.0-beta3 PSReadLine just made the necessary changes to adapt to the new prediction interface in powershell 7.2.0-preview.6, which shouldn't affect the vs code extension in my understanding. I found the following exception in the 'EditorServices.log', maybe @andschwa can see if this is relevant?
|
Interesting...can't say it wouldn't be the first serialization bug with OmniSharp (if that's what's going on). However, @rjmholt and I found that PSReadLine 2.2.0-beta2 was also incompatible. So it's not just beta3. |
@andschwa That is strange. I have reverted to PSReadLine 2.2.0-beta2 and the debug controls work as expected. |
Are you certain beta2 is loading? We found that nothing seemed broken but upon inspection that PSReadLine was failing to load at all when beta2 was installed, and so left us both with the fallback/legacy readline. Try |
Did you use powershell 7.2.0-preview.6 when doing this investigation? The beta2 PSReadLine is only incompatible with preview.6, it would work well with other versions of PowerShell, such as 7.1.x or 7.2.0-preview.5. |
Nope, just regular PowerShell 7.1.x. |
@andschwa Yeah it loads but on PowerShell 5.1 and on 7.2.0-preview.5: |
I'm pretty sure 2.2.0-beta used to work fine until PS 7.2.0-preview6 - where it wouldn't work correctly (but only in that PS). Both PowerShell 7 and PowerShell 5.1 worked fine until i updated to beta3. |
Interesting - PSRL does not load for me in PSIC Preview 2021.5.1: What the heck? Somehow I fat fingered some keyboard shortcut that closed this. Sorry, will re-open. @kborowinski What prerelease version of PSRL 2.2.0 are you using? |
This is expected. 2.2.0-beta is incompatible with PS 7.2.0-preview6:
2.2.0-beta3 has just come out and I certainly haven't tested it with the extension, as we ship and support 2.1.0.
If you have anything higher than 2.1.0, then I believe this is also expected, as it's what Rob and I experienced too. 2.2.0 is still in beta and doesn't load properly with the extension, it's incompatible right now. |
@rkeithhill PSReadLine 2.2.0-beta2: Bukem@ATLANTIS > gmo PSReadline; gmo PSReadline | % PrivateData | % PSData
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2.2.0 PSReadline {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLineKeyHandler...}
Key : ProjectUri
Value : https://github.com/PowerShell/PSReadLine
Name : ProjectUri
Key : Prerelease
Value : beta2
Name : Prerelease |
Hey all, I am going to let the bot close this issue. Thanks for beta testing PSReadLine and reporting the incompatibility issue. Fortunately the workaround is to use the latest stable release of PSReadLine. @daxian-dbw and I will coordinate to ensure the stable release of PSReadLine 2.2.0 is compatible and works as expected, and in the next release of the extension (which we don't yet have a date for) we will also lock to the bundled PSReadLine dependency so you're free to beta test PSReadLine without it interfering with the extension. |
Issue Description
I am experiencing a problem with... PSReadline 2.2.0-beta3. Once it's installed it impacts VSCode heavily and it's hard to find out what's wrong. The behavior is as shown in the GIF. After pressing F5, nothing happens. I had to go in, delete every entry of PSReadLine in all PowerShells - and just leave PSReadLine that comes with VSCode. It then works, but I guess this should be investigated why this kills VSCode (both preview/production version).
Keep in mind that 2.2.0-beta 3 seems to be a release that is supposed to fix PSReadLine issue with newest Preview of PowerShell, yet it impacts everything else in VSCode. Doesn't impact normal terminal as far as I can tell.
Attached Logs
1622704773-844d1a68-6356-4a9e-861d-2cec5e5992ed1622704751750.zip
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: