maralla / completor.vim

Async completion framework made ease.
MIT License
1.29k stars 63 forks source link

Completor requires vim compiled with python or python3 and has features `job`, `timers` and `lambda` #177

Closed zhuweiyou closed 1 year ago

zhuweiyou commented 6 years ago

How to fixed it ?

xchern commented 6 years ago

If you are using vim8 under windows, then you should install python and make sure python can be called from vim.

zhuweiyou commented 6 years ago

macOS

I installed python and python3

Shougo commented 6 years ago

You should check it by :echo has('python') and :echo has('python3')

zhuweiyou commented 6 years ago

image

Shougo commented 6 years ago

Please execute :echo has('python') and :echo has('python3') in your Vim.

Shougo commented 6 years ago

And what is your Vim version?

Shougo commented 6 years ago

The check is here. I think your Vim is too old or if_python and if_python3 are not enabled.

https://github.com/maralla/completor.vim/blob/master/plugin/completor.vim#L12

zhuweiyou commented 6 years ago

vim 8.0.1400

:echo has('python') // 1
:echo has('python3') // 0
Shougo commented 6 years ago

Please execute :echo Check()

function! Check()
  return ((has('python') || has('python3'))
        \ && has('job') && has('timers') && has('lambda')) || has('nvim')
endfunction
zhuweiyou commented 6 years ago
:echo (has('python') || has('python3')) && has('job') && has('timers') && has('lambda')) || has('nvim') 
# 1
Shougo commented 6 years ago

I don't know why it does not work...

Shougo commented 6 years ago

You can add :echomsg s:has_features() in L15.

https://github.com/maralla/completor.vim/blob/master/plugin/completor.vim#L15

zhuweiyou commented 6 years ago

Open some files will report this warning, not all

maralla commented 6 years ago

What is the output of vim --version?

xclidongbo commented 6 years ago

me too . How can I fix it?

indrabinridwan commented 5 years ago

yeah, i have the same problem

maralla commented 5 years ago

@indrabinridwan Please post the result of vim --version here.

yan-ace62 commented 5 years ago

@indrabinridwan if you input vim --version |grep python and result is -python -python3 , then You should turn on VIM to support python. You will find that the problem has been solved. How to turn on VIM to support pythom?, see vim-python

caixxiong commented 5 years ago

firstly, confirm your vim support python: vim --version | grep python, must +python and +python3 secondly, confirm python is available in vim: :echo has("python"), :echo has("python3"), must return 1 thirdly, you may be to confirm jedi is installed by pip or pip3, and make sure it be consistent with your available python in vim

SpecialAmir commented 3 years ago

apt install vim-python