-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Error on "cargo run", runs fine on second call #1669
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
Comments
Do you have an example project I could take a peek at as well |
Sure, I think it happens on almost all projects I build. You can try with: https://github.com/azerupi/rust-learn In The exact command I am using is I downloaded cargo through AUR (Arch User Repository). https://aur.archlinux.org/packages/cargo-bin/ And rust through the pacman: https://www.archlinux.org/packages/community/i686/rust/ I also got this error once, but I can't seem to reproduce it:
|
Runnin verbose mode:
|
What version of Cargo and Rust are you using? Unfortunately I can't reproduce this :( |
Also, do you perhaps have Cargo running concurrently in the background? (e.g. does your editor run cargo whenever you save?) |
That could be it, I am using Atom with some plug-ins for rust. If it is a plug-in that causes this it's probably Atom linter-rust I will check tomorrow if I still get the error when I disable it. |
My apologies for my late response. So I uninstalled the plugin I mentioned before, and don't seem to have any errors anymore. It's definitely the cause of all my problems. I even noticed that it spawned a new rustc process every time I saved.. At some point I had 13 rustc instances running in parallel saturating my processor |
Ok! In that case I'm going to close this as a dupe of #354. |
Hi sometimes when I run
cargo run
I get an error.Sometimes I get a little info:
But sometimes I just get:
An unknown error occurred
without explanation.This happens only when the file has already been built and was modified. By calling
cargo run
a second time the error disappears (until next modification).I am running on Arch Linux.
The text was updated successfully, but these errors were encountered: