Closed BreachSim closed 2 years ago
I see you've also opened this with omnisharp-roslyn which is what I would have suggested, it's not really an omnisharp-vim issue.
Is this the most recent version of the server? You can output the version with:
$ cat ~/.cache/omnisharp-vim/omnisharp-roslyn/OmniSharpInstall-version.txt
v1.38.0
If it does not output v1.38.0
, install the latest version with :OmniSharpInstall
.
It's v1.38.0
Feel free to close the issue as it is not related to omnisharp-vim itself.
Quick question though, Since I am able to start the server by invoking the command twice, is there a way from vim to attached to an already running server or will it try to start one every time I open the first code file?
Thanks for your answer!
No unfortunately, with the stdio server there's no way to attach vim to a running instance (we used to be able to do this with the old HTTP server).
As a workaround, try just running :OmniSharpStopServer
(if necessary, probably not if it didn't start properly) and then :OmniSharpStartServer
from your vim session. It'd be nice if the second startup worked? Fingers crossed...
Thanks for the suggestion, unfortunately I already tried that but it is not working.
Hmm. Annoying.
I wonder if mono
could be the culprit? If you want to be adventurous (and you're working with dotnet
projects, not .NET Framework), you could try the NET6 PR which uses the new OmniSharp-roslyn NET6 mode and doesn't use mono
: #746
To try it you'll need to pull the PR version of OmniSharp-vim, add let g:OmniSharp_server_use_net6 = 1
to your .vimrc, restart vim, then reinstall the server with :OmniSharpInstall
to get the correct version.
It works!! You made my day. Thank you so much for your help.
Great to hear! I finally realised why the tests in that PR were failing too, so I've now merged the PR.
Hello!
I running into a weird issue that didn't happen before.
When I execute the omnisharp server it prints the
motd
The server was working fine before and Im not sure it is related to omnisharp but the
run
command is the only executable that makes it happen. It is also happens only the first time I run the command, any subsequent attempt to execute therun
commands starts the server as expected.Thanks!