-
Notifications
You must be signed in to change notification settings - Fork 510
Running "Set PSScriptAnalyzer Rules" on an untitled file causes PSES to crash #1155
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
Comments
Forget the Now I receive "command 'PowerShell.SelectPSSARules' not found"; I was not in a ps1 editor session. |
Thanks for reporting this. I see what the issue is. As a work-around do not set PSSA rules when you have an unsaved i.e. an |
Outstanding, I was using a New File for testing the rules... thank you very much. |
Reopening since there's a legitmate bug here! Thanks for the report @jkavanagh58 |
If you use fsPath you get a path of "Untitled-1" which doesn't work with PSES IsInMemory method. Fix #1155 where selecting PSSA rules in Untitled-1 file crashes PSES.
OK, I think I've fixed this a better way. |
Issue Description
I am experiencing a problem with selecting PSScriptAnalyzer Rules. I add individual elements and then press confirm. After a brief delay the PowerShell session terminates and I prompted to restart or close. I have read similar issues where it was closed but this is consistent for me.
Now I receive "command 'PowerShell.SelectPSSARules' not found"
Attached Logs
Follow the instructions in the README about capturing and sending logs.
psscriptanlyzertermshell.zip
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: