ncm2-pyclang icon indicating copy to clipboard operation
ncm2-pyclang copied to clipboard

[ncm2_pyclang_proc@yarp] Job is dead.

Open larpon opened this issue 4 years ago • 5 comments

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!

larpon avatar Aug 26 '19 13:08 larpon

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 ^^

tvatter avatar Nov 06 '19 15:11 tvatter

@tvatter Thanks for digging into this!

larpon avatar Nov 06 '19 18:11 larpon

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

lee-shun avatar Aug 12 '20 01:08 lee-shun

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

larpon avatar Aug 12 '20 08:08 larpon

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

lee-shun avatar Aug 15 '20 08:08 lee-shun