LeLocTai / Flow.Launcher.Plugin.UnityEngine

Launch Unity projects from Flow launcher
MIT License
4 stars 0 forks source link

Unable to Detect the "favoriteProjects.json" file #2

Open shurgbee opened 3 months ago

shurgbee commented 3 months ago

Whenever I turn run flow launcher, the plugin isn't run because it fails at runtime. Here is the relevant error log:

15:27:01.3076-05:00 - ERROR - PluginManager.InitializePluginsAsync - Fail to Init plugin: Unity Engine EXCEPTION OCCURS: System.IO.FileNotFoundException: Could not find file 'C:\Users\self\AppData\Roaming\UnityHub\favoriteProjects.json'. File name: 'C:\Users\self\AppData\Roaming\UnityHub\favoriteProjects.json' at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.Open(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode) at new System.IO.Strategies.OSFileStreamStrategy(string path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode) at FileStreamStrategy System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(string path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode) at Stream System.IO.StreamReader.ValidateArgsAndOpenPath(string path, Encoding encoding, int bufferSize) at string System.IO.File.ReadAllText(string path, Encoding encoding) at async Task Flow.Launcher.Plugin.UnityEngine.UnityEngine.ReloadDataAsync() at async Task Flow.Launcher.Plugin.UnityEngine.UnityEngine.InitAsync(PluginInitContext _context) at async Task Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(string message, Func action) in C:/projects/flow-launcher/Flow.Launcher.Infrastructure/Stopwatch.cs:line 34 at async Task Flow.Launcher.Core.Plugin.PluginManager.InitializePluginsAsync(IPublicAPI api)+(?) => { } in C:/projects/flow-launcher/Flow.Launcher.Core/Plugin/PluginManager.cs:line 127

LeLocTai commented 3 months ago

New versions of the hub store projects in a different format. I no longer maintain this repo since I no longer use the launcher.