Skip to content

Commit

Permalink
fix(quickfix): handle position ID not existing anymore
Browse files Browse the repository at this point in the history
See #187
  • Loading branch information
rcarriga committed Dec 31, 2022
1 parent 3deec08 commit d32b8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest/consumers/quickfix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local init = function()
local qf_results = {}
local buffer_cache = {}
for pos_id, result in pairs(results) do
if result.status == "failed" then
if result.status == "failed" and tree:get_key(pos_id) then
local pos = assert(tree:get_key(pos_id)):data()
if pos.type == "test" then
local bufnr = buffer_cache[pos.path]
Expand Down

0 comments on commit d32b8bf

Please sign in to comment.