-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET v3.5 issues with Emacs 25.3.1 and Unity3D #426
Comments
I have the same problem. Omnisharp v1.26.3 installed via M-x omnisharp-install-server. The interesting thing is that omnisharp seems to start fine from the command line in the .emacs.d/cache directory: Which magic mono bits or paths would I have to twiddle to make it find the framework when run inside emacs? Full log attached. |
I am not sure what could be wrong here, but here are a couple of options, off my mind..
|
@GroundCombo do you mean you don't get any errors when starting the server from console/terminal, compared to what you get on omnisharp-log? then the only difference there is (I think) is that omnisharp passes "--encoding utf-8" to the server command line as well.. can you check if starting it from console with --encoding flag breaks it on console too? |
edit: I also tried installing v1.29.1 - same thing. |
can you check those with |
Well this looks like another facepalmingly simple issue. $PATH for the emacs process didn't contain any paths with mono executables, so I added |
Great! Do you think we should add a warning or something on a mac in omnisharp-emacs? At least a couple of persons tripped on it, might be worth it? Or something like 'M-x omnisharp-doctor'? |
Couldn't hurt, I suppose. I don't know how tough it would be to catch the potential gotchas with mono and emacs installations, but checking some common errors would be helpful especially to Unity developers whose exposure to mono might be limited to one-channel audio. |
Thanks guys. I'll try it out. Wouldn't setting a default path to Mono in |
@ijacquez that script is served by omnisharp-roslyn server binary. I could try to override it in omnisharp-emacs but it is probably better to refer to maintainers of https://github.com/OmniSharp/omnisharp-roslyn |
README.md: add troubleshooting note on macos $PATH issue (#426)
I can confirm that all works. For those looking for a quick fix:
|
@ijacquez thanks! will add this note to README.md in the troubleshooting section |
Here are all the versions of Mono installed:
Version of Omnisharp: v1.26.3
*omnisharp-log*
buffer showsI tried to clear the GAC via
gacutil
. I even cleared the GAC.Is there anything else worth trying?
The text was updated successfully, but these errors were encountered: