Skip to content

[coc.nvim] Server languageserver.vimls failed to start: Launching server "languageserver.vimls" using command vim-language-server failed. #56

Closed
@Linerre

Description

@Linerre

Describe the bug
I tried vim-langauge-server (installed via npm) with both vim-lsc plugin and coc.nvim plugin, but none of them could start the server properly.

To Reproduce
Steps to reproduce the behavior:

  1. I installed vim-language-server with npm install -g vim-language-server. Below screenshots can confirm my installation is successful.
  2. I copied all the config from README to my coc-settings.json, and there is nothing more in my coc config
  3. When I tried to start vim to open my vimrc (or whichever *.vim file), I got the titled error:
  4. The error message when using vim-language-server with vim-lsc is different, so I reported the issue there #421

Expected behavior
I just expected vim-language-server to act as what is shown in the project's README with the given/recommended config.

Screenshots
Here are screenshots relevant to the problem:

  1. vim-language-server was installed successfully
    vim-language-server
  2. start the server from the command line; no errors
    start server
  3. Entering a .vim file, say my vimrc, I got an error from coc.nvim:
    server failed to start
  4. I run CocDiagnostics, but got nothing:
    coc-dianostics
  5. my coc-settings.json is very simple (I removed comments and turned isNeovim to false):
    coc-settings.json

Desktop (please complete the following information):

  • OS: Windows 10
  • Vim 8.2 (installed via scoop)
  • Terminal: ConEmu
  • Shell: PowerShell

Log:
If I start vim with vim -V15mylog, there will be over 11,000 lines of log. So I don't think a log file will be helpful at here. If you need me to log the error in specific way, please let me know.

Thank you.

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