Skip to content

Error spawning language server #23

@vitorlfaria

Description

@vitorlfaria

When I open an .cs file it shows this error: /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning language server with cmd: `{ "-z", "--hostPID", "46227", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" , "FormattingOptions:EnableEditorConfigSupport=true", "Sdk:IncludePrereleases=true" }` failed. The language server is either not installed, missing from PATH, or not executable.

Another question, where do I put the configurations mentioned on the docs?
this part:

{
    lsp = {
        -- Sets if you want to use omnisharp as your LSP
        omnisharp = {
        -- When set to false, csharp.nvim won't launch omnisharp automatically.
            enable = true,
            -- When set, csharp.nvim won't install omnisharp automatically. Instead, the omnisharp instance in the cmd_path will be used.
            cmd_path = nil,
            -- The default timeout when communicating with omnisharp
            default_timeout = 1000,
            -- Settings that'll be passed to the omnisharp server
            enable_editor_config_support = true,
            organize_imports = true,
            load_projects_on_demand = false,
            enable_analyzers_support = true,
            enable_import_completion = true,
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions