-
Notifications
You must be signed in to change notification settings - Fork 510
PowerShell session crashes when ANSI escape codes are used #2176
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
Comments
@rjmholt I just sent the diagnostic logs to the |
@pcgeek86 thanks for the screenshot! I did not see the logs searching through our mail, did you send them to [email protected]? Thanks! |
Hello @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! |
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 |
This issue is being closed as inactive, if this issue is still occurring it will be re-opened |
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 @rjmholt? |
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. |
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. |
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:
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. |
Issue Description
I'm trying to use ANSI escape codes in Visual Studio Code, and experiencing frequent crashes of the extension.
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
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: