1RedOne / Invoke-Clippy

Celebrate the magic of Clippy with your family this holiday season
http://foxdeploy.com/2016/04/01/powerclippy/
26 stars 6 forks source link

PowerClippy.Format.ps1xml is empty #2

Open devblackops opened 8 years ago

devblackops commented 8 years ago

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
Technohazard commented 8 years ago

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
nickrod518 commented 8 years ago

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