-
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
Getting proc macro not expanded: No proc-macros present for crate rust-analyzer (unresolved-proc-macro) on macos #16331
Comments
Have you tried clearing your target dir? I've seen this error happen when upgrading my toolchain from time to time (not quite sure why that error specifically happens then). Also check the logs maybe some error is in there. |
I'm seeing the same error since ~2 weeks ago with Rust nightly (currently In my case it errors on a There's no output in the "Rust Analyzer Language Server" logs. |
Also happening to me when deriving |
There has been a breaking change in cargo afaik that breaks package ids which |
Thanks, @Veykril. I had this too for a little while, and updating nightly to |
Better error message for when proc-macros have not yet been built Closes #16331
This now happens in 1.78 |
It happing now tooo. And i am getting lost in searching the the solution. |
Please open a new issue and fill out the template, including what operating system you are on and what error(s) you are getting |
try settings.json: {
"rust-analyzer.procMacro.enable": true
} |
Thanks |
That won't fix it. This setting is true by default, and it being disabled wouldn't lead to the original error. |
@Anatoly03 This is a different problem. Please open a new issue, and include a minimal reproducible example (if you can) and rust-analyzer's logs (available on VSCode under Output->Rust Analyzer Language Server). |
rust-analyzer version: rust-analyzer version: v0.3.1799 (https://github.com/rust-lang/rust-analyzer/commit/9db515503f11bda7812cdfb9c2839f70f4cb1fdd 2024-01-01)
OS: MacOS 14.2.1 (23C71)
rustc version: rustc 1.75.0 (82e1608df 2023-12-21)
relevant settings: none


Any effort will be appreciated!
The text was updated successfully, but these errors were encountered: