emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

sometimes hints to run Rust tests becomes crazy #666

Closed Dushistov closed 2 years ago

Dushistov commented 2 years ago

See screenshot:

crazy_run_test

This happens at random time. Any hint how debug this?

Dushistov commented 2 years ago

I found reproducible scenario.

  1. Create library crate: cargo new --lib
  2. Open src/lib.rs in emacs to force rust-analyzer to load project
  3. Create "tests" directory in the root of crate (in emacs)
  4. Create and open mytests.rs in tests directory (in emacs)
  5. Type
    #[test]
    fn test1

    and you see this: many_run_tests

Dushistov commented 2 years ago

seems fixed on rust-analyzer side