Skip to content

Default reference assembly count is incorrect, causing debug assert #17384

@PaulHigin

Description

@PaulHigin

Prerequisites

Steps to reproduce

  1. Build a debug version from the current master branch.
  2. Import Pester
    PS> Import-Module -Name Pester -max 4.9.9

Expected behavior

Module is imported.

Actual behavior

Debug assert:
defaultRefAssemblies was resized because of insufficient initial capacity! A capacity of 160 is required.

The default ref assemblies count is now 161, triggering the assert.

Error details

Either the expected number of default ref assemblies needs to be adjusted, or better yet just remove the assert.

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.0-preview.3
PSEdition                      Core
GitCommitId                    7.3.0-preview.3-120-ge7a4b7ddaa4634ea61e8acce8e2d491090aa965f
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-FixedThe issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions