-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Bundled OmniSharp server crashes on startup, can't find System.Net.HttpListener #2383
Comments
Any progress on this? In the mean-time, is there any way to force YCM to use omnifunc for completion instead of the built in OmniSharp engine for C#? This problem has made YCM unusable for me, and I've had to turn it off in favour of OmniSharp's omnifunc completion + supertab, but it's not nearly as good as YCM when it works. |
Sorry for the late answer. This issue has been reported on the OmniSharp Server repository. Unfortunately, the project is not maintained anymore and is replaced by OmniSharp Roslyn so the issue is unlikely to be fixed. @mispencer is working on adding OmniSharp Roslyn support to YCM (see PR ycm-core/ycmd#213). Until we adopt OmniSharp Roslyn, we may consider using a fork of the OmniSharp Server repository with the proper fix. However, I have no idea on how to fix this as I am not a C# user so help is welcome here. As a temporary workaround, according to this post on SO, you could downgrade mono to 4.2.4.4. |
Ok! Thanks for the information and research, I understand that it's very difficult to fix when you have to rely on an external project. I'll see what I can do myself. |
I think we can close this as it is not a YCM issue but an omnisharp issue. |
See #2530 (comment). |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
[Frequently Asked Questions][faq] section.
about to report and couldn't find an answer to my problem. ([Example Google
search.][search])
vim --version
.:YcmDebugInfo
.:YcmToggleLogs stderr
.version) I am using.
my issue.
that any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
I am on macOS Sierra, and this is my
vim --version
: https://gist.github.com/26608c1c5d72752cae38c1afabf1a7c8This is my .vimrc: https://github.com/OskarSigvardsson/dotfiles/blob/master/vim/vimrc.home (the YCM settings are on line 301 and on)
I'm a Unity C# developer, using YouCompleteMe for C#. After a recent update, i noticed that YCM asked me to recompile the server component, so i went into
~/.vim/bundle/YouCompleteMe
and ran./install.py --all
(i do occasionally like to develop in other languages ;) ). The compilation process finished without errors.When I started Vim again I got an error message when trying to autocomplete:
I check YcmDebugInfo, which reports this:
I check the OmniSharp stderr logfile, and it reports the following:
I don't know if I should be reporting this here or at OmniSharp, but I'll start here. I don't know why OmniSharp can't load HttpListener, or why this is happening in general. It's worked fine until just now.
I run regular old OmniSharp alongside YouCompleteMe for Syntastic support and various useful functionality ("GoToDefinition", "FindUsages", etc.), but YCM is running the OmniSharp server it comes with (that's built during the
./install.py --all
process, right?). Regular OmniSharp works fine.I'm updated to the latest version of YouCompleteMe, and I've tried rebuilding it again. Same error.
Also, since this is the first time I'm contacting the developers, I'd just like to say: YCM is the greatest thing ever. You make life so much easier. Good work.
The text was updated successfully, but these errors were encountered: