Open gordio opened 9 years ago
It's tested only on windows, but must be problem on all platforms.
Message: OmniSharp.exe has stopped working Plugin: OmniSharp-Sublime Reproduce:
OmniSharpSublime.sublime-settings
omnisharp_server_config_location
/User/path_dont_exist/config.json
C:\Windows\system32\cmd.exe /c ""C:/Users/Gordio/AppData/Roaming/Sublime Text 3/Packages/OmniSharp/PrebuiltOmniSharpServer/omnisharp.cmd" -s "C:\Users\Gordio\Development\docpad" -p 59683 -config "/Users/Gordio/dsas/config.json" --hostPID 4796"
Exception:
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Gordio\dsas\config.json'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolea n useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detec tEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost) at OmniSharp.Configuration.ConfigurationLoader.Load(String configLocation, St ring clientMode) at OmniSharp.Program.StartServer(String solutionPath, String clientPathMode, Int32 port, Verbosity verbosity, String configLocation, Int32 hostPID) at OmniSharp.Program.Main(String[] args)
Prorosal fix: Use default config (path), with warning message.
Yeah... ok, that seems reasonable. Do you want to submit a PR for this?
@nosami sorry, no. I not so good in C#.
It's tested only on windows, but must be problem on all platforms.
Message: OmniSharp.exe has stopped working Plugin: OmniSharp-Sublime Reproduce:
OmniSharpSublime.sublime-settings
addomnisharp_server_config_location
with/User/path_dont_exist/config.json
(for example)C:\Windows\system32\cmd.exe /c ""C:/Users/Gordio/AppData/Roaming/Sublime Text 3/Packages/OmniSharp/PrebuiltOmniSharpServer/omnisharp.cmd" -s "C:\Users\Gordio\Development\docpad" -p 59683 -config "/Users/Gordio/dsas/config.json" --hostPID 4796"
Exception:
Prorosal fix: Use default config (path), with warning message.