Terminal-Icons
Terminal-Icons copied to clipboard
Getting error on importing the terminal icons module
Expected Behavior
I can import the module using Import-Module Terminal-Icons
without any issue.
Current Behavior
Getting the error message when trying to import.
Import-Clixml: 'Element' is an invalid XmlNodeType. Line 210, position 22.
Possible Solution
As a workaround to fix it, just delete the devblackops_*.xml
files, and then importing the module will create them again.
Steps to Reproduce (for bugs)
-
Import-Module Terminal-Icons
Context
I'm getting this error message sometimes, but haven't figured out the root cause yet. I have an assumption that it is only happening when I update my PowerShell version.
The error refers to the devblackops_icon.xml
file and the following piece of content:
<En>
<S N="Key">authors.md</S>
<S N="Value">nf-oct-person</S>
</En>
<En>
<S N="Key">.gitignore</S>
<S N="Value">nf-dev-git</S>
<En>
<S N="Key">.azure</S>
<S N="Value">nf-md-microsoft_azure</S>
</En>
For some reason the closing tag </En>
is broken in the file. But I have no idea what changed it, because it was working before.
After using the workaround described above, I realized that the file was corrupted beyond just that missing closing tag. Unfortunately, I didn't make a copy before deleting it, so I can't attach it here. I will do that the next time the issue happens in the hopes this makes it easier to debug the issue.
Your Environment
- Module version used: 0.11.0
- Operating System and PowerShell version:
Name Value
---- -----
PSVersion 7.4.0
PSEdition Core
GitCommitId 7.4.0
OS Microsoft Windows 10.0.23590
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
- PowerShell is installed and updated through the Microsoft store