Extra parenthesis auto-inserted on Round function

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 SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
JohnMoe
Posts: 10
Joined: Sun Apr 15, 2018 11:36 pm

Extra parenthesis auto-inserted on Round function

Post by JohnMoe » Mon Jun 10, 2019 9:43 pm

Product, version and build: PowerShell Studio 2019 5.6.164
32 or 64 bit version of product: 64-bit
Operating system:
32 or 64 bit OS: 64-bit Windows 10 build 1803

When using the Round function from System.Math, PowerShell Studio inserts a double ((, like this:

Code: Select all

[System.Math]::Round((
instead of

Code: Select all

[System.Math]::Round(

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Extra parenthesis auto-inserted on Round function

Post by davidc » Tue Jun 11, 2019 7:54 am

Are you typing ( when the the PrimalSense window is open? If so, this issue should be resolved in the next service release.
David
SAPIEN Technologies, Inc.

User avatar
JohnMoe
Posts: 10
Joined: Sun Apr 15, 2018 11:36 pm

Re: Extra parenthesis auto-inserted on Round function

Post by JohnMoe » Tue Jun 11, 2019 2:56 pm

Hi David,

I just checked, and yes, with the PrimalSense drop-down open, it puts two in, but if I press ESC to make it go away, it only inserts one. Glad to hear you're already on it. :-)

There's a more annoying issue in PSS not respecting the "Place open brace on new line" that I have read in another post here is also going to be fixed in the next release. Any idea how soon that release might be available?

Cheers,

John Moe

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Extra parenthesis auto-inserted on Round function

Post by davidc » Tue Jun 11, 2019 3:32 pm

We are working on getting a build out as soon as possible.
David
SAPIEN Technologies, Inc.

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Extra parenthesis auto-inserted on Round function

Post by davidc » Fri Jun 14, 2019 8:34 am

We released a new service build v5.6.165. Please let us know if the issue is resolved.
David
SAPIEN Technologies, Inc.

User avatar
JohnMoe
Posts: 10
Joined: Sun Apr 15, 2018 11:36 pm

Re: Extra parenthesis auto-inserted on Round function

Post by JohnMoe » Tue Jul 02, 2019 5:16 pm

The new version has indeed sorted this issue for me, thanks. :-)