New program doesn't over write old one

I’m using a Photon.
If I compile a program in Particle Dev, I upload it to my Photon and the sequence of flashing
lights is correct. The IDE says “success” but on running, the Photon is still running the previous
program (no over write).

If I compile and upload via the Particle Build, everything works as it should …

Any ideas?


Stupid question, but in Dev, do you first save your files before compiling/flashing?

Yes, I always save first…

Have you also definetly selected the new project folder?
Just opening a file of another project does not activate its home folder as current project folder.

A quick and dirty test for that is to add an obvious syntax error and see if the build fails.

Will try that later… thanks