nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.45k stars 123 forks source link

[Bug] Wrong case in path to test file on macOS #190

Closed fowlie closed 1 year ago

fowlie commented 1 year ago

On macOS, calling vim.loop.cwd() on my machine returns /Users/mats/Code/... - notice the capital C. On my hard drive, that folder name is code with small case. This creates trouble when I use the neotest-go adapter, since the go test command is case sensitive and thus the test won't run.

A workaround is to rename the /Users/mats/code directory to /Users/mats/Code, but my OCD doesn't approve. Not sure if this should be reported to the Neovim team instead, but... What do you think?

I'm using macOS Ventura 13.0.1, Neovim 0.8.2 and Neotest v2.6.4.

rcarriga commented 1 year ago

Yeah that's pretty bizarre... As it's a core bug I would like to see it discussed in the Neovim repo before taking any action. It could be a luv/libuv bug.

fowlie commented 1 year ago

Thanks, I will raise an issue there in stead. I guess this one can be closed then.

Thanks for creating this awesome plugin.