From 63946140170dc5c0cd6e040b95844bab468461c5 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 6 Aug 2017 01:00:51 +0200 Subject: [PATCH] Define PythonJedi command always (#727) This is meant to help in case of issues where the Python initialization fails (https://github.com/davidhalter/jedi-vim/issues/726#issue-248054145), so that `JediDebuginfo` can still provide some more information. --- autoload/jedi.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 4fa493f..4638cd2 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -152,12 +152,12 @@ function! jedi#setup_py_version(py_version) abort throw 'jedi#setup_py_version: invalid py_version: '.a:py_version endif + execute 'command! -nargs=1 PythonJedi '.cmd_exec.' ' try execute cmd_init.' '.s:script_path.'/initialize.py' catch throw 'jedi#setup_py_version: '.v:exception endtry - execute 'command! -nargs=1 PythonJedi '.cmd_exec.' ' return 1 endfunction