Page 1 of 1

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

Posted: Sun Aug 19, 2018 10:44 pm
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

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

Posted: Mon Aug 20, 2018 6:08 am
by davidc
Thank you for reporting this and we are looking into the issue.

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

Posted: Mon Aug 20, 2018 6:55 am
by davidc
This issue will be resolved in the next service release.

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

Posted: Tue Aug 21, 2018 7:48 pm
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

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

Posted: Tue Oct 09, 2018 9:06 am
by davidc
The build with the fix has been released (v5.5.155).