Skip to content

Issue in pwsh windows terminal #152

Description

@iamLazyCode

hello everyone i am getting this error in pwsh , sorry not much familiar with windows terminal

Import-PowerShellDataFile : The term 'Import-PowerShellDataFile' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\LazyCode\Documents\PowerShell\Modules\Terminal-Icons\0.11.0\Terminal-Icons.psm1:210 char:33
+         $hash.Add($_.Basename, (Import-PowerShellDataFile $_.FullName ...
+                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Import-PowerShellDataFile:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Import-PowerShellDataFile : The term 'Import-PowerShellDataFile' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\LazyCode\Documents\PowerShell\Modules\Terminal-Icons\0.11.0\Terminal-Icons.psm1:196 char:22
+         $colorData = Import-PowerShellDataFile $_.FullName
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Import-PowerShellDataFile:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Index operation failed; the array index evaluated to null.
At C:\Users\LazyCode\Documents\PowerShell\Modules\Terminal-Icons\0.11.0\Terminal-Icons.psm1:197 char:9
+         $hash[$colorData.Name] = $colorData
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArrayIndex

Index operation failed; the array index evaluated to null.
At C:\Users\LazyCode\Documents\PowerShell\Modules\Terminal-Icons\0.11.0\Terminal-Icons.psm1:198 char:9
+         $hash[$colorData.Name].Types.Directories[''] = $colorReset

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions