PowerShell / PowerShell/PSScriptAnalyzer
Invoke-ScriptAnalyzer keeps powershell_ise process open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 414
- Avg merge
- 13h 1m
- Merged PRs (30d)
- 2
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in PowerShell ISE using PSScriptAnalyzer.psm1 and the minimal Dummy.psm1 example. Start by tracing Invoke-ScriptAnalyzer and the resources it leaves active, then verify that closing ISE terminates powershell_ise. Done means the process exits normally after analysis, with regression coverage for this scenario if the repository provides a suitable test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100