Every once in a while, I'm working on an arduino project, and I go to compile the code but then the software says com port not found(even though it was working fine 5 minutes ago) and going through the com ports, the arduino isn't listed. I try everything such as disconnecting and reconnecting the arduino from the computer, restarting the computer doesn't help either. It's very strange and it happens sporadically. If anyone can help, thank you.
First thing to try is USB port on your PC and cable. I have similar problem on my notebook, one of USB ports have became UNSTABLE after years.
Which Arduino?
How do you get it to work again? That might give an indication what is wrong.
A possibility is bad connection. I have a SparkFun Redboard where the USB connector starts to wear out; sometimes I need to wiggle it a bit before I get the typical windows beeps again.