marlonfan / coc-phpls

🐭 php language server for coc.nvim
MIT License
211 stars 17 forks source link

Coc-references displays less results than it should #90

Open gabrielbidula opened 3 years ago

gabrielbidula commented 3 years ago

Whenever I try to call coc-references it displays less occurrences than searching with AG.

Coc call: nmap <silent> gr <Plug>(coc-references) AG call:

" Default options are --nogroup --column --color
" Alias for --literal (fixed-strings) for compatibility with grep.
let s:ag_options = ' -F '

command! -bang -nargs=* Ag
    \ call fzf#vim#ag(
    \   <q-args>,
    \   s:ag_options,
    \  <bang>0)

" Call AG
nnoremap <c-f> :Ag<space>

" FZF search word under cursor with AG
nnoremap <silent> <Leader>ag :Ag <C-R><C-W><CR>

CocInfo:

## versions

vim version: NVIM v0.4.3
node version: v12.18.3
coc.nvim version: 0.0.80-89a2dc8fc8
coc.nvim directory: /Users/gabriel/.config/nvim/plugged/coc.nvim
term: tmux
platform: darwin

## Log of coc.nvim

2021-05-04T14:49:40.053 INFO (pid:10316) [services] - registered service "languageserver.intelephense"
2021-05-04T14:49:40.056 INFO (pid:10316) [services] - registered service "languageserver.bash"
2021-05-04T14:49:40.242 INFO (pid:10316) [plugin] - coc.nvim 0.0.80-89a2dc8fc8 initialized with node: v12.18.3 after 262ms
2021-05-04T14:49:40.545 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:14:52.201 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:14:55.440 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:21:47.517 INFO (pid:10316) [services] - intelephense state change: stopped => starting
2021-05-04T15:21:47.613 INFO (pid:10316) [coc-phpls] - intelephense module (builtin) is ready to be started
2021-05-04T15:21:47.767 INFO (pid:10316) [language-client-index] - Language server "languageserver.intelephense" started with 10926
2021-05-04T15:21:48.144 INFO (pid:10316) [language-client-index] - phpls started with 10927
2021-05-04T15:21:48.147 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:21:49.707 INFO (pid:10316) [services] - intelephense state change: starting => running
2021-05-04T15:21:49.720 INFO (pid:10316) [services] - service languageserver.intelephense started
2021-05-04T15:29:18.932 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:29:24.331 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:29:28.185 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:29:29.085 INFO (pid:10316) [attach] - receive notification: jumpReferences []
2021-05-04T15:30:35.506 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:30:55.495 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:30:56.142 INFO (pid:10316) [attach] - receive notification: jumpDefinition []
2021-05-04T15:30:56.812 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:30:57.618 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:30:58.085 INFO (pid:10316) [attach] - receive notification: jumpImplementation []
2021-05-04T15:30:58.691 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:31:02.881 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:34:38.741 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:34:46.202 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:34:47.077 INFO (pid:10316) [attach] - receive notification: jumpReferences []
2021-05-04T15:35:13.572 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:35:24.060 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:41:38.801 INFO (pid:10316) [attach] - receive notification: highlight []
2021-05-04T15:41:39.214 INFO (pid:10316) [attach] - receive notification: jumpReferences []
2021-05-04T15:41:42.423 INFO (pid:10316) [attach] - receive notification: showInfo []

coc-references displays 12 occurences:

Screenshot 2021-05-05 at 10 12 56

ag search displays 15 occurences:

Screenshot 2021-05-05 at 10 12 49

Maybe someone understands the reason for that.

Thanks!