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

ocenaudio: Strange bug when persisting the settings folder #1300

Closed
CypherNL opened this issue Oct 2, 2018 · 1 comment
Closed

ocenaudio: Strange bug when persisting the settings folder #1300

CypherNL opened this issue Oct 2, 2018 · 1 comment

Comments

@CypherNL
Copy link
Contributor

CypherNL commented Oct 2, 2018

I've found a strange persist glitch with the ocenaudio app manifest. When installing a version without any previous versions, the settings folder persists fine.
On an update, it still persists the settings folder but creates a settings folder in the settings folder.
Updating again gives you a "Move-Item: Cannot move a file that already exists" error and it doesn't persists the settings folder. Meaning you "lose" your settings.
However the persist is still linked with the previous version.

My version update path with using the scoop app manifest is like this:
Version 3.4.5 (folder persists fine) > Version 3.5.0 (creates a setting folder in the settings folder, but still persists fine) > Version 3.5.1 (Gives the error stated above and doesn't persists the settings folder to the newest version)

This also happens when you re-install the program 3 times.

Is this a glitch in scoop or my app manifest?

This is the error i got (note: the language is Dutch):

Move-Item : Kan geen bestand maken dat al bestaat.
At C:\Users\Melvin\scoop\apps\scoop\current\lib\install.ps1:1239 char:21
+                     Move-Item $source $target
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\Melvin...urrent\settings:DirectoryInfo) [Move-Item], IOException
    + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand
@Ash258
Copy link
Contributor

Ash258 commented Oct 2, 2018

It just happened to me updating vscode-insiders from my bucket.

Few points I noticed.

  1. My vscode-insiders manifest is nightly, and today it was second update, so folder nightly-20181002 already existed, but never happened before, even with more updates a day.

  2. I updated today at about 2PM and everything worked, but now (11PM) just got this.
    There was recursively nested directory (same as persist folder) and it was symbolic link into itself. (Scoop makes infinity recursive folder on installing app with folder persisting Scoop#2535)
    (powershell 5.1.17134.228)

Persisting data
Move-Item : Cannot create a file when that file already exists.
At S:\Scoop\apps\scoop\current\lib\install.ps1:1239 char:21
+                     Move-Item $source $target
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (S:\Scoop\apps\v...rs\current\data:DirectoryInfo) [Move-Item], IOException
    + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants