From e37de74af2da442ffe38035110ba8f6ffe028d27 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 4 Feb 2018 17:50:38 +0900 Subject: [PATCH] Fix start_process() error --- rplugin/python3/deoplete/parent.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rplugin/python3/deoplete/parent.py b/rplugin/python3/deoplete/parent.py index 52b8ae0f..1c5bf8a8 100644 --- a/rplugin/python3/deoplete/parent.py +++ b/rplugin/python3/deoplete/parent.py @@ -5,10 +5,11 @@ # ============================================================================ import time +import os from deoplete import logger from deoplete.process import Process -# from deoplete.util import error +from deoplete.util import error class Parent(logger.LoggingMixin): @@ -68,6 +69,11 @@ def _start_process(self, context, serveraddr): if self._proc: return + if not os.access(context['python3'], os.X_OK): + error(self._vim, str(context['python3']) + ' is not executble.') + error(self._vim, 'You need to set g:python3_host_prog.') + return + self._proc = Process( [context['python3'], context['dp_main'], serveraddr], context, context['cwd'])