32 or 64 bit version of product: 64
Operating system: Windows 8.1
32 or 64 bit OS: 64
PowerShell Version: 5.0.10586.117
Every time I load one of our PowerShell scripts I get an unhandled exception stating:
Complete details of the exception are attached.Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Unable to cast object of type ' ' to type '-. '.
If I click Continue the script loads but things like code folding are not enabled. Syntax highlighting is still functional. I can provide the actual script via email if necessary.