-
Notifications
You must be signed in to change notification settings - Fork 29
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
Issues with workspaces #73
Comments
That is not expected. Can you reproduce with any of the files in https://github.com/rouge8/neotest-rust/tree/main/tests/data/workspace ? Otherwise, can you link to a project that does reproduce? |
I can actually reproduce this by opening nvim in a subfolder of the workspace you linked. It's probably the same issue. Core dump:
I reproduced the error above by opening nvim inside |
+1 on this issue. Works great on nornal projects, but if I open nvim inside a workspace (e.g. Rust monorepo) and try and run testing for one package, immediate crash. |
I'm not sure how to debug this. It works fine for me with nvim 0.9.5 on macOS. |
I was able to figure out that if I open neovim inside one of the subcrates, it crashes. If i open neovim in the monorepo/workspace base, no crash. Puzzling, but this at least gives me a hacky workaround for the time being. |
It's interesting to know that this only occurs on Linux. I might poke around a bit more. Are you interested in some other specific information or do you have some ideas where I could start debugging in the neotest or neotest-rust lua code based on the crash dump above? |
I have no idea where to go with this, so whatever you can come up with would be great! |
I tried to trace this in neotest, but I am a little lost now.. It's a lot of code, and I am not sure where to look because this is just a sudden full crash without any error information or any useful context information in the crash dump.. For now, the best way for anyone encountering this is to only open neovim in the top level workspace folder. |
Similar issue, fails for me in cargo_metadata::__call when running the job command for cargo metadata. |
@robamu I have the same issue on MacOS (intel). If you tested on an AMD 64 macbook then it be an architecture issue rather than platform issue? |
I am also seeing a crash on an M1 Mac. I tried to reproduce with Neovim nightly and debug symbols, from Nix, but it doesn't crash there, so I wonder if the latest Neovim has this fixed.
EDIT: Using the default neovim package from Nix (not nightly), this crashes as well, which makes me think this is/will be fixed with a new version of neovim. 🤷♂️ |
I have issues with workspaces which might be related to this plugin. More specifically, if I open neovim inside my 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. I think the best behaviour, if that is possible, would also be to only run the tests of that subpackage in the workspace, if I open neovim in that subfolder.
OS: Ubuntu 22.04
neovim version: v0.9.4
The text was updated successfully, but these errors were encountered: