Multiple Arduino IDE instances with sketches may produce compile errors

I have two instance of the Arduino IDE open, each with a different source file (Arduino-0022). The host computer is Windows7 and the board is Arduino UNO (R2).

If I compile the first sketch and upload it to the Arduino board, it works fine.

When I switch to the 2nd IDE instance and use verify, I get the following errors:

/*
Having another IDE up with loaded compiled or running program produces these messages...

testbug2.cpp.o: In function setup': C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug2.cpp:11: multiple definition of setup'
testbug1.cpp.o:C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug1.cpp:11: first defined here
testbug2.cpp.o: In function loop': C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug2.cpp:14: multiple definition of loop'
testbug1.cpp.o:C:\Users\Ken\AppData\Local\Temp\build1880292211079347124.tmp/testbug1.cpp:14: first defined here

*/

This seems to indicate that the two separate running copies of the Arduino IDE are not independent, or at least the compiler output part is not independent.

When I go back to the IDE that uploaded a sketch, hit the Stop button, then my verify operation on the 2nd IDE functions correctly.

I have reproduced this by switching the order of upload and verify between the two IDEs. However, following this, the situation seems to be no longer reproducible at will, unless I take down both running IDEs and start fresh.

Is there a known confict between two running Arduino IDEs and the output produced by the compiler?

This seems to indicate that the two separate running copies of the Arduino IDE are not independent, or at least the compiler output part is not independent.

They are not, at the moment you should compile the sketches from the IDE sequentially. Alternative is to switch to makefiles.

Hold the shift key while compiling to see the commands passing by.

Thank you for the feedback. I do the compiles sequentially but occasionally still get the error. It seems that hitting the Stop button before a verify avoids the situation (all IDE instances).

The fact that you don't see output in the IDE anymore does not indicate that all background processes are stopped yet.

Have you ever hold the SHIFT key while uploading or compiling ?