bug in PS Studio

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
Domtar
Posts: 133
Last visit: Mon Mar 11, 2024 5:38 am
Has voted: 2 times

bug in PS Studio

Post by Domtar »

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: latest
32 or 64 bit version of product: 64-bit
Operating system: win 10
32 or 64 bit OS: 64-bit

*** Please add details and screenshots as needed below. ***

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

looks like there is a bug with my PowerShell studio.

when I write [system.io.directory]::createdirectory(, as soon as the ( character is typed, my PS Studio stops responding for a moment and then an error appears: Unhandled Exception: Array dimensions exceeded supported range

this happens right after typing the character, I don't even hit enter or anything.

thank you!
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Re: bug in PS Studio

Post by Alexander Riedel »

" 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. "
You wrote: Product, version and build: latest

Please provide the actual version number. In addition, since we cannot readily reproduce this, please provide some context. Maybe you can attach the actual script?
Thank you!
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Domtar
Posts: 133
Last visit: Mon Mar 11, 2024 5:38 am
Has voted: 2 times

Re: bug in PS Studio

Post by Domtar »

5.4.145
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: bug in PS Studio

Post by davidc »

I was finally able to reproduce this bug and it will be resolved in the next service release. The exception occurs if the method is on the last line of the document.

To get around the issue, you can enable Options->Editor->Auto-insert closing parenthesis option or make sure you have an extra line at the end.

Thank you for reporting the issue.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.