def main(serveraddr): vim = attach_vim(serveraddr) from denite.child import Child from denite.util import error_tb stdout = sys.stdout sys.stdout = RedirectStream(lambda data: vim.out_write(data)) sys.stderr = RedirectStream(lambda data: vim.err_write(data)) try: child = Child(vim) child.main_loop(stdout) except Exception as exc: error_tb(vim, 'Error in child: %r' % exc)
class SyncParent(_Parent): def _start_process(self): from denite.child import Child self._child = Child(self._vim) def _put(self, name, args): return self._child.main(name, args, queue_id=None)
class SyncParent(_Parent): def _start_process(self) -> None: from denite.child import Child self._child = Child(self._vim) def _put(self, name: str, args: typing.List[typing.Any]) -> str: return self._child.main(name, args, queue_id=None) # type: ignore def _get(self, name: str, args: typing.List[typing.Any], is_async: bool = False) -> typing.Any: return self._put(name, args)
def _start_process(self) -> None: from denite.child import Child self._child = Child(self._vim)
def _start_process(self): from denite.child import Child self._child = Child(self._vim)