Port not there... but it is?

So... I'm in the middle of working on a project in IDE 1.8.19 that I've been working on for a while, and suddenly I can't use the serial monitor. When I try it says "Board at COM8 is not available". And... the "Port" option under the Tools menu is grayed out.

So... my board / cable isn't working, right? Well no, I can still compile and upload the sketch just fine! And the board definitely is on COM8, as stated in the status message at the bottom of the IDE.

Also... in IDE 2.x, these problems are not present - serial monitor works fine (on COM8), and the "Port" option works.

What I've tried:

  • Closing & reopening the IDE
  • Rebooting the computer
  • Several different sketches
  • Selecting several different boards
  • Removing & reinstalling the IDE

I'd use IDE 2.x but it doesn't work with the sketches on a UNC path which is pretty much a showstopper for me - all my sketches/libraries are stored on a server and mapping a drive is not an option.

I'm running Windows 11 if it matters, which has been the case for months and the IDE was working fine until today! The board is an M5Stack M5Dial which has an ESP32 processor.

Does anyone have any ideas on this?