Skip to content

build-server.ps1 prints lots of Remove-Item errors #471

Open
@felixfbecker

Description

build-server.ps1 runs Remove-Item $dir -Recurse, but because the directories are not empty and -Force is not used, this fails.

Remove-Item $dir -Recurse

Remove-Item : You do not have sufficient access rights to perform this operation.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (.vscode:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
 
Remove-Item : You do not have sufficient access rights to perform this operation.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (.gitignore:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
 
Remove-Item : You do not have sufficient access rights to perform this operation.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (.gitattributes:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
 
Remove-Item : Directory /Users/felix/git/omnisharp-node-client/vendor/omnisharp-roslyn/omnisharp-roslyn-1.27.2/test-assets/test-projects/CsProjectSample01 cannot be removed because it is not empty.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (CsProjectSample01:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions