AtomBuild / atom-build-cargo

Cargo (Rust) integration for Atom
MIT License
18 stars 6 forks source link

"cargo run bin" runs my program three times at once #73

Open radix opened 7 years ago

radix commented 7 years ago

I'm not sure if this is a bug in atom-build-cargo or atom-build, but when I use the "Cargo Run Bin" Atom command, three copies of my program are spawned at once, with all of their output going to the same build output pane.

I'm using Windows 10.

radix commented 7 years ago

I think I figured out that this was happening because I happened to have two extra folders added to my project tree, all of which contained cargo projects. They were for completely different apps, though, and only the first one was actually executed (albeit three times).

alygin commented 7 years ago

It looks very similar to this issue in Atom Build. Does it happen always? Does it happen only for "Cargo run bin"?

radix commented 7 years ago

Yes, I can reproduce it easily by adding an additional folder to my side-bar project tree. It has to be a folder containing a Cargo.toml - any other folder won't cause the bug. And, if I remove the additional folders, it continues to run extra copies of my program until I restart atom.