-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Mac Omnisharp Error on RC1 #126
Comments
Getting the same. :( |
I'm having the same issue. It looks like its looking for the old path of the dnvm. Where beta8 was located. Its not picking up the new location. [INFO] Starting OmniSharp at '/Users/irperez/Repos/dotnet5/webAPI'... [INFORMATION:OmniSharp.Dnx.DnxProjectSystem] No default runtime found [INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in '/Users/irperez/Repos/dotnet5/webAPI'. |
Same issue here with a different runtime path: [ERROR:OmniSharp.Dnx.DnxPaths] The specified runtime path 'default' does not exist. Searched locations /Users/seanjones/.dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-rc1-final |
Same, still looking for runtime location in home directory when new rc-1 installer installed it in /usr/local/lib/dnx/runtimes |
Even trying to run
|
Also, when specifying a version to use, it creates the |
@pheuter What does |
That at least explains why restore wants to run with mono. There is a hack on OmniSharp that always uses mono in favour of coreclr because that doesn't support sockets - which OmniSharp and DTH need. |
Also, the OmniSharp log should print more details about the exact DNX version it picked, Use Cmd+L,L to show |
@jrieken Mine looks a bit different, I only have 1.0.0-rc1-final installed and the default is set to mono. |
I removed mono and only have Core CLR installed 1.0.0-rc1-final, and am still having the same issue. Mac development is pretty much unusable at this point. |
I have the same error. /Users/Arda/.dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-rc1-final dnvm list and other dnx commands works fine, even I can run the application from terminal. But in VSCode, I got this error. |
Same error here: Running on Mac OS X 10.11.1 |
I have the same error. :( |
I actually have problems with OmniSharp as well but not regarding the paths but rather with DesignTimeHostManager. Here's the Omnisharp Log:
Node.JS, NPM, Visual Studio Code and .NET 5.0 were all installed today but DNX commands inside VSCode don't run, claiming that OmniSharp server is not running. Also, here's my
|
Same problem for me...
dnvm list output --->
|
It appears #471 is a duplicate of this issue. It has a workaround that worked for me by creating a symbolic link of the |
Get the same problem
|
Same problem. It sucks INFORMATION:OmniSharp.Dnx.DnxProjectSystem] No default runtime found |
Check cwensley's solution - no need to be blocked when there is a simple workaround until this is fixed properly. Basically had to delete the runtimes directory in .dnx then ln -s /usr/local/lib/dnx/runtimes ~/.dnx/ or something pretty close to that. |
@donmurta: Exactly, found it out right a minute ago. |
What I've been doing as a temp fix is symlinking a file from my My osx It is common to add multiple paths to a single environment variable via When looking at the following code, you can see that this might cause a problem because it's looking for a path, not a path array: https://github.com/OmniSharp/omnisharp-roslyn/blob/d3d8fa360cd70c7806ae52e0f318f5e76791abd0/src/OmniSharp.Dnx/DnxPaths.cs#L133 That gets called from here: https://github.com/OmniSharp/omnisharp-roslyn/blob/d3d8fa360cd70c7806ae52e0f318f5e76791abd0/src/OmniSharp.Dnx/DnxPaths.cs#L51 That calls this: https://github.com/OmniSharp/omnisharp-roslyn/blob/d3d8fa360cd70c7806ae52e0f318f5e76791abd0/src/OmniSharp.Dnx/DnxPaths.cs#L51 etc... nowhere in there is it tokenizing the $DNX_HOME value which may be part of the problem in my case. I've seen that others don't even have the /usr/local/lib/dnx folder in their $DNX_HOME at all. I honestly don't remember if I added mine by hand or if something put it there for me. |
When I use the mono c# REPL by running the
|
It seems like OmniSharp is unable to read from globally installed runtimes. Out of the box dnvm package installation installs the runtimes in the global location.
Instead of symlink you can uninstall the ones in the global location, and reinstall them in the user location.
and then install them to the user location. flag -g installs them globally btw.
That will give you
and everything will work as intended. |
Above comment of @danlofquist did the trick! 👍 |
How :)? With that kind of typo? ᐅ dmvm uninstall 1.0.0-rc1-final -r coreclr However, even with corrected version it doesn't do it for me, because the re-install put it back go global location PS: Now everything is messed up again... |
@neilyoung
Then verify there is no dnvm runtimes:
Then install:
IMPORTANT
Only after that I've got VSCode output:
thanks! |
@peterblazejewicz: Thanks. Indeed, this does the job. But -y is completely unrelated, isn't it? |
@neilyoung
|
Thank you @peterblazejewicz, that worked for me as well. I've been pulling my hair out all day trying to get this working! |
I think -p is the key. I used that "use" command before, but never with -p. And OmniSharp complained about having not seen a "default" entry. So the alias "default" was never set. Instead an asterisk was shown in the first column of "dnvm list", which let me assume to have set the default runtime properly. |
@danlofquist unistall and reinstall solved my problem :) |
@danlofquist thank you ! uninstall/reinstall solved my problem too. I can go back to work now :) |
I wish one could upvote comments. @danlofquist 's solution is clean and makes OmniSharp work in VS Code - thank you! 👍 |
@flq then let's close the issue with a link to the comment from @danlofquist. It addresses the issue. |
@danlofquist, I'm trying to follow your instructions as I have this problem on OSX. |
@p-i- try to follow this tutorial https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-app-using-vscode/ but you are probably going to get stuck at some point too. Good luck. |
@peterblazejewicz @neilyoung Thanks for the help. However, I would recommend that this issue perhaps be reopened because upon doing an update by the system to C# as an extension it threw everything out of wack. I uninstalled and reinstalled repeatedly not figuring out what the issue was. not until i did the -p for the default library runtime did the application then proceed to work. Thanks for the help as always. |
Guys I'm still having the same problem. I've tried all the answer you gave and still can't run dnx:restore from VScode.
|
it's 2016 and that issue still happens. Uninstall and install both runtimes does not make it. Following @peterblazejewicz tips using -y works like charm. Looks like uninstall using -y does not ask for confirmation. Thanks a lot. |
// fyi @DustinCampbell |
After using @danlofquist and @peterblazejewicz solutions, I had to reinstall VS Code C# extension to get it working. Thanks! |
Hey Guys im getting the following error in omnisharp Log it looks like its looking for the runtime in the wrong folder.
Could not find any CSX files
[ERROR:OmniSharp.Dnx.DnxPaths] The specified runtime path '1.0.0-rc1-final' does not exist. Searched locations /Users/franzsilva/.dnx/runtimes/dnx-mono.1.0.0-rc1-final
/Users/franzsilva/.dnx/runtimes/kre-mono.1.0.0-rc1-final
/Users/franzsilva/.dnx/packages/KRE-Mono.1.0.0-rc1-final
/Users/franzsilva/.k/runtimes/dnx-mono.1.0.0-rc1-final
/Users/franzsilva/.k/runtimes/kre-mono.1.0.0-rc1-final
/Users/franzsilva/.k/packages/KRE-Mono.1.0.0-rc1-final
/Users/franzsilva/.kre/runtimes/dnx-mono.1.0.0-rc1-final
/Users/franzsilva/.kre/runtimes/kre-mono.1.0.0-rc1-final
/Users/franzsilva/.kre/packages/KRE-Mono.1.0.0-rc1-final
The text was updated successfully, but these errors were encountered: