Import-Clixml Error when opening Terminal
Current Behavior
I get an error randomly when i open the terminal, it only gives an error at launch.
Error Message:
(yesterday, when i checked i received this error message)
Import-Clixml: Key for dictionary entry is not specified. Line 104, position 7.
InvalidOperation: Index operation failed; the array index evaluated to null.
Import-Clixml: 'Element' is an invalid XmlNodeType.
InvalidOperation: Index operation failed; the array index evaluated to null.
InvalidOperation: Index operation failed; the array index evaluated to null.
(this error i just received)
Import-Clixml: Value for dictionary entry is not specified. Line 109, position 21.
InvalidOperation: Index operation failed; the array index evaluated to null.
InvalidOperation: Index operation failed; the array index evaluated to null.
InvalidOperation: Cannot index into a null array.
InvalidOperation: Cannot index into a null array.
InvalidOperation: You cannot call a method on a null-valued expression.
InvalidOperation: You cannot call a method on a null-valued expression.
Steps to Reproduce (for bugs)
Opening the terminal randomly gives the error, sometimes i see the error, othertimes i don't.
The error doesn't seem to be causing any issues with the terminal, most probably just a visual error.
Your Environment
OS Version: Windows 10(22H2) Terminal: Powershell 7.4.1 I'm using ohmyposh and Terminal-Icons powershell modules
We would want to see the output from the below after the error.
get-error -last 2
Additionally, does the same error happen when you load PowerShell Core with no profile? You launch with pwsh -noprofile.
Lastly, it is possibly related to https://github.com/devblackops/Terminal-Icons/issues/121.