nvim-neotest / neotest

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

Crash possibly related to neotest when using it with Rust inside a workspace #372

Open robamu opened 7 months ago

robamu commented 7 months ago

See the issue I posted in neotest-rust . I am not fully sure whether this is a neotest-rust problem or a general neotest problem, but others have had this issue as well.

If I open neovim inside a Rust workspace folder, everything works as expected. However, when I open neovim in a subfolder of that workspace and try to run tests or open the test tree with neotest, neovim crashes. Is this a known issue? I have had trouble to trace this to a single function, I tried reading the crash dumps of neovim, but it does not contain any useful information.

This only occurs on Ubuntu and not on MacOS which makes this issue even more weird.

The error can be reproduced by installing neotest and neotest-rust, opening neovim inside https://github.com/rouge8/neotest-rust/tree/main/tests/data/workspace/with_integration_tests and then either running any test inside that folder or simply opening the summary window. When opening neovim inside the workspace root itself, everything works without any issues.

duncanam commented 2 months ago

For LunarVim users, add:

lvim.builtin.project.active = false
lvim.builtin.project.manual_mode = true

then navigate to the directory where your project is and lvim . to start there.

jonathancyu commented 2 months ago

I am also running into this issue, however I'm not using lunarvim. Is there another workaround here?