From 10e6763d0794c70917faf45e8d869a1306d5182e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Mon, 29 May 2023 21:44:59 +0100 Subject: [PATCH] fix(subprocess): abort on blocking mode See #158 --- lua/neotest/lib/subprocess.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/neotest/lib/subprocess.lua b/lua/neotest/lib/subprocess.lua index 8f2bfe69..c17e5bab 100644 --- a/lua/neotest/lib/subprocess.lua +++ b/lua/neotest/lib/subprocess.lua @@ -55,6 +55,7 @@ function neotest.lib.subprocess.init() local mode = nio.fn.rpcrequest(child_chan, "nvim_get_mode") if mode.blocking then logger.error("Child process is waiting for input at startup. Aborting.") + return end -- Trigger lazy loading of neotest nio.fn.rpcrequest(child_chan, "nvim_exec_lua", "return require('neotest') and 0", {})