Open benyaminl opened 2 years ago
Ow naw. it fails completely now.
I'd recommend csharp-ls
instead of omnisharp
at this point. Very predictable.
@yatli on coc ? is it possible?
And strangely I have old coc on old computer that hasn't updated, seems still running. I will check the last commit message first for that particular coc
EDIT: I move to https://github.com/OmniSharp/omnisharp-vim for now. Sad.
EDIT 2 : seems csharp-ls still broken with dotnet. see
> dotnet CSharpLanguageServer.dll -lsp --debug
Unhandled exception. System.InvalidOperationException: No instances of MSBuild could be detected.
Try calling RegisterInstance or RegisterMSBuildPath to manually register one.
at Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults()
at CSharpLanguageServer.Program.entry(String[] args) in /home/bob/src/csharp/csharp-language-server/src/CSharpLanguageServer/Program.fs:line 8
C:\Users\benli\.dotnet\tools\.store\csharp-ls\0.1.2\csharp-ls\0.1.2\tools\net5.0\any
Emm, the latest version is 0.4.0 Not sure why nuget recommends 0.1.2 tho
Also, if you do dotnet install --global csharp-ls
it will be available as a command line tool, no need to kick start with dotnet xxx.dll --xxx --yyy
Edit:
I know now. You must've followed my link in README which is stale and pointed to csharp-ls 0.1.2 lol. Corrected.
Emm, the latest version is 0.4.0 Not sure why nuget recommends 0.1.2 tho
Also, if you do
dotnet install --global csharp-ls
it will be available as a command line tool, no need to kick start withdotnet xxx.dll --xxx --yyy
Edit:
I know now. You must've followed my link in README which is stale and pointed to csharp-ls 0.1.2 lol. Corrected.
no it's the nuget that suggesting 0.1.2 I think, anyway seems still got error.
{
"languageserver": {
"csharp-ls": {
"command": "csharp-ls",
"filetypes": ["cs"],
"rootPatterns": ["*.csproj", ".vim/", ".git/", ".hg/"]
}
}
}
Take your time, I will also look into the lsp implementation myself to learn how it works. I really thankful for your work kindly sir.