-
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
Starting PowerShell extension from VSCode results in PSReadLine error #4219
Starting PowerShell extension from VSCode results in PSReadLine error #4219
Comments
Hi, Could you please provide more logging and environment information by following these steps? Thanks! |
Also helpful would be your profile / does it repro if you disable your profiles by setting |
I tracked it down and found it is being caused by code in my profile. Specifically, a piece where I use I did a little more testing and found out it is still reproducible even if you disable profile loading but call the following: Register-EngineEvent -SourceIdentifier ([System.Management.Automation.PSEngineEvent]::OnIdle) -MaxTriggerCount 1 -Action { Write-Verbose "Test" }` I also narrowed it down to changes in v2022.8.5-preview...v2022.9.0-preview by installing each of these Preview versions of the extension, but I don't see a specific commit in the diff that pops out to me as possibly having caused it. |
Oh! Can you test v2022.10.0 and see if it still repros? We actually just fixed some bugs around the |
Yeah still repros. Um, I think we broke it in a different way. |
Hi @cdonnellytx! I think we just got this fixed in the PowerShell Preview for VS Code. Could you verify if this issue still reproduces using the preview extension? |
Looks like that fixed it. The issue does NOT reproduce with v2022.10.2. (The issue still reproduces with v2022.10.1, however.) Thanks for fixing this @andschwa, I really appreciate it! |
Prerequisites
Summary
When starting the PowerShell extension from VSCode, PSReadLine repeats the same error half a dozen times, and during early use of the terminal.
I have filed the issue with PSReadLine, but as the PowerShell extension was last released yesterday, and I cannot reproduce the problem when running from pwsh in VSCode or Windows Terminal, it appears to be an error with the plugin.
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
.ps1
file in an editor tab.)Visuals
Logs
The text was updated successfully, but these errors were encountered: