Skip to content
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

Error activating Plugins : Error Undefined read browser_download_url #72

Open
benyaminl opened this issue Mar 22, 2022 · 4 comments
Open

Comments

@benyaminl
Copy link

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
Copy link
Member

yatli commented Mar 22, 2022

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

@benyaminl
Copy link
Author

benyaminl commented Mar 22, 2022

@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
Copy link
Member

yatli commented Mar 22, 2022

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants