Skip to content

PowerShell Extension Terminal does not return commands back to display #4204

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

Closed
5 of 6 tasks
baywack opened this issue Oct 11, 2022 · 5 comments
Closed
5 of 6 tasks
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@baywack
Copy link

baywack commented Oct 11, 2022

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Unable to determine the root cause. However it happens numerous times daily. PowerShell terminal will not return value back to display. Restarting VSCode fixes the issue until the issue appears again.

When the issue happens here is what is noted (any command in terminal does this).

Example
C:\users...\scripts> $PSVersionTable
returns nothing back to display

Example
C:\users...\scripts> $PSVersionTable | write-host
System.Collections.Hashtable
Write-host returns data back to terminal display - in this example "System.Collections.Hashtable"

PowerShell Version

Only way I was able to run this command was using out-gridview

PSVersion - 5.1.19041.1682
PSEdition - Desktop
PSCompatibleVersions - {1.0, 2.0, 3.0, 4.0...}
BuildVersion - 10.0.19041.1682
CLRVersion - 4.0.30319.42000
WSManStackVersion - 3.0
PSRemotingProtocolVersion - 2.3
SerializationVersion - 1.1.0.1

Visual Studio Code Version

1.71.2
74b1f979648cc44d385a2286793c226e611f59e7
x64

Extension Version

Steps to Reproduce

Unable to determine the root cause. However it happens numerous times daily. PowerShell terminal will not return value back to display. Restarting VSCode fixes the issue until the issue appears again.

Visuals

No response

Logs

No response

@baywack baywack added the Issue-Bug A bug to squash. label Oct 11, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Oct 11, 2022
@andyleejordan
Copy link
Member

@SeeminglyScience this looks like #3991

@andyleejordan
Copy link
Member

@baywack can you use PowerShell 7? If this is the same as the issue I just linked, it's only affecting PowerShell 5.1.

@baywack
Copy link
Author

baywack commented Oct 11, 2022

@andschwa I can confirm PSVersion 7.2.6 doesn't seem to have the same issue so far today. I can confirm that running as admin or regular user - same results as #3991. Assuming it's the same bug looking through the notes.

@andyleejordan
Copy link
Member

Thanks for the confirmation @baywack, I'm going to mark this as a duplicate. Appreciate it!

@andyleejordan andyleejordan added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Oct 12, 2022
@ghost
Copy link

ghost commented Oct 13, 2022

This issue has been marked as duplicate and has not had any activity in a day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Oct 13, 2022
@andyleejordan andyleejordan mentioned this issue May 16, 2023
6 tasks
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants