-
Notifications
You must be signed in to change notification settings - Fork 499
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
Errors in Powershell integrated console displayed "raw", not readable #2640
Errors in Powershell integrated console displayed "raw", not readable #2640
Comments
@AFontenoy what OS and version are you on? |
This is a duplicate of #2637 (comment) |
For some reason, the VSCode terminal doesn't handle the VT100 escape sequences on the version of OS you are using ... |
@TylerLeonhardt Just to clarify that this is not an exact duplicate. The missing of VT100 support affect the default error view in PS7. Updating on PSReadLine doesn't help with it. |
Good point @daxian-dbw . @AFontenoy can you open a normal PowerShell 7 console (outside of VS Code) and see if this repros? |
@TylerLeonhardt It's on Windows Server 2008 R2 Std. |
@daxian-dbw I set $ErrorView = "NormalView" and voila ! It looks as before. |
@TylerLeonhardt In normal Powershell 7 console the problem is not showing. |
Still should leave this open because we should fix the issue where ErrorView is |
On one of my computers, when I run powershell code using VS Code, errors in integrated console are hardly readable.
It doesn't seem parsed at all.
It look like this :
PS D:\SharePoint\_Git_Repos> d:\SharePoint\_Git_Repos\Sharepoint\Scripts\test.ps1 [91mfoo: [0mD:\SharePoint\_Git_Repos\Sharepoint\Scripts\test.ps1:1:1 [96mLine | [96m 1 | [0m [96mfoo[0m [96m | [91m ~~~ [91m[96m | [91mThe term 'foo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was [96m | [91mincluded, verify that the path is correct and try again.
I think that happend after installing Powershell 7, but I'm not shure.
I tryed to uninstall everything but Powershell with no luck.
Any ideas ?
The text was updated successfully, but these errors were encountered: