Skip to content

Can't find crate for dev-dependencies while rustc has no problems! #171

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
Robbepop opened this issue Mar 19, 2017 · 5 comments · Fixed by #247
Closed

Can't find crate for dev-dependencies while rustc has no problems! #171

Robbepop opened this issue Mar 19, 2017 · 5 comments · Fixed by #247

Comments

@Robbepop
Copy link

System or Software Version
Sublime Text Build 3126
Rust Enhanced 1.2.3

An image for the problem:
http://i.imgur.com/PK5nSVr.png

I experience this problem in my crate "prophet" at this position.
The crate approx is my only dev-dependency. Maybe this has something to do with the false-positive error?

rustc and cargo do have no problems at all and everything compiles fine even without warnings.

@ehuss
Copy link

ehuss commented Mar 19, 2017

For now, you can set rust_syntax_checking_include_tests to false in your RustEnhanced.sublime-settings. I'm not entirely sure why it fails, I will look into it more.

@ehuss
Copy link

ehuss commented Mar 21, 2017

There's not much that can be done about this for now (other than disable checking of test code as mentioned above). Running "cargo rustc" will not pull in dev-dependencies, and I don't see a way to force it. "cargo check" doesn't check test code either (see rust-lang/cargo#3431).

@Robbepop
Copy link
Author

Robbepop commented Mar 21, 2017

Thank you very much for the info @ehuss !

However, ... this bug currently disable most of the nice editor float-in warnings and errors.
I guess it only shows bugs, infos and warnings that are generated before the pass to detect if a crate is missing within the internals of the compiler.

So this bug is a great show stopper for me at the moment.
I hope they fix the issue in rust-lang/cargo#3431.

@jasonwilliams
Copy link
Member

Can this ticket be closed?

@ehuss
Copy link

ehuss commented Jan 28, 2018

Can this ticket be closed?

I'd prefer to leave it open until checking of tests is fixed. I recently added support for cargo check to validate test code (Rust 1.23, with --profile test). However, I haven't updated Rust Enhanced to take advantage of this, yet. I'll try to work on it soon, since I find it annoying when tests don't get checked.

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

Successfully merging a pull request may close this issue.

3 participants