davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.28k stars 370 forks source link

can't disable error msg of python provider checking in nvim #672

Closed laishulu closed 3 years ago

laishulu commented 7 years ago

Issue

as a nvim user, every time I start to edit a python file, a error msg is shown to me.

jedi-vim: the detected Python version (2) is not functional. Is the "neovim" module installed? While jedi-vim will work, it might not use the expected Python path.

so in nvim init file, I disabled python2 by let g:loaded_python_provider = 1, then :echo has('python') will produce 0.

but from autoload/jedi.vim, nvim will always fire the error msg even when python2 or python3 is disabled intentionally in nvim.

if has('nvim') || (has('python') && has('python3'))
        " Neovim usually has both python providers. Skipping the `has` check

Versions

laishulu commented 7 years ago
let g:jedi#force_py_version = 3

can avoid the error msg.

davidhalter commented 3 years ago

Since this code does not exist anymore I'm closing.