neoclide / coc.nvim

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

Double results for "go-to-definition" #2949

Closed aj3423 closed 3 years ago

aj3423 commented 3 years ago

Result from CocInfo

vim version: NVIM v0.5.0-dev+1079-g8becdec39 node version: v12.18.3 coc.nvim version: 0.0.80-9184dcccc4 coc.nvim directory: /e/vim/nvim/plugged/coc.nvim term: xterm-256color platform: linux

Log of coc.nvim

2021-03-06T21:51:26.657 INFO (pid:147066) [services] - registered servi ce "languageserver.go" 2021-03-06T21:51:26.661 INFO (pid:147066) [plugin] - coc.nvim 0.0.80-91 84dcccc4 initialized with node: v12.18.3 after 37ms 2021-03-06T21:51:30.694 INFO (pid:147066) [attach] - receive notificati on: showInfo []

Describe the bug

There're two results when "go to definition" or "go to reference"

Reproduce the bug

The "2.go" and result are shown in the image:

coc

Why two results?

fannheyward commented 3 years ago

Check out :CocList services, looks like you're setting two language servers.

shanukun commented 3 years ago

@fannheyward I'm also facing the same issue.

vim version: VIM - Vi IMproved 8.2 8022539
node version: v14.16.0
coc.nvim version: 0.0.80-0a565835ea
term: alacritty
platform: linux

ksnip_20210321-145754

chemzqm commented 3 years ago

@shanukun run the command after you got the issue.

shanukun commented 3 years ago

@chemzqm I ran the command after getting the issue. ksnip_20210322-171421

Also I'm only seeing this problem with python (jedi), there is no issue with javascript (tsserver).

chemzqm commented 3 years ago

@shanukun Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

shanukun commented 3 years ago

Okay. I guess I found the problem. I also had coc-python along with coc-jedi, uninstalling the former fixed it. @chemzqm Thank you.