-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoke-ScriptAnalyzer keeps powershell_ise process open #1416
Comments
I can confirm, a simpler repro is to just execute Investigation: I tried different versions of PSSA and it seems this behaviour started first in 1.18.1 (i.e. the bug is not present in |
I use the ISE when developing scripts and it is annoying having to manually kill the process. |
@gpetrou Yes, switching to VS-Code would help, this guide should help you: https://docs.microsoft.com/en-us/powershell/scripting/components/vscode/how-to-replicate-the-ise-experience-in-vscode?view=powershell-7 |
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
The text was updated successfully, but these errors were encountered: