-
Notifications
You must be signed in to change notification settings - Fork 302
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
Getting "can't find crate for ..." with Syntastic #130
Comments
Same issue for me when using Neovim + Neomake. $ rustc --version
rustc 1.13.0 (2c6933acc 2016-11-07)
$ cargo --version
cargo 0.13.0-nightly (eca9e15 2016-11-01)
$ nvim --version
NVIM 0.2.0-dev
.... steps to repro:
|
I am also getting this issue, using vim and pathogen. |
I have the same issue with vim and vundle, anyone found a solution? |
@yyyar try my fork of rust.vim for now. It builds a new syntax checker for rust using cargo that runs "cargo build" in the directory of the file. It's a little slow the first time because it has to compile, but it works for now. From what I understand, rustc removed the -Z --no-trans flag, which was what the old checker was using.The checker on master now just runs "rustc {file}". This was done to keep rust.vim fast, but with the new changes to cargo check coming in the future, we can now run "cargo check" in the directory, and this should be almost as fast because cargo check no longer compiles ( you can read about that here ): https://www.reddit.com/r/rust/comments/5ibr2a/cargo_check_has_been_merged_into_cargo_directly/ So you can take my fork, or try to build a new syntax checker using cargo check. rust.vim might get a PR or update fixing this soon, but I'm not sure when that would get merged into master. |
While awaiting PR #132
By this settings would be used |
FYI @bobzoller |
Update: Rust stable branch now includes cargo check |
Looks like it was fixed, but just to update this ticket, adding this line to your vimrc will fix it |
FWIW I also had to update the syntastic plugin itself - just thought I'd add a friendly reminder! |
Hi all, After various fixes to At last, this old issue should be done! |
Hi, using syntastic with this plugin will give me the error "can't find crate for" although the crate is found properly by cargo (program compiles just fine).
This might be a syntastic configuration problem, but no mention is made in this repo about any configuration to do so here I am.
The text was updated successfully, but these errors were encountered: