omnisharp-roslyn icon indicating copy to clipboard operation
omnisharp-roslyn copied to clipboard

Error E5248 in Neovim 0.9

Open fraidev opened this issue 2 years ago • 4 comments

I am using omnisharp-roslyn by Mason.

Similar to an issue on rescript-vscode project. https://github.com/rescript-lang/rescript-vscode/issues/758.

fraidev avatar May 16 '23 12:05 fraidev

The temporary workaround for this is to disable semanticTokensProvider in your LSP client

on_attach = function(client, bufnr)
    if client.name == "omnisharp" then
        client.server_capabilities.semanticTokensProvider = nil
    end
end

cptchuckles avatar May 17 '23 16:05 cptchuckles

Sorry, I just recently installed astronim and immediately ran into this problem. Can you tell me where to enter these lines?

Elektroplayer avatar May 20 '23 14:05 Elektroplayer

@Elektroplayer the @cptchuckles's workaround works for me.

Here my dotfiles: https://github.com/fraidev/dotfiles/blob/87585f335d5b59a32bee79f78f432534fb505b98/config/nvim/lua/plugins/lspconfig.lua#L137

fraidev avatar May 21 '23 20:05 fraidev

Hey @fraidev this workaround is future-proof, have a look if you can https://github.com/OmniSharp/omnisharp-roslyn/issues/2483#issuecomment-1539809155

TheJarX avatar Jun 29 '23 18:06 TheJarX