From 8d42db1eeaac03028257513aa093df79efc9c025 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 8 May 2015 12:09:59 +0200 Subject: [PATCH] remote#host#RequirePythonHost: fix reference to log I could not find a reference to NVIM_PYTHON_PYTHON_LOG anywhere, and python-client looks for NVIM_PYTHON_LOG_FILE. ~/.nvimlog appears to be hardcoded and enabled by default. This would need to be adjusted when this changes. --- runtime/autoload/remote/host.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index 2a7cd3c43b..a8b505d096 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -214,10 +214,12 @@ function! s:RequirePythonHost(name) catch echomsg v:exception endtry - throw 'Failed to load python host. You can try to see what happened ' . - \ 'by starting Neovim with $NVIM_PYTHON_PYTHON_LOG and opening '. + throw 'Failed to load Python host. You can try to see what happened '. + \ 'by starting Neovim with the environment variable '. + \ '$NVIM_PYTHON_LOG_FILE set to a file and opening '. \ 'the generated log file. Also, the host stderr will be available '. - \ 'in Neovim log, so it may contain useful information.' + \ 'in Neovim log, so it may contain useful information. '. + \ 'See also ~/.nvimlog.' endfunction call remote#host#Register('python', function('s:RequirePythonHost'))