Now I’ve got a funny new behaviour (had something similar a while ago).
particle compile photon examples/dmy --target 0.6.1-rc.2 seems to build some other code.
Although I have got some definetly not compilable code I get this from that command
C:\Users\Particle\Libraries2.0\_todo_\uploaded\PS2Communication>particle compile photon examples/dmy --saveTo firmware.bin --target 0.6.1-rc.2
Compiling code for photon
Targeting version: 0.6.1-rc.2
attempting to compile firmware
downloading binary from: /v1/binaries/588b1b7fdcc9827d6858e4fd
saving to: firmware.bin
text data bss dec hex filename
4460 8 1420 5888 1700 /workspace/target/workspace.elf
Saved firmware to: C:\Users\Particle\Libraries2.0\_todo_\uploaded\PS2Communication\firmware.bin
And not surprisingly, when building and flashing code that wouldn’t throw errors, I’d assume the build was fine and I’d scratch my head why that code is not doing what I’d expect it to do.
Pretending to build your code and downloading a rather obscure binary (which I don’t know what it actually does) isn’t a reassuring experience
However building for targets pre 0.6.1-rc.2 works as expected