OmniSharp / omnisharp-node-client

node client for the omnisharp-roslyn server
http://www.omnisharp.net/
MIT License
52 stars 19 forks source link

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

Open felixfbecker opened 6 years ago

felixfbecker commented 6 years ago

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

https://github.com/OmniSharp/omnisharp-node-client/blob/fcb57e1f5c9d4f39559499861fd5bc031964b787/build-server.ps1#L12

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