Re-add rust-analyzer.cargo.sysrootQueryMetadata#18511
Re-add rust-analyzer.cargo.sysrootQueryMetadata#18511lnicola merged 1 commit intorust-lang:masterfrom
rust-analyzer.cargo.sysrootQueryMetadata#18511Conversation
In fact, this experience is so poor, I wonder if it's even worth supporting? |
|
If we'd like to get rid of the stitched sysroot stuff, a longer term solution could be teaching rust-analyzer to use something other than |
3b06f26 to
52c4534
Compare
52c4534 to
3c98b98
Compare
|
r? @davidbarsky |
davidbarsky
left a comment
There was a problem hiding this comment.
approved! didn't want to be the only one to approve it for conflict of interest reasons.
|
I know, but I wasn't able to merge it because of your pending "changes requested" review. |
Wild, okay! I thought it was overridable. |
|
I know, check out my struggles in the history above 😕. |
I didn't see those in email and I didn't stroll up. I'm sorry about that. |
Hmm, that seems very odd to me? The no-deps retry should yield the same result as the stitched workspace |
|
I'll let @darichey expand, but he tells me "it doesn't". (I've noticed that weirdness as well, for what it's worth.) |
|
In fact, I can't reproduce this. If I run r-a offline I still get resolved standard library stuff. I'd really prefer to get rid of this config as I'd like to drop the stitched workspace hack in the near future |
|
Maybe it's specific to json workspace project loading? I'll try to get a simple repro today |
|
Perhaps, I only tried a basic cargo setup |
|
Opened #18590 to track this, please drop any findings for this there |
#17795 removed this option, turning it on for everyone. This commit adds it back, still on by default.
At work, users are effectively offline, so the initial

cargo metadatawill always fail. The--no-depsretry will succeed, but the experience with this path is very poor, because a ton of std stuff fails to resolve (some still works, I can't tell the pattern). Something like this is probably happening in #17759.We want this config option so we can turn it off by default for our users and always use the stitched sysroot library.