You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell session crashes when ANSI escape codes are used #2176
After running this 5 - 10 times, the PowerShell extension eventually crashes and requires me to manually restart it. So far, I have only tested this on the system configuration included in this bug report.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
Name
Version
Operating System
Darwin x64 18.7.0
VSCode
1.38.0
PowerShell Extension Version
2019.5.0
PowerShell Information
Name
Value
PSVersion
6.2.2
PSEdition
Core
GitCommitId
6.2.2
OS
Darwin 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019, root:xnu-4903.271.2~2/RELEASE_X86_64
Hello Sydney Smith (@SydneyhSmith), yes I did send them to that address on September 15th. I just reproduced the issue again and sent a fresh copy though. Please confirm receipt!
I've tried the PowerShell 7 preview, and even built some content around it, but haven't tried upgrading my development environment yet. Maybe I'll see if I can repro with VSCode devcontainers, although I don't want to introduce too many variables.
Activity
rjmholt commentedon Sep 15, 2019
Trevor Sullivan (@pcgeek86) are you able to include any information about how the extension crashes? Can you please attach your logs.
pcgeek86 commentedon Sep 16, 2019
Rob Holt (@rjmholt) I just sent the diagnostic logs to the
vscode-powershellalias. Here's a screenshot of what I'm seeing when it crashes.SydneyhSmith commentedon Sep 20, 2019
Trevor Sullivan (@pcgeek86) thanks for the screenshot! I did not see the logs searching through our mail, did you send them to vscode-powershell@microsoft.com? Thanks!
pcgeek86 commentedon Sep 23, 2019
Hello Sydney Smith (@SydneyhSmith), yes I did send them to that address on September 15th. I just reproduced the issue again and sent a fresh copy though. Please confirm receipt!
rjmholt commentedon Sep 23, 2019
Ah, now I've seen it with highlighting, my suspicion is that this is a crash I've seen happen with any subexpression in a string
pcgeek86 commentedon Sep 29, 2019
This isn't inactive. It's pending a resolution. The bot shouldn't be closing issues that haven't been addressed.
Have you found anything further with subexpressions in strings Rob Holt (@rjmholt)?
rjmholt commentedon Oct 1, 2019
I just tried making this happen in all the various ways:
I wasn't able to reproduce the issue though.
It might be worth trying out preview and seeing if the problem is fixed there.
From your logs it looks like this occurred while debugging and our next preview release should have some improvements there.
pcgeek86 commentedon Oct 9, 2019
I've tried the PowerShell 7 preview, and even built some content around it, but haven't tried upgrading my development environment yet. Maybe I'll see if I can repro with VSCode devcontainers, although I don't want to introduce too many variables.
rjmholt commentedon Oct 10, 2019
Hmmm, I just looked through the logs again and it looks like the only unhandled error there is a debugger crash.
That debugger crash has been fixed variously in:
masterhas been moved to different, more robust infrastructure)But I do remember seeing a similar crash to the one you report at some point, so let us know if you're hitting it still.