Arduino IDE trouble with ATMega32u4 serial ports

When I plug in my Arduino Pro Micro, a serial port gets created in Windows, and the port disappears when I unplug it (expected), as seen in Window device Manager. The Arduino IDE on the other hand seems to have trouble keeping track of the comings and goings of the USB serial port.

From a fresh Windows boot, I can start everything up and load a sketch no problem. The port setting on the IDE is COM9, which matches what Windows device manager says. Some times I can even reload the board a couple of times successfully. But after one or 2 times, when I try to load it says "Couldn't find a board on the selected port." When I look at the port setting in the IDE, there are 2 or more entries that say COM9, and they're all checked. Windows says only 1 COM9 exists. Restarting the IDE makes no difference. I have to reboot the whole PC to get it to work again.

Anybody else seen this?

This is a known bug:

It's actually two bugs:

  • Duplicate entries in the Tools > Port menu.
  • Spurious upload failure.

The latter is fixed in Arduino IDE 1.8.10. They are both fixed in the beta build of the Arduino IDE. Since the beta build is less likely to be stable and the former bug is merely cosmetic, I recommend that you update to Arduino IDE 1.8.10 and ignore the harmless duplicate entries in the Tools > Port menu.

Ok, thanks for the pointer to the bug report. I seems now the only way to get the production install package for Windows is through the Windows Store, and the version there seems to be still 1.8.9 (it says already installed when I try to download it). My running version is 1.8.9 (Windows store(1.8.21.0).

I downloaded the beta, which seems to be 1.9.0 build 133 at the moment. Only available as a zip file it seems, with no installer that I could find. The installation instructions assume an installer, so not sure how to proceed from here, except that the bug report says the upload actually does succeed, it just fails afterward, so maybe I’ll just keep using 1.8.9 for now.

Unzip the package and run the IDE from the unzipped version directly.

Normal version: Installer 1.8.10

The store version has some issues (from reading on this site); rather use the normal install. I'm still on 1.8.5 because I don't want to have to deal with this type of issues.

Older releases

jwintour:
I seems now the only way to get the production install package for Windows is through the Windows Store

Absolutely incorrect. You're just getting lured by the pretty "Get" button (Confusion caused by the "Windows App" download option · Issue #6432 · arduino/Arduino · GitHub). Above that button are two different links: "Windows Installer, for Windows XP and up" and "Windows ZIP file for non admin install". If you click either of those links it will download the traditional version of Arduino IDE 1.8.10 without any need to deal with Windows App Store shenanigans.