Extras icon indicating copy to clipboard operation
Extras copied to clipboard

[Bug] Error trying to update `sublime-merge`

Open lucypero opened this issue 3 years ago • 2 comments

Bug Report

Current Behavior

Error trying to update sublime-merge

Additional context/output

Unlinking ~\scoop\apps\sublime-merge\current
Remove-Item: C:\Users\Lucy\scoop\apps\scoop\current\lib\install.ps1:945
Line |
 945 |          Remove-Item $currentdir -Recurse -Force -ErrorAction Stop
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot remove item C:\Users\Lucy\scoop\apps\sublime-merge\current\Data: Access to the path
     | 'C:\Users\Lucy\scoop\apps\sublime-merge\current\Data' is denied.

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 7.2.5

Scoop Configuration

No config

lucypero avatar Jul 19 '22 01:07 lucypero

If I use the old PowerShell that came with Windows 11, it works. I don't know what's going on.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
PS C:\Windows\System32> "$($PSVersionTable.PSVersion)"
5.1.22000.653

Must be some permissions thing.

lucypero avatar Jul 19 '22 02:07 lucypero

I occasionally have this issue when reinstalling other apps if I keep File Explorer open to the app's folder while updating and often a reboot is the only solution. For some reason even if you delete the old app's folder manually, you won't be able to install the new version because creating the folder with the same name is denied.

Try using LockHunter, it can tell you which processes are locking the misbehaving folder and help you delete them on reboot as a last resort. Hope this helps.

tech189 avatar Jul 20 '22 10:07 tech189