ncm2 / ncm2-pyclang

Cached, fast C/C++ completion for ncm2
MIT License
45 stars 1 forks source link

[ncm2_pyclang_proc@yarp] Job is dead. #29

Open larpon opened 5 years ago

larpon commented 5 years ago

I'm having trouble interpreting this error when trying to edit a .cpp file in nvim using this plugin. The error is:

[ncm2_pyclang_proc@yarp] Job is dead. cmd=['/usr/bin/python3', '-u', '/home/user/.local/share/nvim/plugged/nvim-yarp/pythonx/yarp.py', '/tmp/nvimMQ7gCF/0', 5, 'ncm2_pyclang_proc']

My config looks like this:

" For ncm2-pyclang: A list of relative paths for compile_commands.json
" path to directory where libclang.so can be found
let g:ncm2_pyclang#library_path = '/usr/lib/llvm-6.0/lib'
let g:ncm2_pyclang#database_path = [
            \ 'compile_commands.json',
            \ 'build/compile_commands.json'
            \ ]

The compile_commands.json file exists in current directory and is generated by this tool

Any help is appreciated!

tvatter commented 5 years ago

I've just encountered the same issue after updating my OS (ubuntu). I noticed that the correct llvm was now version 8, and updating let g:ncm2_pyclang#library_path fixed it. It wasn't easy to figure out given that the error message wasn't really informing about what was wrong ^^

larpon commented 5 years ago

@tvatter Thanks for digging into this!

lee-shun commented 4 years ago

I have the same issue on Ubuntu18.04, on which the g:ncm2_pyclang#library_path is '/usr/lib/llvm-6.0/lib'

larpon commented 4 years ago

@lee-shun - you can "fix" this by using llvm-8.0 instead

lee-shun commented 4 years ago

Thanks a lot ,but I fixed this with another way : "let g:ncm2_pyclang#library_path = '/usr/lib/llvm-6.0/lib/libclang-6.0.so.1'" rather than the "lib" directory! @Larpon