rouge8/neotest-rust

Crash on running tests: attempt to index upvalue 'xml_etree'

Closed this issue · 1 comments

I have a dead-simple Rust project with a single test file in tests/poker.rs. cargo nextest runs the tests just fine. When I run :lua require("neotest").run.run(vim.fn.expand("%")), I get:

Error executing vim.schedule lua callback: ...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...pack/packer/start/neotest-rust/lua/neotest-rust/init.lua:182: attempt to index upvalue 'xml_tree' (a function value)
stack traceback:
        [C]: in function 'error'
        ...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
        ...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:45: in function <...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:44>

Looking at the site of the crash, I'm guessing it is caused by this recent neotest commit: nvim-neotest/neotest@bd24d46