-
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
Non-snake-case None match / {unknown} for non-basic types on latest rustc #19287
Comments
What does Any logs? What does the status bar item (bottom left) show on hover? |
I have the same issue. When I run the |
This is from my "real" project rather than a toy project, the issue appears in both cases
Status bar logs just has this, I am not sure what file it's referring to 🤷
Interestingly I do not have this issue with Cursor, which I installed right after opening this report, reinstalling VSCode might fix it, but I'm not in a position to do that on this machine for a couple days. My VSCode workspace is trusted if there was any concern about that since that is one potential difference between VSCode and Cursor. |
That's not related, it's a known bug and it isn't related to sysroot. |
@MatthewSbar judging from your status output std isnt loaded for you, I assume your toolchain version is 1.81 or below which we dropped support for (there should be a warning in VSCode for that) |
I have the same symptoms as #19281 (Non-snake case None match, non-standard types show as {unknown}) and have run through the same troubleshooting steps (reinstalling rustup, add/remove rust-src, reinstalling VSCode extension, starting in a brand new project, cargo clean, etc.), however, I don't believe my issue is network/package related, I'm also on MacOs. If there's some type of workaround for this, it would be nice.
If I run
cd $(rustc --print sysroot)/lib/rustlib/src/rust/library && __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS=nightly cargo metadata
It prints a bunch of json, if I run cargo metadata in my project, it prints a bunch of json, I am not really sure what the purpose of cargo metadata is in all of this, but, it seems like it's doing whatever it's supposed to? Maybe if #19281 were fixed I'd see an error. 🤷
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.2330-standalone (02862f5 2025-03-03)
rustc version: (eg. output of
rustc -V
)rustc 1.85.0 (4d91de4e4 2025-02-17)
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)
Version: 1.97.2 (Universal)
Commit: e54c774e0add60467559eb0d1e229c6452cf8447
Date: 2025-02-12T23:20:35.343Z
Electron: 32.2.7
ElectronBuildId: 10982180
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin x64 24.3.0
Extension:
Installation
Identifier
rust-lang.rust-analyzer
Version
0.3.2330
Last Updated
2025-03-05, 00:03:20
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)I haven't changed anything to my knowledge
code snippet to reproduce:
Leaving this blank since there are a million issues where String doesn't have type hints in a hello world project
The text was updated successfully, but these errors were encountered: