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.

PowerShell VSCode extension messes up output of Test-NetConnection

See original GitHub issue

Using Test-NetConnection from the terminal and the output is messed up.

I originally filed this issue with VS Code: (https://github.com/microsoft/vscode/issues/114157#issuecomment-765457813 ) That issue has all the details and an MP4 showing the issue. I tried using different rendering but to no avail.

System Details

Using Windows 10, 21292.

VSCode version: 1.52.1 ea3859d4ba2f3e577a159bc91e3074c5d85c0523 x64

VSCode extensions:

AlanWalk.markdown-toc@1.5.6 arcticicestudio.nord-visual-studio-code@0.15.0 bierner.emojisense@0.8.0 bierner.markdown-checkbox@0.1.3 codespaces-contrib.codeswing@0.0.7 DavidAnson.vscode-markdownlint@0.38.0 DotJoshJohnson.xml@2.5.1 GitHub.vscode-pull-request-github@0.22.0 hediet.vscode-drawio@1.2.0 liviuschera.noctis@10.39.1 ms-dotnettools.csharp@1.23.8 ms-vscode-remote.remote-wsl@0.52.0 ms-vscode.powershell@2020.6.0 ms-vscode.powershell-preview@2020.9.0 streetsidesoftware.code-spell-checker@1.10.2 teabyii.ayu@0.20.1 vsls-contrib.codetour@0.0.42 vsls-contrib.gistfs@0.2.1 yzhang.markdown-all-in-one@3.4.0

PSES version:

PowerShell version:

Name Value


PSVersion 7.1.1 PSEdition Core GitCommitId 7.1.1 OS Microsoft Windows 10.0.21292 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0, 7.1.1} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

System Details Output


Issue Description

I am experiencing a problem with output being all messed up.

Expected Behaviour

I expected to see the output rendered the same was as in MS Terminal, the Console, and VS Code without this extension, like this

PS C:\Foo> Test-Connection dc1

   Destination: dc1

Ping Source           Address                   Latency BufferSize Status
                                                   (ms)        (B)
---- ------           -------                   ------- ---------- ------
   1 DC1              fe80::4862:871f:7f1e:6bf        0         32 Success
   2 DC1              fe80::4862:871f:7f1e:6bf        0         32 Success
   3 DC1              fe80::4862:871f:7f1e:6bf        0         32 Success
   4 DC1              fe80::4862:871f:7f1e:6bf        0         32 Success

Actual Behaviour

PS C:\Foo> Test-NetConnection -ComputerName DC1

PS C:\Foo>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                 
PingReplyDetails (RTT) : 0 ms


See the issue details in the VS Code Repo

Attached Logs

none - happy to provide them if needed.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
doctordnscommented, Oct 29, 2021

Having done some preliminary testing, the result are now much improved and inline with expectations.

Thanks.

1reaction
doctordnscommented, Feb 2, 2021

I have an important use case which is I am writing another book on PowerShell. For this, using Out-Host is not really all that helpful as I need to capture what the reader is going to type and see. I want to avoid things like this otherwise helpful workaround for the book. It is hard to explain! But thanks for the suggestion.

For now, I am just not using the Integrated Console and the output is fine. As soon as there is a fix, I can move back to using the Integrated console.

Is there any time line on a fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with Test-NetConnection and suppressing progress bar
However, I can't seem to suppress the progress bar associated with test-netconnection not even the param silentlycontinue works. Any idea?
Read more >
what's that one thing you learned that once you ... - Reddit
r/PowerShell - I am working on a splatting extension for VS Code, what.
Read more >
DSC Resource Kit Release November 2018 - PowerShell
Once you have VSCode open, click Clt+Shift+X to open the extensions marketplace. Next, type PowerShell Preview in the search bar. Click Install ...
Read more >
The PowerShell Scripting and Toolmaking Book
reachable, perhaps by pinging it with Test-NetConnection. ... than PowerShell re-ordering them and messing us up.
Read more >
Windows Server 2019 & PowerShell All-in-One For Dummies
Book 1: Installing and Setting Up Windows Server 2019 ... FIGURE 1-7: After VS Code is installed, you can install the PowerShell extension....
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