Coc.nvim: coc-references works, but enter no longer opens file.

Created on 3 Oct 2020  路  5Comments  路  Source: neoclide/coc.nvim

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 8.2 8021704
node version: v14.13.0
coc.nvim version: 0.0.79
coc.nvim directory: /home/xxx/.vim_runtime/my_plugins/coc.nvim
term: dumb
platform: linux

## Output channel: Rust Analyzer Language Server Trace

[ERROR rust_analyzer::main_loop] duplicate DidOpenTextDocument: files here
[ERROR rust_analyzer::main_loop] duplicate DidOpenTextDocument: 
[ERROR rust_analyzer::main_loop] duplicate DidOpenTextDocument:
[ERROR rust_analyzer::main_loop] duplicate DidOpenTextDocument:
[ERROR rust_analyzer::main_loop] duplicate DidOpenTextDocument: 

Describe the bug

Doing gr does find the references, but pressing enter on an item no longer opens the file, it simply selects the next item in the list.

Reproduce the bug

Install coc.nvim, try to find references, press enter on one.

Can't reproduce

Most helpful comment

I have the same problem with ts-server, iTerm2 and Vim 8.2 with the latest master of coc.nvim.

All 5 comments

I have the same problem with ts-server, iTerm2 and Vim 8.2 with the latest master of coc.nvim.

Reinstalling the plugin fixed the problem for me.

We need connection log of coc.nvim to address this issue, please follow these steps:

  • Add let g:node_client_debug = 1 to your vimrc, save your vimrc and exit vim.
  • Restart your vim/neovim to make the issue happen.
  • Get the log filepath by :echo $NODE_CLIENT_LOG_FILE
  • Attach the log file or paste content from the log.

Try minimal vimrc and checkout :echo g:coc_enable_locationlist, 0 means you have disabled location list of coc.nvim.

Thanks @wilhelmeek , doing a git pull && yarn fixed the problem for me with the newest vim.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FrankLA0203 picture FrankLA0203  路  3Comments

skylite21 picture skylite21  路  3Comments

hackingcat picture hackingcat  路  3Comments

svenstaro picture svenstaro  路  4Comments

npearson72 picture npearson72  路  3Comments