Skip to content

Invoke-ScriptAnalyzer keeps powershell_ise process open #1416

Open
@gpetrou

Description

@gpetrou

Steps to reproduce

Use the following code in PowerShell ISE:
Import-Module "PATH_TO\psscriptanalyzer\1.18.3\PSScriptAnalyzer.psm1"
Invoke-ScriptAnalyzer "PATH_TO\Dummy.psm1"
Dummy just has a:
function DummyFunction() {}
Close the PowerShell ISE.

Expected behavior

The powershell_ise process terminates.

Actual behavior

The powershell_ise process stays open.

Environment data

PSVersion 5.1.14409.1018
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1018
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PSScriptAnalyzer Version 1.18.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions