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

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 5 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
pHy_ID
Posts: 4
Last visit: Mon May 20, 2019 1:22 am

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

Post by pHy_ID »

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. $tester = "Better"
  3. 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: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

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

Post by davidc »

Thank you for reporting this and we are looking into the issue.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

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

Post by davidc »

This issue will be resolved in the next service release.
David
SAPIEN Technologies, Inc.
User avatar
pHy_ID
Posts: 4
Last visit: Mon May 20, 2019 1:22 am

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

Post by pHy_ID »

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: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

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

Post by davidc »

The build with the fix has been released (v5.5.155).
David
SAPIEN Technologies, Inc.
This topic is 5 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.