Open PumpkinL opened 3 years ago
I also encountered this problem after a long overdue update to my neovim plugins and will leave this here as information for others.
I looked into the version history of Nvim-R and in commit 467768ee03be66e4db89b7dd1b34cd91f0689d38
from the 15th of June 2020 the git log says
Remove reference to ncm-R It seems that ncm2 and ncm-R are no longer being developed.
So it looks like ncm-r has been abandoned and the ncm2 plugin too. The Nvim-R devs then removed support for ncm-r in commit 76a8d661acaa4b74c1b74103f7de5f6a729b3333
from the 29th of April 2021. The lines
" For compatibility with ncm-R:
let g:rplugin_compldir = g:rplugin.compldir
were removed from the setcompldir.vim
file. This affects the ncm_r.py
file but could be easily fixed by changing _
into .
In the same commit of Nvim-r the file system structure of the generated omnicompletion files (default folder: ~/.cache/Nvim-R/
) changed. There is no longer a specific folder, /Nvim-R/pack_descriptions/
, for description files for R packages but instead the description files are in the /Nvim-R/
folder and have prefix descr_
. This would also need to be fixed in the ncm_r.py
file.
There are probably other fixes needed in order to get ncm-r working again but since ncm2 seems to also be abandoned it's probably smartest to just use alternatives to ncm2 and ncm-r. For now I'll just use the autocompletion that comes with Nvim-r, initiated with the key presses c-x c-o. If anyone has suggestions for comparable alternatives please send me a message.
@joiharalds Thank you very much. I use coc.nvim instead.
@joiharalds Thanks so much for explaining this. I've been trying to chase down the cause of this issue for a month, and this finally solves the mystery. It seems like YouCompleteMe is a good alternative, since it's being actively developed and supports R, though it dowsn't officially support neovim.
I encountered the same problem https://github.com/gaalcaras/ncm-R/issues/17#issue-401641952.
The message is :
But the completion of Omni in Nvim-R working successfully when I type \<C-x>\<C-o>
I also checked the R_compldir:
ls
Here is my .vimrc file.