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 spawning language server #23

Open
vitorlfaria opened this issue Dec 11, 2024 · 1 comment
Open

Error spawning language server #23

vitorlfaria opened this issue Dec 11, 2024 · 1 comment

Comments

@vitorlfaria
Copy link

vitorlfaria commented Dec 11, 2024

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,
...
@a-usr
Copy link

a-usr commented Dec 18, 2024

Did you work this out or do you still need help

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