Automatically expand check box exands non-PS code in PS Studio

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum 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.
User avatar
Ravi Lobo
Posts: 38
Joined: Tue Jul 12, 2016 6:17 am

Automatically expand check box exands non-PS code in PS Studio

Post by Ravi Lobo » Thu Apr 20, 2017 10:57 am

When I opted for "automatically expand aliases" my TSQL code became a victim. Thought, I'd bring it up to the product team.
automaticallyExpandAliases.png
automaticallyExpandAliases.png (20.92 KiB) Viewed 241 times

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Automatically expand check box exands non-PS code in PS Studio

Post by DevinL » Thu Apr 20, 2017 11:10 am

When text is contained within a String it should never be expanded, and I'm currently unable to reproduce this on my end.

Can you please provide the following information? It'd greatly help in our attempt to find a solution for you:

1) Which version of PowerShell Studio do you have installed?

2) Which steps did you take to get the text to expand?

3) Can you provide the script before it was expanded so we can attempt to reproduce it on our end?
DevinL
SAPIEN Technologies, Inc.

User avatar
Ravi Lobo
Posts: 38
Joined: Tue Jul 12, 2016 6:17 am

Re: Automatically expand check box exands non-PS code in PS Studio

Post by Ravi Lobo » Thu Apr 20, 2017 11:44 am

Unfortunately, I'm unable to reproduce the error. One of our scripts was failing, and I saw the incorrectly expanded T-SQL code. This is in PowerShell studio 2016. I have upgraded to 2017 now. May be that fixed it. I'll keep an eye. If i see the exception again, i'll post it here.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Automatically expand check box exands non-PS code in PS Studio

Post by DevinL » Thu Apr 20, 2017 12:46 pm

Glad to hear it's no longer an issue. If it crops up again, be sure to post it here and we'll take care of it as soon as possible.
DevinL
SAPIEN Technologies, Inc.