Skip to content

"Can't find crate" for extern (even after cargo build) #15

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
mgalgs opened this issue Oct 26, 2015 · 2 comments
Closed

"Can't find crate" for extern (even after cargo build) #15

mgalgs opened this issue Oct 26, 2015 · 2 comments

Comments

@mgalgs
Copy link

mgalgs commented Oct 26, 2015

I'm new to rust, so maybe I'm doing something silly, but I seem to be having troubles getting flycheck-rust to recognize any external dependencies whatsoever. I've put together a minimal demo repo that shows the problem for a crates.io dependency as well as a local dependency: https://github.com/mgalgs/flycheck-rust-test

In frsub/lib.rs in that repo, I'm trying to extern a crate from crates.io which is present in my Cargo.toml, but flycheck-rust complains about not being able to find it (even after running cargo build from the frsub directory).

In src/main.rs in that repo, I'm trying to extern in the frsub crate by path (see Cargo.toml at the top-level).

What am I missing here?

@mkpankov
Copy link
Contributor

@mgalgs it's the same as #8

Currently Flycheck is unable to get proper search paths of crates which are used by Cargo.

@swsnr
Copy link
Contributor

swsnr commented Oct 27, 2015

Closing as duplicate then.

@swsnr swsnr closed this as completed Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants