You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
(possibly others, these are the ones that I can easily find)
I am able to reliably reproduce this error when using a magnetic spinning hard drive (around 80-90% failure rate) on both macos and windows.
After looking at the test, I'm fairly certain the reason is because the tests are sharing the cargo target directory. If one test (such as client_changing_workspace_lib_retains_diagnostics) builds something called "liblibrary", and another test (say client_test_complete_self_crate_name) creates a "liblibrary" at the same time, they will conflict with one another and stomp on each other's files.
I think the solution is that each test should use a dedicated target directory (that is how cargo's test suite works). I'm actually not sure how rls sets the target directory, or why the test suite is set up to reuse it, otherwise I would submit a PR. The following quick-and-dirty hack fixes the problem: