coc-extensions / coc-omnisharp

OmniSharp integration for coc.nvim
MIT License
118 stars 11 forks source link

Error activating Plugins : Error Undefined read browser_download_url #72

Open benyaminl opened 2 years ago

benyaminl commented 2 years ago
ERROR (pid:3156) [extensions] - Error on active extension coc-omnisharp: Cannot read properties of undefined (reading 'browser_download_url') TypeError: Cannot read properties of undefined (reading 'browser_download_url')
    at LanguageServerProvider.<anonymous> (C:\Users\benli\AppData\Local\coc\extensions\node_modules\coc-omnisharp\node_modules\coc-utils\out\langserver.js:44:44)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\benli\AppData\Local\coc\extensions\node_modules\coc-omnisharp\node_modules\coc-utils\out\langserver.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
yatli commented 2 years ago

Ow naw. it fails completely now. I'd recommend csharp-ls instead of omnisharp at this point. Very predictable.

benyaminl commented 2 years ago

@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
yatli commented 2 years ago

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.

benyaminl commented 2 years ago

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.

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.