forked from VimPlug/jedi-vim
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:
@@ -152,12 +152,12 @@ function! jedi#setup_py_version(py_version) abort
|
|||||||
throw 'jedi#setup_py_version: invalid py_version: '.a:py_version
|
throw 'jedi#setup_py_version: invalid py_version: '.a:py_version
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
execute 'command! -nargs=1 PythonJedi '.cmd_exec.' <args>'
|
||||||
try
|
try
|
||||||
execute cmd_init.' '.s:script_path.'/initialize.py'
|
execute cmd_init.' '.s:script_path.'/initialize.py'
|
||||||
catch
|
catch
|
||||||
throw 'jedi#setup_py_version: '.v:exception
|
throw 'jedi#setup_py_version: '.v:exception
|
||||||
endtry
|
endtry
|
||||||
execute 'command! -nargs=1 PythonJedi '.cmd_exec.' <args>'
|
|
||||||
return 1
|
return 1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user