neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.25k stars 2.04k forks source link

There is no `local omnisharp_bin = "/path/to/omnisharp-repo/run"` anymore #1719

Closed nyngwang closed 2 years ago

nyngwang commented 2 years ago

Description

I just installed omnisharp via nvim-lsp-installer. And follow the setup:

local pid = vim.fn.getpid()
-- On linux/darwin if using a release build, otherwise under scripts/OmniSharp(.Core)(.cmd)
local omnisharp_bin = "/path/to/omnisharp-repo/run"
-- on Windows
-- local omnisharp_bin = "/path/to/omnisharp/OmniSharp.exe"
require'lspconfig'.omnisharp.setup{
    cmd = { omnisharp_bin, "--languageserver" , "--hostPID", tostring(pid) };
    ...
}

But there is no .../run/ folder/executable anymore.

Neovim version

NVIM v0.7.0-dev+1082-g046950f63 Build type: Release LuaJIT 2.1.0-beta3

Nvim-lspconfig version

0da0023

Operating system and version

macOS 12.2

Affected language servers

omnisharp

Steps to reproduce

  1. :LspUninstall omnisharp
  2. :LspInstall omnisharp

Actual behavior

Spawning language server with cmd: `/Users/foo/.local/share/nvim/lsp_servers/omnisharp/omnisharp/run` failed. The language server is either not installed, missing from PATH, or not executable.

Expected behavior

No response

Minimal config

The same as wiki.

LSP log

[START][2022-02-14 05:45:18] LSP logging initiated [START][2022-02-14 05:47:18] LSP logging initiated [START][2022-02-14 05:49:04] LSP logging initiated [START][2022-02-14 05:59:20] LSP logging initiated [START][2022-02-14 05:59:27] LSP logging initiated [START][2022-02-14 06:02:02] LSP logging initiated [START][2022-02-14 06:03:19] LSP logging initiated [START][2022-02-14 06:09:26] LSP logging initiated [START][2022-02-14 06:10:51] LSP logging initiated [START][2022-02-14 06:11:13] LSP logging initiated [START][2022-02-14 06:12:13] LSP logging initiated

mjlbach commented 2 years ago

nvim-lsp-installer is an unsupported 3rd party plugin

local omnisharp_bin = "/path/to/omnisharp-repo/run"

it should be obvious this is a placeholder path that you need to modify.

nyngwang commented 2 years ago

@mjlbach: Yes. I did change the prefix to my path. There is no .../run under the path.

mjlbach commented 2 years ago

Are you asking how to set up omnisharp with or without nvim-lsp-installer?

nyngwang commented 2 years ago

@mjlbach: with nvim-lsp-installer. Sorry I was creating a new issue there because I forgot that I was initially asking about csharp_ls, as you have pointed out.

mjlbach commented 2 years ago

with nvim-lsp-installer

Then I can't help you, you can ask on the discourse and maybe someone else will.

nyngwang commented 2 years ago

@mjlbach: OK, never mind. Let me try to install it manually.