Invoke-Clippy icon indicating copy to clipboard operation
Invoke-Clippy copied to clipboard

PowerClippy.Format.ps1xml is empty

Open devblackops opened this issue 9 years ago • 2 comments

PowerClippy.Format.ps1xml is an empty file and throws an error on import.

VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\powerclippy\1.0\powerclippy.psd1'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program Files\WindowsPowerShell\Modules\powerclippy\1.0\PowerClippy.Format.ps1xml'.
import-module : Object reference not set to an instance of an object.
At line:1 char:1
+ import-module powerclippy -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Import-Module], NullReferenceException
    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

devblackops avatar Apr 01 '16 16:04 devblackops

Same issue, ignores my attempts to Import-Module and throws similar exception

VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PowerClippy\PowerClippy.psd1'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\PowerClippy\PowerClippy.Format.ps1xml'.
Import-Module : Object reference not set to an instance of an object.
At line:1 char:1
+ Import-Module PowerClippy -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Import-Module], NullReferenceException
    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

Technohazard avatar Apr 01 '16 19:04 Technohazard

Commenting out the line that imports that ps1xml file resolves this.

nickrod518 avatar Apr 02 '16 14:04 nickrod518