neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.44k stars 954 forks source link

Custom popup window highlight not working anymore and method not found #4167

Closed sebiwi closed 2 years ago

sebiwi commented 2 years ago

Result from CocInfo

  ## versions

  vim version: VIM - Vi IMproved 9.0 9000350
  node version: v16.13.1
  coc.nvim version: 0.0.82-b9c208ef 2022-09-07 15:41:25 +0800
  coc.nvim directory: /Users/stuff/vim/plugged/coc.nvim
  term: tmux
  platform: darwin

  ## Log of coc.nvim

  2022-09-08T16:18:27.255 INFO (pid:24000) [services] - registered service "languageserver.terraform"
  2022-09-08T16:18:27.258 INFO (pid:24000) [services] - terraform state change: stopped => starting
  2022-09-08T16:18:27.258 INFO (pid:24000) [services] - registered service "languageserver.golang"
  2022-09-08T16:18:27.265 INFO (pid:24000) [plugin] - coc.nvim initialized with node: v16.13.1 after 45ms
  2022-09-08T16:18:27.270 INFO (pid:24000) [language-client-index] - Language server "languageserver.terraform" started with 24002
  2022-09-08T16:18:28.149 INFO (pid:24000) [attach] - receive notification: highlight []
  2022-09-08T16:18:29.310 INFO (pid:24000) [services] - terraform state change: starting => running
  2022-09-08T16:18:29.312 INFO (pid:24000) [services] - service languageserver.terraform started
  2022-09-08T16:18:30.545 INFO (pid:24000) [attach] - receive notification: startCompletion [
    {
      word: 're',
      bufnr: 1,
      col: 0,
      disabled: [],
      filepath: 'redacted',
      indentkeys: '',
      blacklist: [],
      line: 're',
      filetype: 'terraform',
      linenr: 912,
      input: 're',
      colnr: 3,
      changedtick: 6
    }
  ]
  2022-09-08T16:18:33.349 INFO (pid:24000) [attach] - receive notification: showSignatureHelp []
  2022-09-08T16:18:33.379 ERROR (pid:24000) [node-client] - Error on notification "showSignatureHelp": method not found Error
      at LH.echoError (/Users/sebiwi/stuff/dotfiles/vim/plugged/coc.nvim/build/index.js:26:1869)
      at LH.<anonymous> (/Users/sebiwi/stuff/dotfiles/vim/plugged/coc.nvim/build/index.js:293:20970)
  2022-09-08T16:18:33.379 ERROR (pid:24000) [attach] - xy [Error]: method not found
      at je (/Users/sebiwi/stuff/dotfiles/vim/plugged/coc.nvim/build/index.js:29:233)
      at Wi (/Users/sebiwi/stuff/dotfiles/vim/plugged/coc.nvim/build/index.js:28:6872)
      at Immediate.<anonymous> (/Users/sebiwi/stuff/dotfiles/vim/plugged/coc.nvim/build/index.js:28:6719)
      at processImmediate (node:internal/timers:464:21) {
    code: -32601,
    data: 'textDocument/signatureHelp'
  }
  2022-09-08T16:19:40.572 WARN (pid:24000) [completion] - Suggest not triggered with input "", minimal trigger input length: 1
  2022-09-08T16:19:42.173 INFO (pid:24000) [snippets-session] - Unable to find changed placeholder, cancel snippet session
  2022-09-08T16:19:42.211 INFO (pid:24000) [attach] - receive notification: highlight []
  2022-09-08T16:19:44.507 INFO (pid:24000) [attach] - receive notification: showInfo []

Describe the bug

After upgrading coc.nvim to version 0.0.82-b9c208ef, the custom popup window highlight is not working anymore. The "incsearch" feature within the popup window is not visible anymore. I didn't change any highlight settings.

This may be related to terraform-lsp but Imalso get the following error message each time I try autocompleting:

[coc.nvim] Error on notification "showSignatureHelp": method not found

Reproduce the bug

Screenshots (optional)

Screenshot 2022-09-08 at 16 26 08

Screenshot 2022-09-08 at 16 26 19

chemzqm commented 2 years ago

Try :verbose hi CocPumSearch

chemzqm commented 2 years ago

[coc.nvim] Error on notification "showSignatureHelp": method not found

Should be bug with your LS.

sebiwi commented 2 years ago

Thanks @chemzqm, I found the settings regarding the highlighting and fixed it.

You're also right about the other error being an LS problem, I'll try to get that fixed out with them.

Thanks for your help!