This is a known bug. The instructions for the workaround are here:
https://forum.arduino.cc/t/upload-does-nothing/930864/28
It is being tracked by the Arduino IDE developers here: