Page 1 of 1

Class Browser not display contents

Posted: Fri Aug 10, 2018 8:41 am
by clum09
Product, version and build: 7.4.115
32 or 64 bit version of product: 64-bit
Operating system: Windows 10
32 or 64 bit OS: 64 bit

This new version of PrimalScript periodically fails to display the function names in the editor's Class Browser pane when I open and work on more than one script in the editor. This is very annoying when I need to jump to a function to check out some code. This behavior does not seem to happen every time, but it happens randomly throughout the day when I work on multiple scripts.

I will provide a screen shot when this happens next time.

This behavior has never happened in PowerShell Studio with more than five scripts in the editor for some reason.

Re: Class Browser not display contents

Posted: Tue Aug 14, 2018 7:45 am
by Alexander Riedel
PowerShell Studio and PrimalScript are two entirely different products, so there is no correlation on that.
I'll have to check on that. When that happens, check if the function combobox on top of any of these files is empty too.

Re: Class Browser not display contents

Posted: Tue Aug 14, 2018 2:00 pm
by clum09
I just took a screen shot of PrimalScript not showing anything in the Class Browser pane. I opened two scripts in PrimalScript, and when I tried to check the function names from the Class Browser pane, nothing showed up. See the attachment below. This behavior is very annoying and is happening randomly.
ClassBrowsers.jpg
ClassBrowsers.jpg (152.07 KiB) Viewed 4725 times

Re: Class Browser not display contents

Posted: Tue Aug 14, 2018 2:16 pm
by clum09
After I had closed both scripts, and then I re-opened them in PrimalScript again, the Class Browser pane only shows the function names from one of the scripts - no function names showing for the second scripts. See the screen shot below.
ClassBrowsers2.jpg
ClassBrowsers2.jpg (133.2 KiB) Viewed 4721 times
It only shows function names for Setup.ps1 and not for DeployVM.ps1 script. When I expanded the Globals folder in the pane, I only saw the function names from Setup.ps1 script.

Re: Class Browser not display contents

Posted: Tue Aug 14, 2018 4:12 pm
by mxtrinidad
I was able to reproduce the issue. It's sporadic but it those happen.
We'll have our developer take a look at it and we'll get back as soon as possible.

Thanks for posting the issue!
PrimalScript_ClassBrowser_01_2018-08-14_19-08-21.jpg
PrimalScript_ClassBrowser_01_2018-08-14_19-08-21.jpg (135.04 KiB) Viewed 4710 times

Re: Class Browser not display contents

Posted: Tue Aug 14, 2018 9:27 pm
by Alexander Riedel
It’s not helpful to see screenshots where it fails. It’s not like we don’t believe it.
Please refer to my question above about the navigation bar.
Also, is it possible to have the scripts in question? Generally when no navigation elements are displayed it is because the parser fails somewhere with the code

Re: Class Browser not display contents

Posted: Wed Aug 15, 2018 10:28 am
by clum09
Here is another example of the Class Browser pane not showing the function names of the scripts currently opened in PrimalScript.
ClassBrowsers3.jpg
ClassBrowsers3.jpg (299.82 KiB) Viewed 4669 times
The Class Browser pane only shows the functions from Get-DeployVMXMLData.ps1 script, but failed to show the functions from DeployVM.ps1 script. This is very annoying, and it is difficult to use this editor to write scripts when I need to look up functions within the script.

Re: Class Browser not display contents

Posted: Wed Aug 15, 2018 10:56 am
by mxtrinidad
Just an FYI

We can reproduce the issue and will be fix on our next product.

Thanks again for the post!

Re: Class Browser not display contents

Posted: Wed Aug 15, 2018 11:07 am
by Alexander Riedel
As Max pointed out we isolated the issue. It would be extremely helpful if in the future you would answer the questions we post. It will make things go faster. Thanks.