forked from VimPlug/jedi-vim
Improve error message when the jedi module fails to load
Fixes https://github.com/davidhalter/jedi-vim/issues/560.
This commit is contained in:
@@ -100,7 +100,10 @@ else:
|
|||||||
try:
|
try:
|
||||||
version = jedi.__version__
|
version = jedi.__version__
|
||||||
except Exception as e: # e.g. AttributeError
|
except Exception as e: # e.g. AttributeError
|
||||||
echo_highlight("Could not load jedi python module: {0}".format(e))
|
echo_highlight(
|
||||||
|
"Error when loading the jedi python module ({0}). "
|
||||||
|
"Please ensure that Jedi is installed correctly (see Installation "
|
||||||
|
"in the README.".format(e))
|
||||||
jedi = None
|
jedi = None
|
||||||
else:
|
else:
|
||||||
if isinstance(version, str):
|
if isinstance(version, str):
|
||||||
|
|||||||
Reference in New Issue
Block a user