Content-Length: 236244 | pFad | https://github.com/PowerShell/PowerShell/issues/25556

76 `Show-Command` crashes when clicking "Show Details" on a command · Issue #25556 · PowerShell/PowerShell · GitHub
Skip to content

Show-Command crashes when clicking "Show Details" on a command #25556

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

Open
5 tasks done
daxian-dbw opened this issue May 13, 2025 · 0 comments · May be fixed by #25557
Open
5 tasks done

Show-Command crashes when clicking "Show Details" on a command #25556

daxian-dbw opened this issue May 13, 2025 · 0 comments · May be fixed by #25557
Assignees
Labels
7.4-regression Regression in 7.4 Needs-Triage The issue is new and needs to be triaged by a work group.

Comments

@daxian-dbw
Copy link
Member

Prerequisites

Steps to reproduce

Repro steps

  1. Run Show-Command in PowerShell 7.4
  2. Click a command
  3. Click "Show Details" (show in the screenshot below)

Image

Reason

The GetImportModuleCommand method was removed in the PR #20593 (see https://github.com/PowerShell/PowerShell/pull/20593/files#diff-6049789826a31f0b0d8365b339ae7b8fdd8c977fec824cb44397f744adeba639L499).
However, the Show-Command depends on this method to work for the "Show Details" button.

Expected behavior

No crash, no freezing. The details of the command will be shown.

Actual behavior

The GUI freezes and a NullReferenceException is thrown from `Show-Command` in PowerShell.

Error details

PS:10> Show-Command
Show-Command: Object reference not set to an instance of an object.

Environment data

PS:11> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.7
PSEdition                      Core
GitCommitId                    7.4.7
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

No response

@daxian-dbw daxian-dbw added Needs-Triage The issue is new and needs to be triaged by a work group. 7.4-regression Regression in 7.4 labels May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.4-regression Regression in 7.4 Needs-Triage The issue is new and needs to be triaged by a work group.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/PowerShell/PowerShell/issues/25556

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy