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

WARNING: [GetHelpFileName] Cannot find module for command with ConfigMgr module #568

Open
3 tasks done
aczechowski opened this issue May 31, 2022 · 4 comments
Open
3 tasks done

Comments

@aczechowski
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

  1. Install Configuration Manager console.
  2. Install PlatyPS 0.14.2
  3. Import-Module ConfigurationManager
  4. Import-Module platyps
  5. Splat parameters:
    $parameters = @{
    Path = 'c:\Users\aaroncz\git\sccm-docs-powershell\sccm-ps\ConfigurationManager'
    LogPath = 'c:\Users\aaroncz\platyps\ConfigurationManager\20210727.txt'
    RefreshModulePage = $true
    AlphabeticParamsOrder = $true
    UpdateInputOutput = $true
    ExcludeDontShow = $true
    Encoding = [System.Text.Encoding]::UTF8
    }
  6. Update-MarkdownHelpModule @parameters

Expected behavior

PlatyPS runs normally for cmdlets in both AdminUI.PS.dll (~1040 cmdlets) and AdminUI.PS.psm1 (~130 cmdlets)

Actual behavior

For all ~130 cmdlets in AdminUI.PS.psm1, PlatyPS returns the following error:

`WARNING: [GetHelpFileName] Cannot find module for command 'Remove-CMUserCollectionQueryMembershipRule'`

And it removes the **external help file** value from the cmdlet article metadata

Reference #528, which was closed when this issue was supposed to be fixed in 0.14.2.

Error details

No response

Environment data

PS C:\WINDOWS\system32>  get-module platyPs -ListAvailable


    Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     0.14.2     platyPS                             {New-MarkdownHelp, Get-MarkdownMetadata, New-ExternalHelp,...
Script     0.14.0     platyPS                             {New-MarkdownHelp, Get-MarkdownMetadata, New-ExternalHelp,...


PS C:\WINDOWS\system32> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.22000.653
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.653
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visuals

Example of diff in VSCode showing external help file value change:

image

@aczechowski aczechowski added the Needs-Triage The issue is new and needs to be triaged by a work group. label May 31, 2022
@theJasonHelmick theJasonHelmick removed the Needs-Triage The issue is new and needs to be triaged by a work group. label Jun 20, 2022
@theJasonHelmick theJasonHelmick self-assigned this Jun 20, 2022
@theJasonHelmick
Copy link
Collaborator

Thanks @aczechowski for reporting this. We are investigating why the original fix #542 is not working in this situation.

@theJasonHelmick theJasonHelmick added this to the 2.0-Preview2 milestone Jun 20, 2022
@theJasonHelmick
Copy link
Collaborator

@aczechowski - Can you supply us with the module manifest for Config manager - AdminUI.PS.PSD1.

@adityapatwardhan
Copy link
Member

@aczechowski We tried to repro the issue using a test environment provided by Megan. We could not reproduce the problem.

Please ensure the loaded version of platyPS is 0.14.2 and let us know if you still have the issue.

@sdwheeler
Copy link
Collaborator

We need to validate the new version against the SCCM modules.

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

No branches or pull requests

4 participants