Skip to content

unresolved import - rust-analyzer (unresolved-import) for Derivative #7641

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
doivosevic opened this issue Feb 11, 2021 · 1 comment
Closed

Comments

@doivosevic
Copy link

Apologies is this is a duplicate but I didn't find any.
I cannot get rust-analyzer to resolve the Derivative import

I'm on ubuntu latest stable and Windows 10 latest. Latest rust-analyzer stable available in latest stable vscode.

Example code:

extern crate derivative;

use derivative::Derivative;

#[derive(Derivative)]
#[derivative(Debug)]
struct Manual {
    config: String,
}

pub fn main() {
}

Zip of the project:
alerting.zip

The code compiles via cargo but the error is in vscode.
Please tell me if you need more info. This seems very reproducible.

@jonas-schievink
Copy link
Contributor

duplicate of #7459

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