Skip to content

Wrong import error when importing trait created by proc-macro #8219

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

Closed
SrTobi opened this issue Mar 27, 2021 · 1 comment
Closed

Wrong import error when importing trait created by proc-macro #8219

SrTobi opened this issue Mar 27, 2021 · 1 comment

Comments

@SrTobi
Copy link

SrTobi commented Mar 27, 2021

Version: v0.2.529

Imports are marked red when importing traits created by proc-macro. In this case by the extend crate. Note that the method that is called on that trait is resolved correctly.

cargo run runs fine.

I uploaded a test repo: https://github.com/SrTobi/rust-anlyzer-extend-bug

image

I also tried to play around with settings, but was not able to get it running. Maybe I did something wrong? (loadOutDirsFromCheck gets suggested a lot, but when I tried to add it to the settings, vscode told me that it is not an option).
image

@flodiebold
Copy link
Member

Duplicate of #6029, attribute proc macros aren't supported yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants