PowerShell-Watch icon indicating copy to clipboard operation
PowerShell-Watch copied to clipboard

Bug at folder watch / if a file is removed?

Open gregor-hh opened this issue 2 years ago • 0 comments

Hello, First of all, thank you very much for the great modules. Fantastic work!

I think I have run into a problem. Observed on two different computers.

Computer A: Windows 10 Computer B: Windows Server 2022

The following error message appears if you do a "watch" on a folder and delete a file in this folder in the meantime: (The system cannot the file (which was deleted for testing)

image

Compare-Object : Ausnahme beim Abrufen von "Target": "Das System kann die angegebene Datei nicht finden" In C:\Users\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\Dokumente\WindowsPowerShell\Modules\Watch\1.0.30\Public\Watch-Command.ps1:154 Zeichen:21

  •         $Diff = Compare-Object @CompareParams -PassThru
    
  •                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidResult: (VMware-tools-12.3.0-22234872-x86_64.exe:PSObject) [Compare-Object], GetValueInvocationException
    • FullyQualifiedErrorId : ExpressionEvaluation,Microsoft.PowerShell.Commands.CompareObjectCommand

Compare-Object : Ausnahme beim Abrufen von "LinkType": "Das System kann die angegebene Datei nicht finden" In C:\Users\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\Dokumente\WindowsPowerShell\Modules\Watch\1.0.30\Public\Watch-Command.ps1:154 Zeichen:21

  •         $Diff = Compare-Object @CompareParams -PassThru
    
  •                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidResult: (VMware-tools-12.3.0-22234872-x86_64.exe:PSObject) [Compare-Object], GetValueInvocationException
    • FullyQualifiedErrorId : ExpressionEvaluation,Microsoft.PowerShell.Commands.CompareObjectCommand

Any ideas?

Thank you in advance gregor

gregor-hh avatar Dec 07 '23 12:12 gregor-hh