You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SOMETIMES see error: The selected directory does not contain a go.mod file or is not part of a Go module.
Expected behavior
All Python tests get always executed. Now it looks like neotest-golang adapter sometimes gets loaded first and does not find any Go tests.
Logs
Output
INFO | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting started event
DEBUG | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event started
DEBUG | 2024-11-01T14:36:17Z+0100 | ...hare/nvim/lazy/neotest/lua/neotest/client/state/init.lua:85 | Setting positions to running /home/ondrej/Projects/myproject
INFO | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:48 | Emitting run event
DEBUG | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:50 | Calling listener state for event run
DEBUG | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:50 | Calling listener diagnostic for event run
DEBUG | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:50 | Calling listener status for event run
DEBUG | 2024-11-01T14:36:17Z+0100 | ...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:50 | Calling listener summary for event run
DEBUG | 2024-11-01T14:36:17Z+0100 | .../nvim/lazy/neotest-golang/lua/neotest-golang/logging.lua:47 | [neotest-golang] Searching for go.mod in /home/ondrej/Projects/myproject
DEBUG | 2024-11-01T14:36:17Z+0100 | .../nvim/lazy/neotest-golang/lua/neotest-golang/logging.lua:47 | [neotest-golang] Searching for go.mod in /home/ondrej/Projects
ERROR | 2024-11-01T14:36:17Z+0100 | .../nvim/lazy/neotest-golang/lua/neotest-golang/logging.lua:79 | [neotest-golang] The selected directory does not contain a go.mod file or is not part of a Go module.
The text was updated successfully, but these errors were encountered:
NeoVim Version
Describe the bug
When running
require("neotest").run.run(vim.uv.cwd())
in Python project,neotest-golang
adapter reports missing go tests:Caution
The selected directory does not contain a go.mod file or is not part of a Go module.
To Reproduce
Steps to reproduce the behavior:
lua require("neotest").run.run(vim.uv.cwd())
The selected directory does not contain a go.mod file or is not part of a Go module.
Expected behavior
All Python tests get always executed. Now it looks like
neotest-golang
adapter sometimes gets loaded first and does not find any Go tests.Logs
Output
The text was updated successfully, but these errors were encountered: