Skip to content

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

Closed

Description

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

Activity

  1. added
    Issue-Question
    on Mar 24, 2019
  2. added
    WG-Interactive-HelpSystem
    Issue-Discussion
    and removed
    Issue-Question
    on Mar 24, 2019
  3. iSazonov commented on Nov 30, 2019

    @iSazonov
    Collaborator

    Continue in #11205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-DiscussionResolution-DuplicateWG-Interactive-HelpSystem

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions