"Find all references" string expansion and variable delineation with braces

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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
pHy_ID
Posts: 3
Joined: Wed Mar 21, 2018 3:54 pm

"Find all references" string expansion and variable delineation with braces

Post by pHy_ID » Sun Aug 19, 2018 10:44 pm

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: SAPIEN PowerShell Studio 2018, version 5.5.154 (affects recent versions)
32 or 64 bit version of product: 64 bit
Operating system: Windows 10 Version 1803
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

Greetings PowerShell Studio team,

Firstly, I'm a long time user/fan and first time poster. :D

The issue occurs when a variable is double-clicked or when trying to "Find All References...", it does not find the references that are the string expansions using the delineation with braces.
The issue started some versions back and I had been living with the issue hoping it would be remedied/reverted with a version update.

I suppose an example would be the best way to explain myself. Please refer the below example code:
  1. $test = "Bet"
  2.  
  3. $tester = "Better"
  4.  
  5. Write-Host "$test $tester ${test}er"

If either of the $test selected, it will find the other but not the ${test}.
If the ${test} is selected, then all three references will be found.

In the past, all references were found whether or not they were delineated with braces or not. I don't remember which version it stopped working.

To reproduce, please copy the code into PowerShell Studio and take turns double clicking (or "Find All References...") on $test and ${test}.

Thank you!

Regards,
Paul

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

Re: "Find all references" string expansion and variable delineation with braces

Post by davidc » Mon Aug 20, 2018 6:08 am

Thank you for reporting this and we are looking into the issue.
David
SAPIEN Technologies, Inc.

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

Re: "Find all references" string expansion and variable delineation with braces

Post by davidc » Mon Aug 20, 2018 6:55 am

This issue will be resolved in the next service release.
David
SAPIEN Technologies, Inc.

User avatar
pHy_ID
Posts: 3
Joined: Wed Mar 21, 2018 3:54 pm

Re: "Find all references" string expansion and variable delineation with braces

Post by pHy_ID » Tue Aug 21, 2018 7:48 pm

Hey David,
Thank you very much for your quick response! And I'll look forward to the next service release~ :D :P

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

Re: "Find all references" string expansion and variable delineation with braces

Post by davidc » Tue Oct 09, 2018 9:06 am

The build with the fix has been released (v5.5.155).
David
SAPIEN Technologies, Inc.