Product, version and build: Powershell Studio 5.6.157 (011419) 64-bit
Operating system: Windows 10 64-bit
Just started to happen after never having this problem before... Even with a brand-new, blank form project, this problem is happening:
When I run my script, I get the following error (Error.png):
ERROR: Split-Path : Cannot bind argument to parameter 'Path' because it is null.
Globals.ps1 (23, 14): ERROR: At Line: 23 char: 14
ERROR: + Split-Path $hostinvocation.MyCommand.path
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : InvalidData: (:) [Split-Path], ParameterBindingValidationException
ERROR: + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand
ERROR:
Upon debugging the globals.ps1 script, I see the following (Error2.png):
$hostinvocation - The XML was improperly formatted. Please escape it if necessary.
The value >> $hostinvocation = .
As a note - thinking it was something corrupted in Powershell Studio, I un-installed and re-installed the latest .exe, but that didn't work.
Get-ScriptDirectory in Globals.ps1 is broken
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.
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.
Get-ScriptDirectory in Globals.ps1 is broken
- Attachments
-
- Error2.png (84.1 KiB) Viewed 1274 times
-
- Error.png (126.72 KiB) Viewed 1274 times
- mxtrinidad
- Posts: 399
- Last visit: Tue May 16, 2023 6:52 am
Re: Get-ScriptDirectory in Globals.ps1 is broken
This issue has been reported. Please check the following post for a temporary solution until the next service release becomes available.
viewtopic.php?f=12&t=13597&p=71631&hili ... ath#p71631
Sorry for any inconvenience.
viewtopic.php?f=12&t=13597&p=71631&hili ... ath#p71631
Sorry for any inconvenience.