-
Notifications
You must be signed in to change notification settings - Fork 1.8k
rust-analyzer analysis-stats
doesn't respect excludeDirs
#19779
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
Comments
It's very possible indeed that we don't skip Edit: My mistake, no knob has effect there. |
Maybe I can specify this config option in Yes, I have a specific need for it: I want to benchmark and profile rust-analyzer analysis with and without diesel-related code, to see the difference. Using Anyway, I already determined that the culprit is shockingly slow My initial goal was to prevent
|
Chalk performance is a problem, and hopefully the new trait solver (migration soon-ish) will improve that. Chalk wasn't optimized at all, while the new trait solver will be used in rustc, so will get heavy optimization. Also note that |
@ChayimFriedman2 By the way about single-threadness, I've noticed that I can pass Fortunately, with |
Is there any way to learn if |
I don't understand, do you want About parallelism, yes, this is because when the |
Also, you might be misunderstanding what |
Try and see? |
@ChayimFriedman2 I thought it would work for Thank you for such quick and helpful response. Will keep issue open for now, I think |
I wouldn't recommend investing time/work in trying to optimize chalk. As I said, we expect to switch soon-ish to the next trait solver (jackh726 is working on that), so any work done on chalk will be lost. |
@ChayimFriedman2 makes sense. I will use |
I've just tested |
1
2in Cargo.toml add
bin.name and package.name same |
Uh oh!
There was an error while loading. Please reload this page.
rust-analyzer version: rust-analyzer 1.87.0-nightly (4d30011 2025-03-15) (using old Salsa, because it uses 2 times less RAM)
rustc version: rustc 1.87.0-nightly (4d30011f6 2025-03-15)
editor or extension: LazyVim (nvim v0.11.0)
relevant settings:
rust-analyzer.json
rust-analyzer.toml
in workspace rootrepository link (if public, optional): private
Expected behaviour: rust-analyzer skips lowering, type inference and trait solving for files and directories mentioned in
files.excludeDirs
Actual behaviour:
The text was updated successfully, but these errors were encountered: