Script Analyzer Issue

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 3 years and 11 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
Reddrgn2
Posts: 49
Last visit: Wed Nov 08, 2023 10:34 am
Answers: 1

Script Analyzer Issue

Post by Reddrgn2 »

Product, version and build:
64 b - primalscript 2020 - version 7.7.139
Operating system:
64 bit OS: win 10 enterprise

When using Sapien Script explorer, just updated to get explorer. Testing Analyzer and getting error "Starting Script Analyzer...PSScriptAnalyzer is not installed in its default location" I checked and in install location "C:\Program Files\SAPIEN Technologies, Inc\PrimalScript 2020" the analyzescript.exe is listed. I checked in 'C:\Program Files\WindowsPowerShell\Modules" there isn't anything there for script analyzer or like it.

When I open Primal Script and run script analyzer on a script it says the same thing but says "PSScriptAnalyzer is not installed in its default location0 error(s), 0 warning(s)" I have created errors, yep on purpose. It does not seem to be picking them up.

Is there something I missing or didn't do or need to install?
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Script Analyzer Issue

Post by mxtrinidad »

Thanks for reporting the issue. Our team will be investigating and getting back to you soon.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Script Analyzer Issue

Post by mxtrinidad »

The PowerShell module "PSScriptAnalyzer" need to be installed under Windows PowerShell:

## - Open console as an Administrator, and execute the following line:
Install-Module -Name PSScriptAnalyzer

Close and open the Script Explorer, and try again. It should work now!
User avatar
Reddrgn2
Posts: 49
Last visit: Wed Nov 08, 2023 10:34 am
Answers: 1

Re: Script Analyzer Issue

Post by Reddrgn2 »

Thanks that worked
This topic is 3 years and 11 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.