-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Could not resolve macro iproduct
#6793
Comments
Duplicate of #1165. |
As an additional note, this does not happen in the 2020-11-30 release because the macro-error diagnostic was newly added. You can set |
Actually, @lnicola while there's a local import there, the macro is referred to with the full path, so it shouldn't matter 🤔 |
It still seems related to the local import, since moving it to the top fixes the errors. But go to definition on the macro works -- strange. |
Is it an error to use a qualified macro like this?
|
Ah, the macro is written in a way that directly calls |
Wow, that was a quick response. (By now, I had bisected it to the emission of the diagnostic.) |
Thanks for your work on the project. So far, the experience of having rust-analyzer support has been a huge boon!
I just found my first rust-analyzer bug: rust-analyzer fails to resolve a trivial macro.
Minimised input
Expected output
rust-analyzer
doesn't output any diagnostic.Actual output
I get a diagnostic for line 6 (the one with the for loop): "could not resolve macro
iproduct
" (twice)Meta information
I'm using the atom plugin with the rust-analyzer server binary; I don't think this matters.
Does not happen with the 2020-11-30 release.
Does reproduce with the 2020-12-07 release (which I just updated to; downgraded to 2020-11-30 to continue developing seamlessly).
I can try to bisect the bug, but I'm not sure how long that'd take me. (Compiling
rust-analyzer
takes a while on my older notebook.) Let me know if this would be helpful.The text was updated successfully, but these errors were encountered: