Skip to content

IOException: Unable to remove the file to be replaced. #3379

New issue

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

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

Already on GitHub? # to your account

Closed
SpicyFalcon619 opened this issue Mar 25, 2025 · 1 comment · Fixed by #3417
Closed

IOException: Unable to remove the file to be replaced. #3379

SpicyFalcon619 opened this issue Mar 25, 2025 · 1 comment · Fixed by #3417

Comments

@SpicyFalcon619
Copy link

Flow Launcher Version:

1.19.5

OS Version:

26100.3476

Issue:

Encountering an IOException when trying to replace a file.

Log File:

[Attach the log file from the path below]
C:\Users\USER\AppData\Roaming\FlowLauncher\Logs\1.19.5\2025-03-25.txt

Exception Message:

System.IO.IOException: Unable to remove the file to be replaced. at System.IO.FileSystem.ReplaceFile(String sourceFullPath, String destFullPath, String destBackupFullPath, Boolean ignoreMetadataErrors) at Flow.Launcher.Infrastructure.Storage.JsonStorage1.AtomicWriteSetting() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Storage\JsonStorage.cs:line 209 at Flow.Launcher.Infrastructure.Storage.JsonStorage1.Save() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Storage\JsonStorage.cs:line 189 at Flow.Launcher.Core.Plugin.JsonRPCPluginSettings.Save() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPluginSettings.cs:line 109 at Flow.Launcher.Core.Plugin.JsonRPCPluginBase.Save() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPluginBase.cs:line 156 at Flow.Launcher.Core.Plugin.PluginManager.Save() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 59 at Flow.Launcher.PublicAPIInstance.SaveAppAllSettings() in C:\projects\flow-launcher\Flow.Launcher\PublicAPIInstance.cs:line 84 at Flow.Launcher.App.b__14_0() in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 108 at Flow.Launcher.Infrastructure.Stopwatch.NormalAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 58 at Flow.Launcher.App.OnStartupAsync(Object sender, StartupEventArgs e) in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 51 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

@Jack251970
Copy link
Contributor

Fixed in #3417 with exception handler

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
2 participants