8000 Out-GridView's text search doesn't work, and pressing enter in the text box closes it. `-PassThru` makes the shell hang · Issue #24749 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Out-GridView's text search doesn't work, and pressing enter in the text box closes it. -PassThru makes the shell hang #24749

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 tasks done
matteocoder opened this issue Jan 7, 2025 · 28 comments · Fixed by #25497
Labels
7.5-regression The issue is a regression WG-Cmdlets general cmdlet issues WG-NeedsReview Needs a review by the labeled Working Group

Comments

@matteocoder
Copy link

Prerequisites

Steps to reproduce

Scenario 1:

  1. start pwsh.exe -noprofile
  2. run ls | ogv
  3. type a search query in the text box at the top
  4. press enter

Scenario 2:

  1. start pwsh.exe -noprofile
  2. run ls | ogv -passthru
  3. type a search query in the text box at the top
  4. press enter

Expected behavior

The search query should filter the results in the Out-GridView window, and pressing enter while focussed on the text box should not close the window.

Actual behavior

Filtering via text search doesn't work, and pressing enter while focussed on the search box closes the window.

Error details

No response

Environment data

PSVersion                      7.5.0-rc.1
PSEdition                      Core
GitCommitId                    7.5.0-rc.1
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

lsogv
lsogvpass

@matteocoder matteocoder added the Needs-Triage The issue is new and needs to be triaged by a work group. label Jan 7, 2025
@237dmitry
Copy link

Is the Out-GridView the part of pwsh 7+ ? Imho this is from deep past Windows Powersell (5.1)

@matteocoder
Copy link
Author

@237dmitry thank you for your reply. Yes, Out-GridView works in powershell 7 on windows. In fact, version 7.4.6 doesn't exhibit this bug.

@237dmitry
Copy link

I would wait for the release, because the release candidate does not take into account all aspects.

In my opinion, it is time to throw out all these atavisms of the pasts, like -ShowWindow and Out-GridView. This is beyond cross-platform

@matteocoder
Copy link
Author

@237dmitry I'd like to switch to Out-ConsoleGridView myself, but it still doesn't have the ability to customise colours AFAIK, and development seems to have stalled.

@237dmitry
Copy link

and development seems to have stalled.

In my opinion, this is being developed by the Windows PowerShell team, not PowerShell 7.

The main problem with productive development of PowerShell 7, in my opinion only, is the difficulty of backward compatibility with Windows PowerShell. I don't know the plans for the future and I don't understand why two entities are needed that gradually, with each new release, lose connection with each other even at the syntax level. This brings confusion in general.

@SeeminglyScience SeeminglyScience added WG-NeedsReview Needs a review by the labeled Working Group WG-Cmdlets general cmdlet issues labels Jan 8, 2025
@fMichaleczek
Copy link
Contributor

@237dmitry Issues are for reporting bugs, if you want to give your conceptual opinion on WPF, open a discussion.

@iSazonov
Copy link
Collaborator

Possible fix #14054 (comment)

@matteocoder
Copy link
Author

@iSazonov That's great! Thank you.

@vdepagter
Copy link
vdepagter commented Feb 12, 2025

Ooh no, they took my GridView away. It's insecure they say! ;)
If I understand correctly, a fix could only come in the form of a PowerShell update.

@tsubotitsch
Copy link

In the release of 7.5.0 it is even worse.
If you select something under "Add criteria" and press "Add", the window closes immediately without an error message.
e.g. Get-Process | Out-gridView

8000

@fasteiner
Copy link

In the release of 7.5.0 it is even worse. If you select something under "Add criteria" and press "Add", the window closes immediately without an error message. e.g. Get-Process | Out-gridView

I expirienced the same behaviour in PowerShell 7.5.0 on Windows 11 :/

@amaiman
Copy link
amaiman commented Mar 7, 2025

I'm encountering the same issue on PowerShell 7.5.0 on Windows 10. Adding criteria or pressing enter after entering text in the Out-GridView text box results in the GridView window closing.

Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

@yllekz
Copy link
yllekz commented Mar 12, 2025

Can confirm this is happening. Need this fixed - the window and its entire UI is performing incredibly erratically under pwsh but is fine under Windows PowerShell.

@ThatDeaf-ITGuy
Copy link
ThatDeaf-ITGuy 8000 commented Mar 14, 2025

Just ran into this issue on my work laptop running Windows 11 Enterprise 23H2.

OsName                     : Microsoft Windows 11 Enterprise
OsHardwareAbstractionLayer : 10.0.22621.2506
WindowsBuildLabEx          : 22621.1.amd64fre.ni_release.220506-1250


Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Image

@superfliege
Copy link
superfliege commented Mar 19, 2025

The error also occurs on your side. The search is no longer functional.

OsName : Microsoft Windows 11 Enterprise
OsArchitecture : 64-Bit
WindowsVersion : 2009
WindowsBuildLabEx : 26100.1.amd64fre.ge_release.240331-1435

Key : PSVersion
Value : 7.5.0
Name : PSVersion

@aavdberg
Copy link
Contributor
aavdberg commented Apr 1, 2025

Same problem here

Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

@aavdberg
Copy link
Contributor
aavdberg commented Apr 1, 2025

@SteveL-MSFT Will this be solved or is there a workaround till it's fixed?

8000

@ubidev
Copy link
ubidev commented Apr 3, 2025

I have the same problem on PowerShell 7.5.0 on Windows 11 yet the out-gridview of poweshell 5 on the same machine works fine though in the meantime

@jhoneill
Copy link
jhoneill commented Apr 3, 2025

Almost opened a duplicate , it's hitting me on 7.5.0

@Vincent-SPC
Copy link

Same problem here, except the command line does not return and I have to kill the whole powershell proces

@sba923
Copy link
Contributor
sba923 commented Apr 9, 2025

Out-GridView must be cursed. Or some black swan.

This didn't get fixed in 7.6.0-preview.4 😭

@xyzzer
Copy link
xyzzer commented Apr 10, 2025

Seems like this has been broken for years if the issue is with BinaryFormatter!? And I was just about ready to switch from Windows PowerShell to PS Core. This should be a release blocker, but perhaps the team doesn't care about PowerShell Core working on Windows at all?

@iSazonov
Copy link
Collaborator

Seems like this has been broken for years if the issue is with BinaryFormatter!?

No, .Net team removed BinaryFormatter only in last version.

I pointed how to fix the issue if somebody want contribute.

@derkveenhof
Copy link

Common guys, please fix this ! Really annoying that filtering in the Out-GridView form does not work anymore. If its based on obsolete code, just make something new and modern.

@guyrleech
Copy link

Ogv is used a lot for troubleshooting , quick examination of data and a quick gui chooser - I use it many times a day and am now stuck on 7.4.7

@iSazonov
Copy link
Collaborator

Everyone agrees that it must be recovered. There is no one who would do this job.

@God-damnit-all
Copy link
Contributor

Marking 7.5 as stable before fixing this seems like an odd decision.

@daxian-dbw daxian-dbw added the 7.5-regression The issue is a regression label May 9, 2025
Copy link
Contributor
microsoft-github-policy-service bot commented May 13, 2025

📣 Hey @@matteocoder, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage The issue is new and needs to be triaged by a work group. label May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.5-regression The issue is a regression WG-Cmdlets general cmdlet issues WG-NeedsReview Needs a review by the labeled Working Group
Projects
None yet
0