X Tutup
The Wayback Machine - https://web.archive.org/web/20250225225531/https://github.com/PowerShell/PowerShell/issues/24749
Skip to content
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

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

Open
5 tasks done
matteocoder opened this issue Jan 7, 2025 · 11 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. 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

@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 :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-Cmdlets general cmdlet issues WG-NeedsReview Needs a review by the labeled Working Group
Projects
None yet
Development

No branches or pull requests

8 participants
X Tutup