-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I encountered the same problem #17 (comment).
The message is :
[ncmR] Could not load completion data: [Errno 20] Not a directory: 0
[ncm_r@yarp] Traceback (most recent call last):
[ncm_r@yarp] File "/home/liuck/.vim/plugged/nvim-yarp/pythonx/yarp.py", line 63, in <module>
[ncm_r@yarp] module_obj = importlib.import_module(module)
[ncm_r@yarp] File "/usr/local/lang/python/3.9.4/lib/python3.9/importlib/__init__.py", line 127, in import_module
[ncm_r@yarp] return _bootstrap._gcd_import(name[level:], package, level)
[ncm_r@yarp] File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
[ncm_r@yarp] File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
[ncm_r@yarp] File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
[ncm_r@yarp] File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
[ncm_r@yarp] File "<frozen importlib._bootstrap_external>", line 790, in exec_module
[ncm_r@yarp] File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
[ncm_r@yarp] File "/home/liuck/.vim/plugged/ncm-R/pythonx/ncm_r.py", line 303, in <module>
[ncm_r@yarp] SOURCE = Source(vim)
[ncm_r@yarp] File "/home/liuck/.vim/plugged/ncm-R/pythonx/ncm_r.py", line 37, in __init__
[ncm_r@yarp] self.get_all_pkg_matches()
[ncm_r@yarp] File "/home/liuck/.vim/plugged/ncm-R/pythonx/ncm_r.py", line 128, in get_all_pkg_matches
[ncm_r@yarp] comps = [f for f in listdir(cmp) if 'omnils' in f]
[ncm_r@yarp] NotADirectoryError: [Errno 20] Not a directory: 0
[ncm_r@yarp] Job is dead. cmd=['python3', '-u', '/home/liuck/.vim/plugged/nvim-yarp/pythonx/yarp.py', '/tmp/vZP3jDS/2', 4, 'ncm_r']
But the completion of Omni in Nvim-R working successfully when I type <C-x><C-o>
I also checked the R_compldir:
ls
descr_base_4.0.5 descr_methods_4.0.5 fun_base_4.0.5 fun_methods_4.0.5 last_default_libnames omnils_graphics_4.0.5 omnils_stats_4.0.5 descr_graphics_4.0.5 descr_stats_4.0.5 fun_graphics_4.0.5 fun_stats_4.0.5 nvimcom_info omnils_grDevices_4.0.5 omnils_utils_4.0.5 descr_grDevices_4.0.5 descr_utils_4.0.5 fun_grDevices_4.0.5 fun_utils_4.0.5 omnils_base_4.0.5 omnils_methods_4.0.5 README
Here is my .vimrc file.
" vim plugs -----------------------------------------
call plug#begin('~/.vim/plugged')
Plug 'roxma/vim-hug-neovim-rpc' " support for neovim
" completion framework ----------------------------
Plug 'ncm2/ncm2' " completion framework
Plug 'roxma/nvim-yarp' " Remote Plugin
" python support ----------------------------------
Plug 'ncm2/ncm2-jedi'
" R support ---------------------------------------
Plug 'jalvesaq/Nvim-R'
Plug 'gaalcaras/ncm-R'
call plug#end()
" ncm2 setting --------------------------------------------
" enable ncm2 for all buffers
autocmd BufEnter * call ncm2#enable_for_buffer()
" IMPORTANT: :help Ncm2PopupOpen for more information
set completeopt=noinsert,menuone,noselect
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels