Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zhuweiyou opened this issue Jan 26, 2018 · 20 comments

Comments

@zhuweiyou
Copy link

How to fixed it ?

@xchern
Copy link

xchern commented Feb 18, 2018

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

@zhuweiyou
Copy link
Author

zhuweiyou commented Feb 19, 2018

macOS

I installed python and python3

@Shougo
Copy link

Shougo commented Feb 19, 2018

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

@zhuweiyou
Copy link
Author

image

@Shougo
Copy link

Shougo commented Feb 19, 2018

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

@Shougo
Copy link

Shougo commented Feb 19, 2018

And what is your Vim version?

@Shougo
Copy link

Shougo commented Feb 19, 2018

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
Copy link
Author

vim 8.0.1400

:echo has('python') // 1
:echo has('python3') // 0

@Shougo
Copy link

Shougo commented Feb 19, 2018

Please execute :echo Check()

function! Check()
  return ((has('python') || has('python3'))
        \ && has('job') && has('timers') && has('lambda')) || has('nvim')
endfunction

@zhuweiyou
Copy link
Author

zhuweiyou commented Feb 19, 2018

:echo (has('python') || has('python3')) && has('job') && has('timers') && has('lambda')) || has('nvim') 
# 1

@Shougo
Copy link

Shougo commented Feb 19, 2018

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

@Shougo
Copy link

Shougo commented Feb 19, 2018

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

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

@zhuweiyou
Copy link
Author

Open some files will report this warning, not all

@maralla
Copy link
Owner

maralla commented Feb 27, 2018

What is the output of vim --version?

@xclidongbo
Copy link

me too . How can I fix it?

@indrabinridwan
Copy link

yeah, i have the same problem

@maralla
Copy link
Owner

maralla commented Oct 13, 2018

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

@yan-ace62
Copy link

yan-ace62 commented Nov 15, 2018

@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
Copy link

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
Copy link

apt install vim-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants