snippet Get-ScriptDirectory gives error as of 5.4.136 when running in PowerShell Studio

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 6 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
DennisVH
Posts: 12
Last visit: Wed Nov 16, 2022 6:24 am

snippet Get-ScriptDirectory gives error as of 5.4.136 when running in PowerShell Studio

Post by DennisVH »

Product, version and build: PowerShell Studio 2017 5.4.138
32 or 64 bit version of product: 64-bit
Operating system: Windows 7
32 or 64 bit OS: 64-bit
PowerShell Version: v3

Using the snippet Get-ScriptDirectory gives an error as of version 5.4.136 when you Run the script in PowerShell Studio V3 32 or 64 bit:
ERROR: + Split-Path $hostinvocation.MyCommand.path
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : InvalidData: (:) [Split-Path], ParameterBindingValidationException
ERROR: + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand
ERROR:

Running V2 32 & 64 bit works fine.
Also running V3 32 & 64 bit Run in Console (Ctrl + F8) works fine.

The problem does not occur in PowerShell Studio 2016 5.4.130 (V3 32-bit)
User avatar
DennisVH
Posts: 12
Last visit: Wed Nov 16, 2022 6:24 am

Re: snippet Get-ScriptDirectory gives error as of 5.4.136 when running in PowerShell Studio

Post by DennisVH »

Fixed in 5.4.139
This topic is 6 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.