noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

Double output? #460

Open fvandillen opened 8 years ago

fvandillen commented 8 years ago

Since the last update, the output from the build process is printed twice. This certainly has to do with the last update since it only started doing this after the update.

noseglid commented 8 years ago

I'm guessing Atom accidentially activated it twice. Have you tried restarting/reinstalled?

fvandillen commented 8 years ago

Will try and let you know!

Cxarli commented 8 years ago

Did it work?

alygin commented 8 years ago

I came across the same problem. It doesn't occur always, but it's easy to make it happen. I use atom-build-cargo and the minimum set of steps to reproduce it:

  1. Change something in a project file to make it 'dirty' (to guarantee its recompilation the next time). Also make sure that the code has some problems to make the compiler complain.
  2. Restart Atom.
  3. Build the project with the Cargo: test target.

That's all. The output is always doubled in this scenario for me.

Some additional observations:

  1. If I use another target, the scenario won't work (the duplication doesn't occur).
  2. If I build the project with the default target (Cargo: build (debug)) before running tests, the scenario won't work.
  3. Cargo command executes additional rustc process to compile the code, and it's only the messages from rustc that are doubled. The messages from Cargo itself are correct.
  4. At first, I thought that the problem is in the terminal type that is used by these processes, because we recently switched to xterm in atom-build-cargo for rustc. But when I switched the xterm mode off, the problem didn't disappear.
noseglid commented 8 years ago

Thanks for the input @alygin . The steps to reproduce doesn't work for a simple build file just echoing "hello". I'll see if I can get a cargo environment running and do it exactly as you describe.

randomPoison commented 8 years ago

I'm seeing the same thing that @alygin is seeing:

atom_double_build

I'm using atom-build-cargo as well, but I'm on Windows 10.

s0ra commented 7 years ago

I think it may be related to the number of projects opened. I have set up x .yml files and x set of keymaps for each project. Then, I added x project folder to the panel, and when I press the shortcut, x files are executed.