To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: PowerShell Studio 2020 (64 Bit) v5.7.182
Operating system: Windows 10 Enterprise (64 Bit) v10.0.19041.0
PowerShell version(s): 5.1 & 7.0
*** Please add details and screenshots as needed below. ***
I'm running into an issue where if I type a question mark (alias for where-object) into a script, it instantly causes PowerShell Studio to freeze, and I have to kill it through Task Manager. Upon relaunching, it works as expected until I type a question mark again.
I've tried rebooting and uninstalling/reinstalling to no avail.
"?" in script causes PowerShell Studio to crash
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
"?" in script causes PowerShell Studio to crash
- Attachments
-
- Task Manger showing PowerShell Studio not responding.
- taskman.png (63.22 KiB) Viewed 2230 times
-
- Example of code that crashes PowerShell Studio
- PSStudio_CodeExample.png (21.88 KiB) Viewed 2230 times
Re: "?" in script causes PowerShell Studio to crash
I was not able to reproduce this on our testing environment.
What settings in Options do you have? Is it set to automatically expand aliases or having alias tab expansion enabled
What settings in Options do you have? Is it set to automatically expand aliases or having alias tab expansion enabled
Re: "?" in script causes PowerShell Studio to crash
Automatically expand aliases is not enabled. Tab expansion is enabled. I'm attaching screenshots of my Editor settings.
- Attachments
-
- Options3.png (37.76 KiB) Viewed 2214 times
-
- Options2.png (49.38 KiB) Viewed 2214 times
-
- Options1.png (50.4 KiB) Viewed 2214 times
Re: "?" in script causes PowerShell Studio to crash
Thanks, we will investigate the issue.
One more question: is this happened with any files: .ps1, .psf, project?
Any errors in Event Viewer?
One more question: is this happened with any files: .ps1, .psf, project?
Any errors in Event Viewer?
Re: "?" in script causes PowerShell Studio to crash
There are no Sapien-related errors in the event log.
I did some additional testing, and this happens with .ps1 and .psm1 files. It does not happen with .psf and .psd1 files.
I did some additional testing, and this happens with .ps1 and .psm1 files. It does not happen with .psf and .psd1 files.
Re: "?" in script causes PowerShell Studio to crash
We have been able to reproduce this crash bug and have filed a bug report with the development team. It will be fixed in the next service release.
We were only able to reproduce this when running with V7 and the line with '?' on the last line of the document.
We were only able to reproduce this when running with V7 and the line with '?' on the last line of the document.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: "?" in script causes PowerShell Studio to crash
Please try build 5.8.183 and let me know if this issue is resolved for you.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.