From 3882c5dd326d22bc513550bea205d450b315621d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 3 Aug 2016 11:08:30 +0200 Subject: [PATCH] Improve error message when the jedi module fails to load Fixes https://github.com/davidhalter/jedi-vim/issues/560. --- jedi_vim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index 1bbba46..c2cbfc6 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -100,7 +100,10 @@ else: try: version = jedi.__version__ 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 else: if isinstance(version, str):