Skip to content

Commit

Permalink
fix(subprocess): abort on blocking mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed May 29, 2023
1 parent 80f9c96 commit 10e6763
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neotest/lib/subprocess.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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", {})
Expand Down

0 comments on commit 10e6763

Please sign in to comment.