-
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
Omnisharp's checker is not detected by Flycheck #262
Comments
@Wozar, I was able to get around a similar (possibly identical) issue by adding :modes (omnisharp-mode csharp-mode) I later found folks with similar issues and solutions in #252 and #259, so this will hopefully be addressed soon. |
@ngscheurich I have already tried that. Unfortunately it did not work for me. When I add You don't think this could have anything to do with incompatability of the newest version of Emacs (25.1.2)? |
@Wozar Hmm… Not sure, but potentially—I'm running 25.1.1.
|
@ngscheurich Fair enough. I appreciate the help anyways. I also apologize for a late response. I have no idea where you can view notifications on GitHub. EDIT: Misspelling of a word |
Since the non-roslyn part has been abandoned, is this issue still relevant? |
I don't think so. Unless this is still an issue for you with the roslyn version? |
So yesterday I started playing with it again. I tested in a single file and I also cloned the omnisharp-roslyn repo, not to build it, but because it included a .sln file, which I remember is required for at least code completion and syntax checking to work? I didn't actually test with flycheck, but initially I couldn't get company to work, so I'd assume flycheck probably wouldn't work either. I would guess it didn't work because I didn't have .NET installed. Since I was a little all over the place when trying to fix it, I ended up installing .NET version 2.0 (which is a preview) and version 1.1 from the AUR. I didn't test after each install, so I can't say which resulted in a fix. It still doesn't work for a single file, but testing with the .sln in the omnisharp-roslyn repo, it works. |
@Wozar you don't need a sln file, a path to plain csproj is sufficient for omnisharp-roslyn to boot up what platform are you on? if you are using mac or linux then:
this should be enough to have a working installation — with flycheck and company working (unless I forgot something..) also, there should be no need to install .net core (at least the server version that is installed via |
Interesting. I do use Linux (Arch if that matters) and did install it the way you specified. If installing .NET core didn't help, then I haven no idea how it magically started to work. |
Ok, I have added a note to #275 and I am closing this if the original issue (flycheck) is working for you now. |
Greetings,
I have some trouble with getting Flycheck to work with OmniSharp. Curl is located in usr/bin/. This is also one of the paths associated the
exec-path
variable. Despite that, Flycheck wasn't working, so I tried to type the whole path myself. This didn't work either.When I enter
flycheck-describe-checker
, Emacs tells me it supports omnisharp-mode only.flycheck-verify-setup
tells me there are no checkers for the current .cs buffer.flycheck-verify-checker
tells me that csharp-mode is not supported. I then figured, I'd try to add it by following this link. It resulted in an error with a no-good description and when I launched Emacs with argument--debug-init
, I was greeted with an empty buffer.I am fairly new to Emacs, so I have no idea if my attempts have been in the right direction, but I am at a loss now.
The text was updated successfully, but these errors were encountered: