Skip to content

The scope number '4' exceeds the number of active scopes.Β #2

@benh57

Description

@benh57

Running the trap sample code on the main page produces this error. To fix i added a -1 in the for loop, but that may not be the proper fix.

Parameter name: scopeID
Actual value was 4.
At RavenPowerShell.psm1:138 char:39
+                 $scopeVariablesList = Get-Variable -Scope $i
+                                       ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Variable], PSArgumentO
   utOfRangeException
    + FullyQualifiedErrorId : ArgumentOutOfRange,Microsoft.PowerShell.Commands
   .GetVariableCommand```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions