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.
This commit is contained in:
Daniel Hahler
2017-08-06 01:00:51 +02:00
committed by GitHub
parent 6411de0cd1
commit 6394614017

View File

@@ -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.' <args>'
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.' <args>'
return 1
endfunction