yatli / fvim

Cross platform Neovim front-end UI, built with F# + Avalonia
MIT License
1.34k stars 30 forks source link

Neither --daemon nor --tryDeaemon work on macOS #100

Closed tssm closed 3 years ago

tssm commented 5 years ago

In the first case the app crashes with the following message:

Unhandled Exception: System.TypeInitializationException: The type initializer for '<StartupCode$FVim>.$FVim.Shell' threw an exception. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '/Applications/FVim.app/Contents/MacOS/icons'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator..ctor(FileSystemEnumerable`1 enumerable)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.Directory.GetFiles(String path, String searchPattern, EnumerationOptions enumerationOptions)
   at System.IO.Directory.GetFiles(String path)
   at <StartupCode$FVim>.$FVim.Shell..cctor()
   --- End of inner exception stack trace ---
   at FVim.Shell.daemon(FSharpOption`1 port, FSharpOption`1 pipe, Options _arg1)
   at FVim.Program.Main(String[] args)

There's no /Applications/FVim.app/Contents/MacOS/icons on my system at all.

Per README.md I expected --tryDaemon to launch FVim with an embedded Neovim instance because there's no daemon running, instead I got:

Screenshot 2019-11-24 at 13 08 11
yatli commented 3 years ago

Should be fixed now.