Omnisharp-roslyn: net451 version crashes in Emacs

Created on 27 Sep 2016  ·  7Comments  ·  Source: OmniSharp/omnisharp-roslyn

If I try to run the net451 version in Emacs on Windows 10, Emacs just crashes. The netcoreapp version however works fine. It's not related to omnisharp-emacs since just running (start-process "foo" "*foo*" "OmniSharp") causes a crash.

There are also several reports on different Windows configurations here: https://github.com/OmniSharp/omnisharp-emacs/issues/178

I've also tried this on the latest Emacs version (25.1) as well as an older one (24.4), with the same result.

Most helpful comment

omnisharp-emacs now has the M-x omnisharp-install-server command that will properly setup the server for you automatically (see https://github.com/OmniSharp/omnisharp-emacs/issues/275).

It will also avoid 64bit binary on windows and will use 32bit one for now (until emacs-26 is released and detected). I think this issue can be closed then

All 7 comments

Hi @kimgronqvist, omnisharp-Roslyn was recently migrated to .NET 4.6, could you please re-test and see if that works better?

Sadly, no. This bug still persists with the latest version.

Confirming this bug as well. Using emacs 25.2 with net451 v1.15.0
I'm trying to use omnisharp with Unity. From what I understand, I need to use net451; can't really use dotnetcore, so hopefully this can get fixed soon cause if not I can't use emacs with omnisharp for Unity.

I just tested on emacs 25.2 with the 64bit version of O# net46 v.1.16.0, and it's still crashing. However, 32bit seems to be working fine!

However, I got these errors;
OmniSharp server error: The project system ’OmniSharp.MSBuild.MSBuildProjectSystem’ threw exception during initialization. When I try to call go-to-definition, I get this warning; Cannot go to definition as none was returned by the API. Which I figure has to do with the exception.

Going to investigate further.

Emacs bug has been reported in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27527 and should be fixed in the next emacs version.

In the meantime -x86- (NOT -x64-) omnisharp-roslyn bundle should be used instead, 32bit server exe doesn't crash for me.

omnisharp-emacs now has the M-x omnisharp-install-server command that will properly setup the server for you automatically (see https://github.com/OmniSharp/omnisharp-emacs/issues/275).

It will also avoid 64bit binary on windows and will use 32bit one for now (until emacs-26 is released and detected). I think this issue can be closed then

I will close this as this is tracked in https://github.com/OmniSharp/omnisharp-emacs/issues/275, for any other Emacs issue, please open them in https://github.com/OmniSharp/omnisharp-emacs repo.

Was this page helpful?
0 / 5 - 0 ratings