Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cleanup error when item not found. #5857

Open
sanskar-mk2 opened this issue Mar 30, 2024 · 0 comments
Open

[Bug] Cleanup error when item not found. #5857

sanskar-mk2 opened this issue Mar 30, 2024 · 0 comments
Labels

Comments

@sanskar-mk2
Copy link

Bug Report

Current Behavior

Cleaning up everything gives error.

scoop cleanup *

Removing android-clt: 9477386Get-Item : Cannot find path 'C:\Users\sohma_w4\scoop\apps\android-clt\9477386\build-tools' because it does not exist.
At C:\Users\sohma_w4\scoop\apps\scoop\current\lib\install.ps1:1182 char:23
+             $source = Get-Item "$dir\$source"
+                       ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\sohma_...386\build-tools:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Expected Behavior

Should have cleaned up smoothly and gracefully handled this error.

Possible Solution

Handle this particular error in the code. Meanwhile tell what can easily resolve this.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]

Major Minor Build Revision
5 1 19041 3031

Scoop Configuration

{
    "last_update":  "2024-03-28T19:18:16.5259420+05:30",
    "scoop_branch":  "master",
    "scoop_repo":  "https://github.com/lukesampson/scoop"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant