Error in ConvertTo-PoshTools.ps1

I am trying to convert a PowerShell Studio psf file to use with Visual Studio and PowerShell Pro Tools, but when I run the ConvertTo-PoshTools.ps1 script I get an error

You cannot call a method on a null-valued expression.
At D:\datapresOct6\ConvertTo-PoshTools.ps1:195 char:61

  • … = New-Object -TypeName ‘$($MainObject.type.split(’,’)[0])’"
  •                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (: ) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Any ideas on what is going on here?

Unfortunately, Sapien changed how they store those files and I’m not sure that function works any longer. It worked with older versions of PowerShell Studio but at some point they changed to a binary format that we can’t parse.

:frowning: oh well, I tried!