aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lukes <dafydd.lukes@gmail.com>2020-07-19 22:37:50 +0200
committerGitHub <noreply@github.com>2020-07-19 22:37:50 +0200
commit33837745bb581384a9a64db2f2d30b12c345bd42 (patch)
tree0208d4d1fc879b417c85040e357f9dd4858861ac
parente1d1c413f7c42ba36dfe49bfd9db977045bff66a (diff)
downloadrneovim-33837745bb581384a9a64db2f2d30b12c345bd42.tar.gz
rneovim-33837745bb581384a9a64db2f2d30b12c345bd42.tar.bz2
rneovim-33837745bb581384a9a64db2f2d30b12c345bd42.zip
Fix / improve report messages (#12396)
-rw-r--r--runtime/autoload/health/provider.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index 4975dc66b8..0482cb7f3c 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -537,8 +537,8 @@ function! s:check_virtualenv() abort
call add(errors, 'no Python executables found in the virtualenv '.bin_dir.' directory.')
endif
+ let msg = '$VIRTUAL_ENV is set to: '.$VIRTUAL_ENV
if len(errors)
- let msg = '$VIRTUAL_ENV is set to: '.$VIRTUAL_ENV
if len(venv_bins)
let msg .= "\nAnd its ".bin_dir.' directory contains: '
\.join(map(venv_bins, "fnamemodify(v:val, ':t')"), ', ')
@@ -551,7 +551,10 @@ function! s:check_virtualenv() abort
let msg .= "\nSo invoking Python may lead to unexpected results."
call health#report_warn(msg, keys(hints))
else
- call health#report_ok('$VIRTUAL_ENV provides :python, :python3, et al.')
+ call health#report_info(msg)
+ call health#report_info('Python version: '
+ \.system('python -c "import platform, sys; sys.stdout.write(platform.python_version())"'))
+ call health#report_ok('$VIRTUAL_ENV provides :!python.')
endif
endfunction