10
votes

I recently installed rustup on my Windows machine and incorporated it into Atom as my editor. Everything works fine, but as soon as I do a cargo run on my project, the first thing that Cargo says is:

 Blocking waiting for file lock on build directory

This blocks the whole process for about a minute before the actual compile and run starts. As far as I remember this did not happen before (I use Cargo under OS X but without rustup).

Is there any way to disable this or at least reduce the timeout?

1
Perhaps you use an Atom plugin that runs cargo build to check the syntax? If it is the case, this is the issue because you cannot run cargo twice at the same time.antoyo
Oh yes, that is a possible solution. I'm using the tokamak plugin and - as far as I know - it does syntax checking using cargo. Thanks for the hint. I'll look furhter into this direction.Norbert
@antoyo: Sounds like an answerMatthieu M.

1 Answers

7
votes

The tokamak Atom plugin runs cargo commands. Since you cannot run cargo twice at the same time, you get this notice.

I don't think there is something you can do, unless waiting for the compiler to speed up.

Perhaps playing with the options like save_buffers_before_run in tokamak.toml could make a difference.