-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat: avoid checking the whole project during initial loading #8476
Conversation
bors r- |
Canceled. |
bors r+ |
Build failed: |
bors r+ |
Canceled. |
Fun fact -- took me a while to debug this, because cargo caches rustc invocations. So it cached the first, buggy implementation, and happy echoed buggy behavior at me and leaving me wondering why my bug fix doesn't work and why my logs don't show up. Guess who added this caching to cargo in the first place? |
Turns out that the cache proprely accounts for rustc's own mtime (pat on the back, @matklad!) but misses the wrappers specifically: rust-lang/cargo#9348 |
Just installed a binary of rust analyzer for neovim, made "main.rs" file empty and then opened it, it showed "cargo check failed" and tells me to press enter and then loops ............... |
@rishadbaniya please open a separate issuer with specific steps for reproduction, or ask more open-ended support questions in the forum: https://users.rust-lang.org/c/ide/14 |
68193d8
to
5a5a609
Compare
bors r+ |
@@ -527,7 +527,7 @@ version = \"0.0.0\" | |||
#[test] | |||
fn out_dirs_check() { | |||
if skip_slow_tests() { | |||
return; | |||
// return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you left this in by accident
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed #8584.
I wonder if there's a better way to convenently run a single slow test from the editor that uncommenting the thing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe an env var that RA can set similar to what we do for updating expect tests via command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way I did :
fn out_dirs_check() {
if skip_slow_tests() {
// TODO:
// return;
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, didn't thought about that!
bors r+
🤖