Skip to content

Errors in Powershell integrated console displayed "raw", not readable #2640

Closed
PowerShell/PowerShellEditorServices
#1264
@AFontenoy

Description

@AFontenoy

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions