mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
Fix no_jedi_warning: display actual error
Never really worked as intended in 676b378.
Ref: https://github.com/davidhalter/jedi-vim/issues/460
This commit is contained in:
@@ -78,12 +78,11 @@ def vim_eval(string):
|
|||||||
|
|
||||||
|
|
||||||
def no_jedi_warning(error=None):
|
def no_jedi_warning(error=None):
|
||||||
msg = "Please install Jedi if you want to use jedi-vim."
|
vim.command('echohl WarningMsg')
|
||||||
|
vim.command('echom "Please install Jedi if you want to use jedi-vim."')
|
||||||
if error:
|
if error:
|
||||||
msg = '{0} The error was: {1}'.format(msg, error)
|
vim.command('echom "The error was: {0}"'.format(error))
|
||||||
vim.command('echohl WarningMsg'
|
vim.command('echohl None')
|
||||||
'| echom "Please install Jedi if you want to use jedi-vim."'
|
|
||||||
'| echohl None')
|
|
||||||
|
|
||||||
|
|
||||||
def echo_highlight(msg):
|
def echo_highlight(msg):
|
||||||
|
|||||||
Reference in New Issue
Block a user