Page 1 of 1

Find All References Doesn't Work When Called From Functions Window

Posted: Tue Oct 09, 2018 2:39 pm
by pdearmen
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: PowerShell Studio 2018 (64 Bit)
Build: v5.5.155
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0


*** Please add details and screenshots as needed below. ***

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Setup:
I have a script with multiple script blocks/functions in it. When I right click on a function/script block in the code editor and select to find all references it works properly. This is shown below. I right clicked on $citrixScriptBlock on line 3107 and selected find all references.
FindAllReferencesWorks.PNG
FindAllReferencesWorks.PNG (96.36 KiB) Viewed 1971 times
If I do the same thing from the Functions window on the right-hand side it shows a line number of 0 - this happens for both script blocks and functions.
FindAllReferencesDoesNotWorks.PNG
FindAllReferencesDoesNotWorks.PNG (89.78 KiB) Viewed 1971 times
This is not a disaster level bug but it caught me by surprise the first time I encountered it :D

I also took a video of the issue and uploaded it here on youtube: https://youtu.be/W016jWQVhQg

Re: Find All References Doesn't Work When Called From Functions Window

Posted: Tue Oct 09, 2018 3:06 pm
by davidc
We are investigating the issue and thank you for reporting this.

Re: Find All References Doesn't Work When Called From Functions Window

Posted: Tue Oct 09, 2018 3:24 pm
by davidc
We found the problem and the issue will be resolved in the next service release.