-
Notifications
You must be signed in to change notification settings - Fork 687
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
Unable to start OmniSharp when opening Unity project #691
Comments
Thanks for reporting this problem. I've got a few questions:
Thanks! |
I had the same problem (and same full log). I was not using the beta and haven't tried it yet. Im using 1.3. Doing
|
That's great information @fregren -- thanks! |
FWIW, I would expect option 2 to be reasonably safe. OmniSharp requires at least Mono 4.0.1, which it checks for before launching by running "mono --version". Assuming that code is running correctly, it should be fine. |
Ah, I'm a bit daft! I linked to MonoDevelop's Mono not Unity's! MonoDevelop uses mono 4.05 whereas Unity uses 2.6.5. So the risk of getting suggestions not supported by Unity as mentioned in my suggestion #1 would apply to #2 as well, albeit probably less so than downloading the latest and greatest mono. |
Thanks fregren for the solution. It worked perfectly for me :) It would be great if it mentioned something like, "Could not find mono." |
Thanks! I'll take a look at some better logging around the Mono dependency. |
OK. I think this should be addressed in the latest release (1.5.2). Now, OmniSharp will be launched using an embedded Mono runtime rather than depending on Mono being installed system wide. However, you will need to have Mono installed somewhere (and |
Environment data
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
VS Code version:
Version 1.4.0 (1.4.0)
C# Extension version:
1.4.0-beta5
Steps to reproduce
Note: This issue also occurs with C# extension versions 1.3.0 and 1.3.0-beta1.
Expected behavior
Omnisharp doesn't finish starting
Actual behavior
Omnisharp finishes starting
Omnisharp Log
Flavor: 1, Platform: 2
[INFO] Installing OmniSharp to /Users/Austin/.vscode/extensions/ms-vscode.csharp-1.4.0-beta5/out/.omnisharp-mono
[INFO] Attempting to download https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-1.9-beta13-mono.tar.gz
[INFO] Downloading to /var/folders/yk/8ppdgm6s5y790ft_w5drdvxc0000gn/T/tmp-41055NwGi3eW0PoS.tmp...
[INFO] Download complete!
[INFO] Decompressing...
[INFO] Done! 160 files unpacked.
[INFO] Starting OmniSharp at '/Users/Austin/Repositories/supersecret/supersecret.sln'...
The text was updated successfully, but these errors were encountered: