completor.vim icon indicating copy to clipboard operation
completor.vim copied to clipboard

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

Open zhuweiyou opened this issue 8 years ago • 20 comments

How to fixed it ?

zhuweiyou avatar Jan 26 '18 14:01 zhuweiyou

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

xchern avatar Feb 18 '18 12:02 xchern

macOS

I installed python and python3

zhuweiyou avatar Feb 19 '18 00:02 zhuweiyou

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

Shougo avatar Feb 19 '18 02:02 Shougo

image

zhuweiyou avatar Feb 19 '18 07:02 zhuweiyou

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

Shougo avatar Feb 19 '18 07:02 Shougo

And what is your Vim version?

Shougo avatar Feb 19 '18 07:02 Shougo

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

Shougo avatar Feb 19 '18 07:02 Shougo

vim 8.0.1400

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

zhuweiyou avatar Feb 19 '18 07:02 zhuweiyou

Please execute :echo Check()

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

Shougo avatar Feb 19 '18 07:02 Shougo

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

zhuweiyou avatar Feb 19 '18 07:02 zhuweiyou

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

Shougo avatar Feb 19 '18 07:02 Shougo

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

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

Shougo avatar Feb 19 '18 07:02 Shougo

Open some files will report this warning, not all

zhuweiyou avatar Feb 19 '18 07:02 zhuweiyou

What is the output of vim --version?

maralla avatar Feb 27 '18 08:02 maralla

me too . How can I fix it?

xclidongbo avatar Apr 01 '18 04:04 xclidongbo

yeah, i have the same problem

indrabinridwan avatar Oct 13 '18 11:10 indrabinridwan

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

maralla avatar Oct 13 '18 14:10 maralla

@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

yan-ace62 avatar Nov 15 '18 03:11 yan-ace62

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

caixxiong avatar May 30 '19 09:05 caixxiong

apt install vim-python

SpecialAmir avatar Dec 26 '20 14:12 SpecialAmir