I used the Arduino IDE many times, and until recently, never tried using the "upload using programmer" mode.
I have a development board for a WWVB clock that has a M328p with a 16MHz xtal, and an ISP 2x3 header on it for programming.
The chip came loaded with an Arduino sketch, which I have a copy of, ready to run and all works as expected.
Last night I wanted to try out some mods to the sketch, and tried using my Olimex AVRISP MK2 cloan to program using the above method.
I had set up the IDE with board = UNO, and Programmer set to AVRISP mkII, the upload failed saying it could not find the usb device AVRISP mkII, although it shows up in the device manager list, and has the VID/PID as expected for an AVRISP mkII. Oh BTW, this is on a Dell Win 7 desktop that has AS4.19 on it and the programmer works fine from AS4.
After giving up on the AVRISP mkII, I tried the same thing using a USBasp programmer with the same results, usb device not found, again the VID/PID pair matched the one in the error message.
Could it be the old drivers from AS4 that's the problem? or something else I'm missing?
edit: Arduino v1.8.13