Skip to content

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

@SpicyFalcon619

Description

@SpicyFalcon619

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions