question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
daxian-dbwcommented, Apr 17, 2020

@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.

0reactions
TylerLeonhardtcommented, Apr 20, 2020

Still should leave this open because we should fix the issue where ErrorView is concise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is Powershell ISE showing errors that ... - Stack Overflow
They both work but ISE shows errors that the console does not. Why? The code is: git push origin master Write-Host "lastExitCode: $lastExitCode...
Read more >
PowerShell editing with Visual Studio Code
CodeLenses are a VS Code feature to provide actionable, contextual information that is displayed within the source code. CodeLens support was ...
Read more >
Error handling in Windows Forms GUIs with PowerShell
If an error occurs in a WinForms GUI PowerShell script, you can display an error message in a status bar.
Read more >
PowerTip: Read Text File in Raw Mode with PowerShell
How can I use Windows PowerShell to read a text file as a single line of text, not as an array of strings...
Read more >
Known issues with PaperCut MF, NG, Hive, Pocket and ...
When trying to access the PaperCut Admin console, under certain circumstances the following message is shown “An error occurred starting the PaperCut MF ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found