My issue seems to be exactly the same as described on this thread (although on Windows) [SOLVED]Flashing with local ide via cloud not working
though solution is still unclear.
I really need to resolve it but so far I cannot even find information where and what to look for. I also found that post Arduino or PIC32 experience, the scattered all over the place information about various problems arount Photon tools does not really work in favour of this little device - it’s really frustrating.