-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neotest watch does not work in a large Go repo #93
Comments
@asfaltboy would you mind giving neotest-golang a go and report back if you experience similar issues with that adapter? (I'm the developer of it) |
It seems to behave exactly the same, in terms of not running any watched tests, and emitting similar / same log messages. Is there anything I could add or try, to narrow down the root cause? I'm actually not convinced it's just about the size of the repo, maybe there are other factors at play? I also see this notification once when starting a test, but I think it might be a red-herring:
|
Hmm. I think I would start with just some sort of elimination strategy, so to see if the size of the repo can be considered either part of the problem or not part of the problem. Like for example, you could try to start fresh in a new folder, then add in files and folders from the actual project gradually and retry in-between copying, until something causes this behavior you are experiencing. You should be able to see files being watched and then at some point no longer being watched (with that continuous logging you mentioned). Have you made sure you can watch a test in a minimal go test file? In regards to the LazyVim error, are you on the latest LazyVim and Neovim 0.10.? |
I've got a large repo with hundreds of packages, and thousands of files, and test watcher seems to not run any test on change.
Debug logs shows a lot of continuous messages such as:
Where the file names alternate between different files, and seem to be repeating. (note that 'registed' message is mis-typed in the actual code)
When saving a change in the test module, I see this emitted in the debug log:
Note: I shortened and obfuscated file/path to protect the identity of the code owner.
The text was updated successfully, but these errors were encountered: