Open Fuuzetsu opened 3 weeks ago
I guess for all traits in scope it solves for the generic IntoTrait
and that takes a lot of time. I suppose this would explain why in a small clean project it doesn't take a long time.
I don't understand why it's trying to do this at all though: I'm trying to do completion on Foo
and I am not touching the impl
so it shouldn't need to do this at all.
rust-analyzer version:
rust-analyzer version: 2024-09-02 [/nix/store/4n7jkl09aplbdbchiflmscppqlr0d2pk-rust-analyzer-2024-09-02/bin/rust-analyzer]
rustc version: (eg. output ofrustc -V
)rustc 1.82.0 (f6e511eec 2024-10-15)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable) VSCode with v0.3.2029 extension version
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)code snippet to reproduce:
I don't have a minimal example that still reproduces a problem in tiny project. Maybe there are some extra conditions to trigger this.
I start with this code:
Once I type the
.
on theui.
, RA goes to fetch completions and it's normal speed.but if I uncomment
extra_gaps
, it suddenly takes multiple times longer!Here's from another attempt with the argument present, this time it took even longer
I wish I had a better reproducer but I do not. I can try to answer any questions or run with some other debug settings if needed. Let me know.