Closed JElgar closed 2 years ago
So I found the logs in ~/.cache/nvim/neotest.log
and turns out the issue was I didn't have any treesitter parsers installed. Following the setup on the treesitter page first sorted this out.
TLDR is I need to add this to my config: https://github.com/nvim-treesitter/nvim-treesitter#modules
Hi, I have the same issues, but treesitter parsers are installed.
Log says:
ERROR | 2022-09-11T17:01:54Z+0200 | ...ages/start/vimplugin-neotest/lua/neotest/client/init.lua:265 | Couldn't find positions in path /home/REDACTED/src/cli.rs Failed to load parser: uv_dlopen: /nix/store/j4272ass70abzg944qj44iwr6xqbdp5m-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser/.: cannot read file data: Is a directory
(using nixos, hence the long path after uv_dlopen
).
Can someone point me somewhere?
Can you open a separate issue and fill out the bug report? If you don't find the issue along the way then hopefully I'll be able to reproduce
@JElgar I'm also having this issue but do not have a ~/.cache/nvim/neotest.log
file. HOw do you enable logging for this? I will poke throught he config docs.
The log file was moved to ~/.local/state/nvim
at some point.
@jfpedroza thanks, found it!
NeoVim Version
Describe the bug Getting
No tests found
when runninglua require("neotest").run.run();
To Reproduce Please provide a minimal
init.lua
to reproduce which can be run as the following:Packer setup is just:
Steps to reproduce the behavior: 1: Open a python file with tests, run:
lua require("neotest").run.run();
Please provide example test files to reproduce.
Expected behavior Tests to be found
Logs There seems to be no neotest.log file in stdpath("data")
Additional context I've tried with various different adapters and files (larger python projects, jest and rust small and large) without any success