Skip to content
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

Select PSScriptAnalyzer Rules terminating PowerShell session #400

Closed
LethiferousMoose opened this issue Dec 19, 2016 · 2 comments
Closed
Assignees
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@LethiferousMoose
Copy link

Please fill in these details so that we can help you!

System Details

  • Operating system name and version:
  • VS Code version: 1.8.0
  • PowerShell extension version: 0.8.0
  • Output from $PSVersionTable:
    PSVersion 5.0.10240.17146
    WSManStackVersion 3.0
    SerializationVersion 1.1.0.1
    CLRVersion 4.0.30319.42000
    BuildVersion 10.0.10011.16384
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    PSRemotingProtocolVersion 2.3

Issue Description

When launching Select PSScriptAnalyzer Rules via the command pallet right
after opening VS Code it causes the current PowerShell session to crash. If I wait a few minutes after this and try again it works without issue.

Attached Logs

1482161990-77f69162-77ea-4364-b2e9-db8739fcd2f41482161989523.zip

powershell-crash

@daviwil
Copy link
Contributor

daviwil commented Dec 19, 2016

Thanks for the report! I see the problem, looks like we're asking for the available PSScriptAnalyzer rules while Script Analyzer is already running so it throws an exception. Need to find a good way to deal with this.

@daviwil
Copy link
Contributor

daviwil commented Dec 21, 2016

@daviwil daviwil closed this as completed Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

3 participants