Page 1 of 1

PrimalSense not finding modules in newest version

Posted: Thu Aug 23, 2018 8:32 am
by dkkazak
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: PowerShell Studio 2018 v5.5.154
32 or 64 bit version of product: 64
Operating system: Windows 10
32 or 64 bit OS: 64

*** Please add details and screenshots as needed below. ***
Since upgrading yesterday to this version, it is only showing me a limited subset of my PowerShell modules. I have gone into the cache editor and selected all of the modules I want to see as shown here:
[
Sapien1.png
Sapien1.png (39.1 KiB) Viewed 3395 times
When I go to look at available modules, most do not show up:
Sapien2.png
Sapien2.png (19.37 KiB) Viewed 3395 times
I have deleted my cache and refreshed my cache and it makes no difference.

Re: PrimalSense not finding modules in newest version

Posted: Thu Aug 23, 2018 12:01 pm
by davidc
Please answer the following questions, so that we can help you further:

1. Verify that you have the V5 - 64 bit platform selected. You may only get a subset if you have V2 or 32 bit selected.

2. If you have the correct platform and the object browser is not displaying all the modules, then it is possible something is failing in the caching process. Please zip and upload the contents of the following folder:

C:\Users\(username)\AppData\Roaming\SAPIEN\CachedData 2018\Local Machine

You can attach the zip file to this topic or upload it here:

https://www.sapien.com/support/upload

Note: The modules must be discoverable folder (in a PSModulePath) in order to cache it.

3. When using the CacheEditor, be sure to press the Build button otherwise the changes will not be applied. Also note that if you rebuild / refresh the cache, any changes made in the CacheEditor will be lost.

Re: PrimalSense not finding modules in newest version

Posted: Thu Aug 23, 2018 2:19 pm
by dkkazak
Right now, it is only giving me the V2 - 64 bit and V2 -32 bit options, not sure why it isn't showing the V5 options. I do have the modules selected in the cache builder and hit build there to try and get them to show up.

I have uploaded my zip file, so hopefully that will help.

Re: PrimalSense not finding modules in newest version

Posted: Thu Aug 23, 2018 2:53 pm
by davidc
According to the logs, it is failing to cache a large number of modules. What Execution Policy do you have set on that machine?

Code: Select all

Get-ExecutionPolicy

Re: PrimalSense not finding modules in newest version

Posted: Thu Aug 23, 2018 3:52 pm
by dkkazak
RemoteSigned
I'll also note that prior versions I didn't have this problem with the same PowerShell settings.

Re: PrimalSense not finding modules in newest version

Posted: Fri Aug 24, 2018 7:28 am
by davidc
RemoteSigned should be fine, that is the same setting I use.

I noticed that all the caching processes stop at the exchange_online module and it seems the module has an odd null character at the end of the description. I suspect this might have something to do with the issue.

Is exchange_online module available for download or is it part of a suite?

Re: PrimalSense not finding modules in newest version

Posted: Fri Aug 24, 2018 7:32 am
by davidc
Can you zip and upload the exchange_online* files located in the the following folder:

C:\ProgramData\SAPIEN\PresetCache 2018\ModuleCacheV5

Having access preset cache files should hopefully allow us to reproduce the issue.

In the meantime, use the Cache Editor and uncheck the exchange_online module and see if the other checked modules show up in PowerShell Studio.

Re: PrimalSense not finding modules in newest version

Posted: Fri Aug 24, 2018 1:05 pm
by dkkazak
I'm not sure what changed, but I have rebooted a couple of times (and received a new insider build, as well) and it now seems to be working. Thanks for your help in learning some more things to look at.

Re: PrimalSense not finding modules in newest version

Posted: Fri Aug 24, 2018 1:09 pm
by davidc
Thank you for the update.