-
-
Notifications
You must be signed in to change notification settings - Fork 169
Description
NeoVim Version
NVIM v0.11.4
Build type: Release
LuaJIT 2.1.1741730670
Describe the bug
with neotest and adapter of neotest-python, after triggering "lua require("neotest").run.run()", it prompts the message
"No tests found"
To Reproduce
{
"nvim-neotest/neotest",
commit = "52fca6717ef972113ddd6ca223e30ad0abb2800c",
dependencies = {
"nvim-neotest/nvim-nio",
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter",
"nvim-neotest/neotest-python",
},
config = function()
require("neotest").setup({
adapters = {
require("neotest-python")({
dap = { justMyCode = false },
runner = "pytest",
}),
},
})
end,
}
Logs (neotest.log)
ERROR | 2025-11-03T10:11:04Z+0800 | ...al/nvim-data/lazy/neotest/lua/neotest/lib/subprocess.lua:90 | Failed to initialize child process Vim:Error invoking 'nvim_exec_lua' on channel 5:
Error executing lua: [string ""]:1: module 'neotest' not found:
no field package.preload['neotest']
no file '.\neotest.lua'
no file 'C:\Program Files\Neovim\bin\lua\neotest.lua'
no file 'C:\Program Files\Neovim\bin\lua\neotest\init.lua'
no file '.\neotest.dll'
no file 'C:\Program Files\Neovim\bin\neotest.dll'
no file 'C:\Program Files\Neovim\bin\loadall.dll'
stack traceback:
[C]: in function 'require'
[string ""]:1: in main chunk
stack traceback:
[C]: in function 'rpcrequest'
...al/nvim-data/lazy/neotest/lua/neotest/lib/subprocess.lua:75: in function <...al/nvim-data/lazy/neotest/lua/neotest/lib/subprocess.lua:55>
[C]: in function 'xpcall'
...al/nvim-data/lazy/neotest/lua/neotest/lib/subprocess.lua:55: in function 'init'
...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:372: in function '_start'
...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:186: in function '_ensure_started'
...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:198: in function <...Local/nvim-data/lazy/neotest/lua/neotest/client/init.lua:197>
...cal/nvim-data/lazy/neotest/lua/neotest/consumers/run.lua:39: in function 'get_tree_from_args'
...cal/nvim-data/lazy/neotest/lua/neotest/consumers/run.lua:80: in function 'func'
.../AppData/Local/nvim-data/lazy/nvim-nio/lua/nio/tasks.lua:168: in function <.../AppData/Local/nvim-data/lazy/nvim-nio/lua/nio/tasks.lua:167>
Additional context
I tried the #531 to pin the commit to 52fca67, nothing changed.