10000 Get-Help reports multiple versions of conceptual help topics for side-by-side modules · Issue #9215 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Get-Help reports multiple versions of conceptual help topics for side-by-side modules #9215

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
mklement0 opened this issue Mar 24, 2019 · 1 comment
Labels
Issue-Discussion the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif Resolution-Duplicate The issue is a duplicate. WG-Interactive-HelpSystem help infrastructure and formatting of help

Comments

@mklement0
Copy link
Contributor

If you have 2 versions of a module installed side by side, the conceptual help topics from both versions are reported by Get-Help, in list form.

Not only is it hard to tell which is which, it is non-obvious how to display their content.

As an aside: There is currently no way to ask for a given module version's help specifically.

Steps to reproduce

Run the following Pester test:

Note: This test installs the stable version of PSReadLine (1.2) alongside the the 2.0.0-beta3 version that ships with PowerShell Core 6.2.0-rc.1 with -Scope CurrentUser.

Describe "Duplicate conceptual help topic test." {
  BeforeAll {
    # Install the stable version of PSReadLine (1.2) alongside the 
    # the 2.0.0-beta3 version that ships with PowerShell Core 6.2.0-rc.1
    Install-Module -Scope CurrentUser PSReadLine -Force 
  }
  It "Only 1 about_psreadline topic is found." {
    (Get-Help about_PSReadLine | Measure-Object).Count | Should -Be 1
  }
}

Expected behavior

The test should pass.

Actual behavior

The test fails:

[-] Only 1 about_psreadline topic is found. 80ms
Expected 1, but got 2.

Environment data

PowerShell Core 6.2.0-rc.1
@mklement0 mklement0 added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label Mar 24, 2019
@iSazonov iSazonov added WG-Interactive-HelpSystem help infrastructure and formatting of help Issue-Discussion the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif and removed Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a labels Mar 24, 2019
@iSazonov iSazonov added the Resolution-Duplicate The issue is a duplicate. label Nov 30, 2019
@iSazonov
Copy link
Collaborator

Continue in #11205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Discussion the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif Resolution-Duplicate The issue is a duplicate. WG-Interactive-HelpSystem help infrastructure and formatting of help
Projects
None yet
Development

No branches or pull requests

2 participants
0