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

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

Closed
Linerre opened this issue Apr 20, 2021 · 10 comments

Comments

@Linerre
Copy link

Linerre commented Apr 20, 2021

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.

@iamcco
Copy link
Owner

iamcco commented Apr 20, 2021

Open terminal in vim then check if command vim-language-server exists.

@Linerre
Copy link
Author

Linerre commented Apr 20, 2021

Thanks for reply. Here is the result. The first attempt failed because I forgot to add --stdio. See the second please:
terminal-vim

After trying to start the server from the terminal in Vim, it just hang there, as if I started it from my normal terminal emulator.
What should I do next?

@iamcco
Copy link
Owner

iamcco commented Apr 20, 2021

Paste coc log here.

@Linerre
Copy link
Author

Linerre commented Apr 20, 2021

Thank you. Sure. I followed the steps mentioned in this comment for coc.nvim issue#1827.

It seems the log function didn't work well:
coc-log-error

The full log file content:

3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#cal3:22:09 PM DEBUG [transport] - request to vim: 3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api3:22:09 PM DEBUG [transport] - response from vim cost: -1,22ms
3:22:09 PM DEBUG [transport] - response from vim cost: -2,6ms
3:22:09 PM DEBUG [transport] - request to vim: -3,nvim_get_vvar,[
  "vim_did_enter"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -3,11ms
3:22:09 PM DEBUG [transport] - request to vim: -4,nvim_eval,[
  "&runtimepath"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -4,14ms
3:22:09 PM DEBUG [transport] - request to vim: -5,nvim_call_function,[
  "coc#util#vim_info",
  []
]
3:22:09 PM DEBUG [transport] - response from vim cost: -5,13ms
3:22:09 PM DEBUG [transport] - request to vim: -6,nvim_eval,[
  "[map(getbufinfo({'bufloaded': 1}),'v:val[\"bufnr\"]'),bufnr('%'),win_getid()]"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -6,15ms
3:22:09 PM DEBUG [transport] - request to vim: -7,nvim_call_function,[
  "coc#util#get_bufoptions",
  [
    1,
    10485760
  ]
]
3:22:09 PM DEBUG [transport] - response from vim cost: -7,15ms
3:22:09 PM DEBUG [transport] - request to vim: -8,nvim_buf_attach,[
  1,
  true,
  {}
]
3:22:09 PM DEBUG [transport] - response from vim cost: -8,11ms
3:22:09 PM DEBUG [transport] - request to vim: -9,nvim_command_output,[
  "echo $VIMRUNTIME"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -9,8ms
3:22:09 PM DEBUG [transport] - request to vim: -10,nvim_get_option,[
  "runtimepath"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -10,12ms
3:22:09 PM DEBUG [transport] - request to vim: -11,nvim_get_option,[
  "iskeyword"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -11,1ms
3:22:09 PM DEBUG [transport] - request to vim: -12,nvim_command,[
  "source C:\\Users\\zl37\\AppData\\Local\\Temp\\coc.nvim-11060\\coc-11060.vim"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -12,18ms
3:22:09 PM DEBUG [transport] - request to vim: -13,nvim_get_current_buf,[]
3:22:09 PM DEBUG [transport] - response from vim cost: -13,16ms
3:22:09 PM DEBUG [transport] - request to vim: -14,nvim_buf_get_option,[
  1,
  "iskeyword"
]
3:22:09 PM DEBUG [transport] - response from vim cost: -14,15ms
3:22:10 PM DEBUG [transport] - request to vim: -15,nvim_eval,[
  "[bufnr(\"%\"),coc#util#cursor(),&filetype,mode()]"
]
3:22:10 PM DEBUG [transport] - response from vim cost: -15,15ms
3:22:13 PM DEBUG [transport] - request to vim: -16,nvim_call_function,[
  "coc#util#get_bufoptions",
  [
    2,
    10485760
  ]
]
3:22:13 PM DEBUG [transport] - response from vim cost: -16,5ms
3:22:13 PM DEBUG [transport] - request to vim: -17,nvim_buf_attach,[
  2,
  true,
  {}
]
3:22:13 PM DEBUG [transport] - response from vim cost: -17,25ms
3:22:14 PM DEBUG [transport] - request to vim: -18,nvim_eval,[
  "[bufnr(\"%\"),coc#util#cursor(),&filetype,mode()]"
]
3:22:14 PM DEBUG [transport] - response from vim cost: -18,17ms
3:22:30 PM DEBUG [transport] - request to vim: -19,nvim_call_function,[
  "coc#highlight#clear_highlight",
  [
    2,
    "diagnostic",
    0,
    -1
  ]
]
3:22:30 PM DEBUG [transport] - response from vim cost: -19,28ms
3:22:30 PM DEBUG [transport] - request to vim: -20,nvim_eval,[
  "[bufnr(\"%\"),coc#util#cursor(),&filetype,mode()]"
]
3:22:30 PM DEBUG [transport] - response from vim cost: -20,15ms
3:23:19 PM DEBUG [transport] - request to vim: -21,nvim_get_current_win,[]
3:23:19 PM DEBUG [transport] - response from vim cost: -21,18ms
et_option"
        },
        {
          "name": "nvim_list_wins"
        },
        {
          "name": "nvim_set_client_info"
        },
        {
          "name": "nvim_win_set_cursor"
        },
        {
          "name": "nvim_win_set_option"
        },
        {
          "name": "nvim_eval"
        },
        {
          "name": "nvim_tabpage_get_var"
        },
        {
          "name": "nvim_buf_get_option"
        },
        {
          "name": "nvim_tabpage_del_var"
        },
        {
          "name": "nvim_buf_get_name"
        },
        {
          "name": "nvim_list_bufs"
        },
        {
          "name": "nvim_win_set_buf"
        },
        {
          "name": "nvim_win_close"
        },
        {
          "name": "nvim_command_output"
        },
        {
          "name": "nvim_command"
        },
        {
          "name": "nvim_tabpage_get_win"
        },
        {
          "name": "nvim_win_set_var"
        },
        {
          "name": "nvim_buf_add_highlight"
        },
        {
          "name": "nvim_buf_set_var"
        },
        {
          "name": "nvim_win_get_number"
        },
        {
          "name": "nvim_strwidth"
        },
        {
          "name": "nvim_buf_set_lines"
        },
        {
          "name": "nvim_err_writeln"
        },
        {
          "name": "nvim_buf_set_option"
        },
        {
          "name": "nvim_list_tabpages"
        },
        {
          "name": "nvim_set_option"
        },
        {
          "name": "nvim_buf_get_lines"
        },
        {
          "name": "nvim_buf_get_changedtick"
        },
        {
          "name": "nvim_win_get_tabpage"
        },
        {
          "name": "nvim_call_function"
        },
        {
          "name": "nvim_buf_is_valid"
        }
      ]
    }
  ]
]
3:22:09 PM DEBUG [connection] - received response: -2,[
  null,
  null
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "set_client_info",
    [
      "coc",
      {
        "major": 0,
        "minor": 0,
        "patch": 80
      },
      "remote",
      {},
      {}
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "get_vvar",
    [
      "vim_did_enter"
    ]
  ],
  -3
]
3:22:09 PM DEBUG [connection] - received response: -3,[
  null,
  1
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "eval",
    [
      "&runtimepath"
    ]
  ],
  -4
]
3:22:09 PM DEBUG [connection] - received response: -4,[
  null,
  "C:\\Users\\zl37/vimfiles,C:\\Users\\zl37\\vimfiles\\plugged\\vim-mucomplete,C:\\Users\\zl37\\vimfiles\\plugged\\gruvbox,C:\\Users\\zl37\\vimfiles\\plugged\\coc.nvim,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current/vimfiles,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current/vimfiles/after,C:\\Users\\zl37/vimfiles/after"
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "call_function",
    [
      "coc#util#vim_info",
      []
    ]
  ],
  -5
]
3:22:09 PM DEBUG [connection] - received response: -5,[
  null,
  {
    "pid": 13712,
    "version": "8022767",
    "background": "light",
    "dialog": true,
    "columns": 192,
    "completeOpt": "menu,preview",
    "mode": "n",
    "textprop": true,
    "progpath": "C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current\\vim.exe",
    "isCygwin": false,
    "disabledSources": {},
    "apiversion": 8,
    "isMacvim": false,
    "floating": false,
    "extensionRoot": "C:\\Users\\zl37\\AppData\\Local\\coc/extensions",
    "lines": 46,
    "cmdheight": 1,
    "config": {},
    "isVim": true,
    "workspaceFolders": null,
    "pumevent": 1,
    "isiTerm": 0,
    "filetypeMap": {},
    "globalExtensions": [],
    "sign": 1,
    "locationlist": 1,
    "colorscheme": "gruvbox",
    "vimCommands": [],
    "runtimepath": "C:\\Users\\zl37/vimfiles,C:\\Users\\zl37\\vimfiles\\plugged\\vim-mucomplete,C:\\Users\\zl37\\vimfiles\\plugged\\gruvbox,C:\\Users\\zl37\\vimfiles\\plugged\\coc.nvim,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current/vimfiles,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current/vimfiles/after,C:\\Users\\zl37/vimfiles/after",
    "guicursor": "n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block"
  }
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "eval",
    [
      "[map(getbufinfo({'bufloaded': 1}),'v:val[\"bufnr\"]'),bufnr('%'),win_getid()]"
    ]
  ],
  -6
]
3:22:09 PM DEBUG [connection] - received response: -6,[
  null,
  [
    [
      1
    ],
    1,
    1000
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "call_function",
    [
      "coc#util#get_bufoptions",
      [
        1,
        10485760
      ]
    ]
  ],
  -7
]
3:22:09 PM DEBUG [connection] - received response: -7,[
  null,
  {
    "changedtick": 3,
    "variables": {},
    "winid": 1000,
    "eol": 1,
    "previewwindow": false,
    "bufname": ".\\vimrc",
    "fullpath": "C:\\Users\\zl37\\vimfiles\\vimrc",
    "filetype": "vim",
    "buftype": "",
    "lines": [
      "\" MY VIMRC -- A suckless, modularized yet working vimrc",
      "\" Author: Errelin",
      "\" Last Modified: 2021-4-11",
      "",
      "",
      "\" Necessary plugins",
      "call plug#begin('~/vimfiles/plugged')",
      "\"Plug 'natebosch/vim-lsc'",
      "Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }",
      "Plug 'lifepillar/vim-mucomplete'",
      "Plug 'morhetz/gruvbox'         \" no need for these themes",
      "Plug 'neoclide/coc.nvim', {'branch': 'release'}",
      "\"Plug 'ajh17/VimCompletesMe'",
      "call plug#end()",
      "",
      "let g:node_client_debug = 1",
      "",
      "runtime init.d\\general.vim",
      "runtime init.d\\nerdtree.vim",
      "\"runtime init.d\\vimlsc.vim",
      "",
      "",
      "",
      "",
      ""
    ],
    "iskeyword": "@,48-57,_,192-255,#",
    "size": 545
  }
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "buf_attach",
    [
      1,
      true,
      {}
    ]
  ],
  -8
]
3:22:09 PM DEBUG [connection] - received response: -8,[
  null,
  1
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_function",
    [
      "coc#_watch",
      [
        "coc_sources_disable_map"
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_atomic",
    [
      [
        [
          "nvim_command",
          [
            "sign define CocError linehl=CocErrorLine texthl=CocErrorSign text=>>"
          ]
        ],
        [
          "nvim_command",
          [
            "sign define CocWarning linehl=CocWarningLine texthl=CocWarningSign text=⚠"
          ]
        ],
        [
          "nvim_command",
          [
            "sign define CocInfo linehl=CocInfoLine texthl=CocInfoSign text=>>"
          ]
        ],
        [
          "nvim_command",
          [
            "sign define CocHint linehl=CocHintLine texthl=CocHintSign text=>>"
          ]
        ]
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "command",
    [
      "sign define CocSelected text=* texthl=CocSelectedText linehl=CocSelectedLine"
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "set_var",
    [
      "coc_workspace_initialized",
      1
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "set_var",
    [
      "WorkspaceFolders",
      [
        "c:\\Users\\zl37\\vimfiles"
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "command_output",
    [
      "echo $VIMRUNTIME"
    ]
  ],
  -9
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_atomic",
    [
      [
        [
          "nvim_call_function",
          [
            "setbufline",
            [
              "output:///languageserver.vimls",
              "$",
              "[Error  - 3:22:09 PM] Starting client failed "
            ]
          ]
        ],
        [
          "nvim_call_function",
          [
            "appendbufline",
            [
              "output:///languageserver.vimls",
              "$",
              [
                ""
              ]
            ]
          ]
        ]
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_atomic",
    [
      [
        [
          "nvim_call_function",
          [
            "setbufline",
            [
              "output:///languageserver.vimls",
              "$",
              "Launching server \"languageserver.vimls\" using command vim-language-server failed."
            ]
          ]
        ],
        [
          "nvim_call_function",
          [
            "appendbufline",
            [
              "output:///languageserver.vimls",
              "$",
              [
                ""
              ]
            ]
          ]
        ]
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_function",
    [
      "coc#util#timer",
      [
        "coc#util#echo_messages",
        [
          "Error",
          [
            "[coc.nvim] Server languageserver.vimls failed to start: Launching server \"languageserver.vimls\" using command vim-language-server failed."
          ]
        ]
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_atomic",
    [
      [
        [
          "nvim_call_function",
          [
            "setbufline",
            [
              "output:///languageserver.vimls",
              "$",
              "[Error  - 3:22:09 PM] spawn vim-language-server ENOENT"
            ]
          ]
        ],
        [
          "nvim_call_function",
          [
            "appendbufline",
            [
              "output:///languageserver.vimls",
              "$",
              [
                ""
              ]
            ]
          ]
        ]
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - received response: -9,[
  null,
  "\nC:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current"
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "get_option",
    [
      "runtimepath"
    ]
  ],
  -10
]
3:22:09 PM DEBUG [connection] - received response: -10,[
  null,
  "C:\\Users\\zl37/vimfiles,C:\\Users\\zl37\\vimfiles\\plugged\\vim-mucomplete,C:\\Users\\zl37\\vimfiles\\plugged\\gruvbox,C:\\Users\\zl37\\vimfiles\\plugged\\coc.nvim,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current/vimfiles,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current,C:\\Users\\zl37\\scoop\\apps\\vim-nightly\\current/vimfiles/after,C:\\Users\\zl37/vimfiles/after"
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "get_option",
    [
      "iskeyword"
    ]
  ],
  -11
]
3:22:09 PM DEBUG [connection] - received response: -11,[
  null,
  "@,48-57,_,192-255,#"
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "command",
    [
      "source C:\\Users\\zl37\\AppData\\Local\\Temp\\coc.nvim-11060\\coc-11060.vim"
    ]
  ],
  -12
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "set_var",
    [
      "coc_service_initialized",
      1
    ]
  ]
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_function",
    [
      "coc#util#do_autocmd",
      [
        "CocNvimInit"
      ]
    ]
  ]
]
3:22:09 PM DEBUG [connection] - received response: -12,[
  null,
  0
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "get_current_buf",
    []
  ],
  -13
]
3:22:09 PM DEBUG [connection] - received response: -13,[
  null,
  1
]
3:22:09 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "buf_get_option",
    [
      1,
      "iskeyword"
    ]
  ],
  -14
]
3:22:09 PM DEBUG [connection] - received response: -14,[
  null,
  "@,48-57,_,192-255,#"
]
3:22:10 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "CursorMoved",
    1,
    [
      2,
      1
    ]
  ]
]
3:22:10 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "eval",
    [
      "[bufnr(\"%\"),coc#util#cursor(),&filetype,mode()]"
    ]
  ],
  -15
]
3:22:10 PM DEBUG [connection] - received response: -15,[
  null,
  [
    1,
    [
      1,
      0
    ],
    "vim",
    "n"
  ]
]
3:22:13 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "WinLeave",
    1000
  ]
]
3:22:13 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "WinEnter",
    1001
  ]
]
3:22:13 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "BufCreate",
    2
  ]
]
3:22:13 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "call_function",
    [
      "coc#util#get_bufoptions",
      [
        2,
        10485760
      ]
    ]
  ],
  -16
]
3:22:13 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "BufEnter",
    2
  ]
]
3:22:13 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "BufWinEnter",
    2,
    1001
  ]
]
3:22:13 PM DEBUG [connection] - received response: -16,[
  null,
  {
    "changedtick": 2,
    "variables": {},
    "winid": 1001,
    "eol": 1,
    "previewwindow": false,
    "bufname": "C:\\Users\\zl37\\AppData\\Local\\Temp\\VP59EA1.tmp",
    "fullpath": "C:\\Users\\zl37\\AppData\\Local\\Temp\\VP59EA1.tmp",
    "filetype": "",
    "buftype": "",
    "lines": [
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#cal3:22:09 PM DEBUG [transport] - request to vim: 3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api3:22:09 PM DEBUG [transport] - response from vim cost: -1,22ms",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -2,6ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -3,nvim_get_vvar,[",
      "  \"vim_did_enter\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -3,11ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -4,nvim_eval,[",
      "  \"&runtimepath\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -4,14ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -5,nvim_call_function,[",
      "  \"coc#util#vim_info\",",
      "  []",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -5,13ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -6,nvim_eval,[",
      "  \"[map(getbufinfo({'bufloaded': 1}),'v:val[\\\"bufnr\\\"]'),bufnr('%'),win_getid()]\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -6,15ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -7,nvim_call_function,[",
      "  \"coc#util#get_bufoptions\",",
      "  [",
      "    1,",
      "    10485760",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -7,15ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -8,nvim_buf_attach,[",
      "  1,",
      "  true,",
      "  {}",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -8,11ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -9,nvim_command_output,[",
      "  \"echo $VIMRUNTIME\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -9,8ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -10,nvim_get_option,[",
      "  \"runtimepath\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -10,12ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -11,nvim_get_option,[",
      "  \"iskeyword\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -11,1ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -12,nvim_command,[",
      "  \"source C:\\\\Users\\\\zl37\\\\AppData\\\\Local\\\\Temp\\\\coc.nvim-11060\\\\coc-11060.vim\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -12,18ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -13,nvim_get_current_buf,[]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -13,16ms",
      "3:22:09 PM DEBUG [transport] - request to vim: -14,nvim_buf_get_option,[",
      "  1,",
      "  \"iskeyword\"",
      "]",
      "3:22:09 PM DEBUG [transport] - response from vim cost: -14,15ms",
      "3:22:10 PM DEBUG [transport] - request to vim: -15,nvim_eval,[",
      "  \"[bufnr(\\\"%\\\"),coc#util#cursor(),&filetype,mode()]\"",
      "]",
      "3:22:10 PM DEBUG [transport] - response from vim cost: -15,15ms",
      "",
      "        },",
      "        {",
      "          \"name\": \"nvim_feedkeys\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_get_vvar\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_tabpage_get_number\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_get_current_buf\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_get_option\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_get_cursor\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_get_current_line\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_get_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_get_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_set_current_tabpage\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_clear_namespace\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_err_write\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_del_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_call_dict_function\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_set_current_line\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_get_api_info\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_unsubscribe\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_get_option\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_list_wins\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_set_client_info\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_set_cursor\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_set_option\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_eval\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_tabpage_get_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_get_option\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_tabpage_del_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_get_name\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_list_bufs\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_set_buf\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_close\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_command_output\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_command\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_tabpage_get_win\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_set_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_add_highlight\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_set_var\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_get_number\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_strwidth\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_set_lines\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_err_writeln\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_set_option\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_list_tabpages\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_set_option\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_get_lines\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_get_changedtick\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_win_get_tabpage\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_call_function\"",
      "        },",
      "        {",
      "          \"name\": \"nvim_buf_is_valid\"",
      "        }",
      "      ]",
      "    }",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -2,[",
      "  null,",
      "  null",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"set_client_info\",",
      "    [",
      "      \"coc\",",
      "      {",
      "        \"major\": 0,",
      "        \"minor\": 0,",
      "        \"patch\": 80",
      "      },",
      "      \"remote\",",
      "      {},",
      "      {}",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"get_vvar\",",
      "    [",
      "      \"vim_did_enter\"",
      "    ]",
      "  ],",
      "  -3",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -3,[",
      "  null,",
      "  1",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"eval\",",
      "    [",
      "      \"&runtimepath\"",
      "    ]",
      "  ],",
      "  -4",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -4,[",
      "  null,",
      "  \"C:\\\\Users\\\\zl37/vimfiles,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\vim-mucomplete,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\gruvbox,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\coc.nvim,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current/vimfiles,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current/vimfiles/after,C:\\\\Users\\\\zl37/vimfiles/after\"",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"call_function\",",
      "    [",
      "      \"coc#util#vim_info\",",
      "      []",
      "    ]",
      "  ],",
      "  -5",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -5,[",
      "  null,",
      "  {",
      "    \"pid\": 13712,",
      "    \"version\": \"8022767\",",
      "    \"background\": \"light\",",
      "    \"dialog\": true,",
      "    \"columns\": 192,",
      "    \"completeOpt\": \"menu,preview\",",
      "    \"mode\": \"n\",",
      "    \"textprop\": true,",
      "    \"progpath\": \"C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current\\\\vim.exe\",",
      "    \"isCygwin\": false,",
      "    \"disabledSources\": {},",
      "    \"apiversion\": 8,",
      "    \"isMacvim\": false,",
      "    \"floating\": false,",
      "    \"extensionRoot\": \"C:\\\\Users\\\\zl37\\\\AppData\\\\Local\\\\coc/extensions\",",
      "    \"lines\": 46,",
      "    \"cmdheight\": 1,",
      "    \"config\": {},",
      "    \"isVim\": true,",
      "    \"workspaceFolders\": null,",
      "    \"pumevent\": 1,",
      "    \"isiTerm\": 0,",
      "    \"filetypeMap\": {},",
      "    \"globalExtensions\": [],",
      "    \"sign\": 1,",
      "    \"locationlist\": 1,",
      "    \"colorscheme\": \"gruvbox\",",
      "    \"vimCommands\": [],",
      "    \"runtimepath\": \"C:\\\\Users\\\\zl37/vimfiles,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\vim-mucomplete,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\gruvbox,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\coc.nvim,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current/vimfiles,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current/vimfiles/after,C:\\\\Users\\\\zl37/vimfiles/after\",",
      "    \"guicursor\": \"n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block\"",
      "  }",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"eval\",",
      "    [",
      "      \"[map(getbufinfo({'bufloaded': 1}),'v:val[\\\"bufnr\\\"]'),bufnr('%'),win_getid()]\"",
      "    ]",
      "  ],",
      "  -6",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -6,[",
      "  null,",
      "  [",
      "    [",
      "      1",
      "    ],",
      "    1,",
      "    1000",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"call_function\",",
      "    [",
      "      \"coc#util#get_bufoptions\",",
      "      [",
      "        1,",
      "        10485760",
      "      ]",
      "    ]",
      "  ],",
      "  -7",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -7,[",
      "  null,",
      "  {",
      "    \"changedtick\": 3,",
      "    \"variables\": {},",
      "    \"winid\": 1000,",
      "    \"eol\": 1,",
      "    \"previewwindow\": false,",
      "    \"bufname\": \".\\\\vimrc\",",
      "    \"fullpath\": \"C:\\\\Users\\\\zl37\\\\vimfiles\\\\vimrc\",",
      "    \"filetype\": \"vim\",",
      "    \"buftype\": \"\",",
      "    \"lines\": [",
      "      \"\\\" MY VIMRC -- A suckless, modularized yet working vimrc\",",
      "      \"\\\" Author: Errelin\",",
      "      \"\\\" Last Modified: 2021-4-11\",",
      "      \"\",",
      "      \"\",",
      "      \"\\\" Necessary plugins\",",
      "      \"call plug#begin('~/vimfiles/plugged')\",",
      "      \"\\\"Plug 'natebosch/vim-lsc'\",",
      "      \"Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }\",",
      "      \"Plug 'lifepillar/vim-mucomplete'\",",
      "      \"Plug 'morhetz/gruvbox'         \\\" no need for these themes\",",
      "      \"Plug 'neoclide/coc.nvim', {'branch': 'release'}\",",
      "      \"\\\"Plug 'ajh17/VimCompletesMe'\",",
      "      \"call plug#end()\",",
      "      \"\",",
      "      \"let g:node_client_debug = 1\",",
      "      \"\",",
      "      \"runtime init.d\\\\general.vim\",",
      "      \"runtime init.d\\\\nerdtree.vim\",",
      "      \"\\\"runtime init.d\\\\vimlsc.vim\",",
      "      \"\",",
      "      \"\",",
      "      \"\",",
      "      \"\",",
      "      \"\"",
      "    ],",
      "    \"iskeyword\": \"@,48-57,_,192-255,#\",",
      "    \"size\": 545",
      "  }",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"buf_attach\",",
      "    [",
      "      1,",
      "      true,",
      "      {}",
      "    ]",
      "  ],",
      "  -8",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -8,[",
      "  null,",
      "  1",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_function\",",
      "    [",
      "      \"coc#_watch\",",
      "      [",
      "        \"coc_sources_disable_map\"",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_atomic\",",
      "    [",
      "      [",
      "        [",
      "          \"nvim_command\",",
      "          [",
      "            \"sign define CocError linehl=CocErrorLine texthl=CocErrorSign text=>>\"",
      "          ]",
      "        ],",
      "        [",
      "          \"nvim_command\",",
      "          [",
      "            \"sign define CocWarning linehl=CocWarningLine texthl=CocWarningSign text=⚠\"",
      "          ]",
      "        ],",
      "        [",
      "          \"nvim_command\",",
      "          [",
      "            \"sign define CocInfo linehl=CocInfoLine texthl=CocInfoSign text=>>\"",
      "          ]",
      "        ],",
      "        [",
      "          \"nvim_command\",",
      "          [",
      "            \"sign define CocHint linehl=CocHintLine texthl=CocHintSign text=>>\"",
      "          ]",
      "        ]",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"command\",",
      "    [",
      "      \"sign define CocSelected text=* texthl=CocSelectedText linehl=CocSelectedLine\"",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"set_var\",",
      "    [",
      "      \"coc_workspace_initialized\",",
      "      1",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"set_var\",",
      "    [",
      "      \"WorkspaceFolders\",",
      "      [",
      "        \"c:\\\\Users\\\\zl37\\\\vimfiles\"",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"command_output\",",
      "    [",
      "      \"echo $VIMRUNTIME\"",
      "    ]",
      "  ],",
      "  -9",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_atomic\",",
      "    [",
      "      [",
      "        [",
      "          \"nvim_call_function\",",
      "          [",
      "            \"setbufline\",",
      "            [",
      "              \"output:///languageserver.vimls\",",
      "              \"$\",",
      "              \"[Error  - 3:22:09 PM] Starting client failed \"",
      "            ]",
      "          ]",
      "        ],",
      "        [",
      "          \"nvim_call_function\",",
      "          [",
      "            \"appendbufline\",",
      "            [",
      "              \"output:///languageserver.vimls\",",
      "              \"$\",",
      "              [",
      "                \"\"",
      "              ]",
      "            ]",
      "          ]",
      "        ]",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_atomic\",",
      "    [",
      "      [",
      "        [",
      "          \"nvim_call_function\",",
      "          [",
      "            \"setbufline\",",
      "            [",
      "              \"output:///languageserver.vimls\",",
      "              \"$\",",
      "              \"Launching server \\\"languageserver.vimls\\\" using command vim-language-server failed.\"",
      "            ]",
      "          ]",
      "        ],",
      "        [",
      "          \"nvim_call_function\",",
      "          [",
      "            \"appendbufline\",",
      "            [",
      "              \"output:///languageserver.vimls\",",
      "              \"$\",",
      "              [",
      "                \"\"",
      "              ]",
      "            ]",
      "          ]",
      "        ]",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_function\",",
      "    [",
      "      \"coc#util#timer\",",
      "      [",
      "        \"coc#util#echo_messages\",",
      "        [",
      "          \"Error\",",
      "          [",
      "            \"[coc.nvim] Server languageserver.vimls failed to start: Launching server \\\"languageserver.vimls\\\" using command vim-language-server failed.\"",
      "          ]",
      "        ]",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_atomic\",",
      "    [",
      "      [",
      "        [",
      "          \"nvim_call_function\",",
      "          [",
      "            \"setbufline\",",
      "            [",
      "              \"output:///languageserver.vimls\",",
      "              \"$\",",
      "              \"[Error  - 3:22:09 PM] spawn vim-language-server ENOENT\"",
      "            ]",
      "          ]",
      "        ],",
      "        [",
      "          \"nvim_call_function\",",
      "          [",
      "            \"appendbufline\",",
      "            [",
      "              \"output:///languageserver.vimls\",",
      "              \"$\",",
      "              [",
      "                \"\"",
      "              ]",
      "            ]",
      "          ]",
      "        ]",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -9,[",
      "  null,",
      "  \"\\nC:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current\"",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"get_option\",",
      "    [",
      "      \"runtimepath\"",
      "    ]",
      "  ],",
      "  -10",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -10,[",
      "  null,",
      "  \"C:\\\\Users\\\\zl37/vimfiles,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\vim-mucomplete,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\gruvbox,C:\\\\Users\\\\zl37\\\\vimfiles\\\\plugged\\\\coc.nvim,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current/vimfiles,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current,C:\\\\Users\\\\zl37\\\\scoop\\\\apps\\\\vim-nightly\\\\current/vimfiles/after,C:\\\\Users\\\\zl37/vimfiles/after\"",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"get_option\",",
      "    [",
      "      \"iskeyword\"",
      "    ]",
      "  ],",
      "  -11",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -11,[",
      "  null,",
      "  \"@,48-57,_,192-255,#\"",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"command\",",
      "    [",
      "      \"source C:\\\\Users\\\\zl37\\\\AppData\\\\Local\\\\Temp\\\\coc.nvim-11060\\\\coc-11060.vim\"",
      "    ]",
      "  ],",
      "  -12",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"set_var\",",
      "    [",
      "      \"coc_service_initialized\",",
      "      1",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#notify\",",
      "  [",
      "    \"call_function\",",
      "    [",
      "      \"coc#util#do_autocmd\",",
      "      [",
      "        \"CocNvimInit\"",
      "      ]",
      "    ]",
      "  ]",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -12,[",
      "  null,",
      "  0",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"get_current_buf\",",
      "    []",
      "  ],",
      "  -13",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -13,[",
      "  null,",
      "  1",
      "]",
      "3:22:09 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"buf_get_option\",",
      "    [",
      "      1,",
      "      \"iskeyword\"",
      "    ]",
      "  ],",
      "  -14",
      "]",
      "3:22:09 PM DEBUG [connection] - received response: -14,[",
      "  null,",
      "  \"@,48-57,_,192-255,#\"",
      "]",
      "3:22:10 PM DEBUG [connection] - received notification: [",
      "  \"CocAutocmd\",",
      "  [",
      "    \"CursorMoved\",",
      "    1,",
      "    [",
      "      2,",
      "      1",
      "    ]",
      "  ]",
      "]",
      "3:22:10 PM DEBUG [connection] - send to vim: [",
      "  \"call\",",
      "  \"coc#api#call\",",
      "  [",
      "    \"eval\",",
      "    [",
      "      \"[bufnr(\\\"%\\\"),coc#util#cursor(),&filetype,mode()]\"",
      "    ]",
      "  ],",
      "  -15",
      "]",
      "3:22:10 PM DEBUG [connection] - received response: -15,[",
      "  null,",
      "  [",
      "    1,",
      "    [",
      "      1,",
      "      0",
      "    ],",
      "    \"vim\",",
      "    \"n\"",
      "  ]",
      "]",
      "3:22:13 PM DEBUG [connection] - received notification: [",
      "  \"CocAutocmd\",",
      "  [",
      "    \"WinLeave\",",
      "    1000",
      "  ]",
      "]",
      "3:22:13 PM DEBUG [connection] - received notification: [",
      "  \"CocAutocmd\",",
      "  [",
      "    \"WinEnter\",",
      "    1001",
      "  ]",
      "]"
    ],
    "iskeyword": "@,48-57,_,192-255",
    "size": 16481
  }
]
3:22:13 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "buf_attach",
    [
      2,
      true,
      {}
    ]
  ],
  -17
]
3:22:13 PM DEBUG [connection] - received response: -17,[
  null,
  1
]
3:22:13 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "CursorMoved",
    2,
    [
      1,
      1
    ]
  ]
]
3:22:14 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "eval",
    [
      "[bufnr(\"%\"),coc#util#cursor(),&filetype,mode()]"
    ]
  ],
  -18
]
3:22:14 PM DEBUG [connection] - received response: -18,[
  null,
  [
    2,
    [
      0,
      0
    ],
    "",
    "n"
  ]
]
3:22:17 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "CursorHold",
    2
  ]
]
3:22:30 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "WinLeave",
    1001
  ]
]
3:22:30 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "BufWinLeave",
    2,
    1001
  ]
]
3:22:30 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "BufUnload",
    2
  ]
]
3:22:30 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "call_function",
    [
      "coc#highlight#clear_highlight",
      [
        2,
        "diagnostic",
        0,
        -1
      ]
    ]
  ],
  -19
]
3:22:30 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#notify",
  [
    "call_atomic",
    [
      [
        [
          "nvim_call_function",
          [
            "sign_unplace",
            [
              "CocDiagnostic",
              {
                "buffer": 2
              }
            ]
          ]
        ],
        [
          "nvim_call_function",
          [
            "coc#util#set_buf_var",
            [
              2,
              "coc_diagnostic_info",
              {
                "error": 0,
                "warning": 0,
                "information": 0,
                "hint": 0,
                "lnums": [
                  0,
                  0,
                  0,
                  0
                ]
              }
            ]
          ]
        ],
        [
          "nvim_call_function",
          [
            "coc#util#do_autocmd",
            [
              "CocDiagnosticChange"
            ]
          ]
        ]
      ]
    ]
  ]
]
3:22:30 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "WinEnter",
    1000
  ]
]
3:22:30 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "BufEnter",
    1
  ]
]
3:22:30 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "CursorMoved",
    1,
    [
      2,
      1
    ]
  ]
]
3:22:30 PM DEBUG [connection] - received response: -19,[
  null,
  0
]
3:22:30 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "eval",
    [
      "[bufnr(\"%\"),coc#util#cursor(),&filetype,mode()]"
    ]
  ],
  -20
]
3:22:30 PM DEBUG [connection] - received response: -20,[
  null,
  [
    1,
    [
      1,
      0
    ],
    "vim",
    "n"
  ]
]
3:22:34 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "CursorHold",
    1
  ]
]
3:23:19 PM DEBUG [connection] - received notification: [
  "CocAutocmd",
  [
    "FocusGained"
  ]
]
3:23:19 PM DEBUG [connection] - send to vim: [
  "call",
  "coc#api#call",
  [
    "get_current_win",
    []
  ],
  -21
]
3:23:19 PM DEBUG [connection] - received response: -21,[
  null,
  1000
]

@iamcco
Copy link
Owner

iamcco commented Apr 20, 2021

add the "trace.server": "verbose", in vimls config and restart vim and open vim file. then :CocCommand workspace.showOutput and select languageserver.vimls to open the log channel.

Edit: With the coc log we just can see serve start fail but don't know why. So to check the server log channel to see if there are something useful.

@Linerre
Copy link
Author

Linerre commented Apr 20, 2021

Thank you. I can follow the first two steps:

  1. add "trace.server": "verbose", in my vimls config
    trace-server
  2. restart vim, open a vim file, and run the command :CocCommand workspace.showOutput:
    coc-command

But I have no idea how to do the last one. After running cmd in step 2, I couldn't seem to select anything from the buffer. Would you care to give me a few more hints? Many thanks.

@Linerre
Copy link
Author

Linerre commented Apr 20, 2021

Edit: With the coc log we just can see serve start fail but don't know why. So to check the server log channel to see if there are something useful.

The wired part is that the server is indeed working. See the screenshots below. I took them immediately after I replied to your last comment, without doing anything to vim (no restarting, no re-configuring). The auto-completion works very well as expected: suggesting me with built-in viml keywords and options:
server1
server2

I don't know if this is a Windows-only problem. I hope it is not. Again, thank you for your reply. I really appreciate it.

UPDATE:
On my Linux machine, I have tested the vim-lsc plugin for vim-language-server, with the exact same config as that on my Windows machine. For now, Linux machine seems to work without any errors, though I haven't config for auto-completion yet (trivia):
2021-04-20-171705_1920x1080_scrot

@iamcco
Copy link
Owner

iamcco commented Apr 20, 2021

Have you install coc-vimlsp extension? check with :CocList extensions. if yes then you don't need to install vim-language-server and those config.

@iamcco
Copy link
Owner

iamcco commented Apr 20, 2021

Thank you. I can follow the first two steps:

  1. add "trace.server": "verbose", in my vimls config
    trace-server
  2. restart vim, open a vim file, and run the command :CocCommand workspace.showOutput:
    coc-command

But I have no idea how to do the last one. After running cmd in step 2, I couldn't seem to select anything from the buffer. Would you care to give me a few more hints? Many thanks.

There is only one channel so you don't need to select. Seems like there is no vim-language-server command when coc start the server. change the command to use absolute path like /path/to/vim-language-server and test again.

@Linerre
Copy link
Author

Linerre commented Apr 20, 2021

OMG! That's interesting. Yes, I installed it. My bad. I mistakenly thought I should install both, one server and one extension for the server. I removed the server config in coc-settings.json but keep the coc-vimlsp extension. Now the error has gone and the LSP is functioning without any problems.
coc-vimlsp
coc-vimlsp-working

I think I'll keep the server installed via npm, since other LSP plugins will rely on it. Many thanks for your time and help.

@Linerre Linerre closed this as completed Apr 20, 2021
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