Skip to content

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

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```

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions