I had several sketches open and was editing one of them when the IDE stopped responding to a verify command. I also could not close this sketch. I found that some of the other sketches would shut down as expected but two would not. I resorted to the Windows task manager to stop the IDE.
Upon restarting the IDE it opens one of the sketches that was active before but only that one. No other sketches will open and the one that does won't even respond to a verify command. It reports this error:
I can scroll the text up and down but that's the extent of control over the sketch. Nothing wiring-wise was disturbed, by me, between working and not working.
The IDE opens the last saved sketch. The error isn't something I have seen before but my guess is the arduino isn't connected to a port. If it's windows then some sort of device manager error (it's why I left windows)
This does not help but I'm quite sure that the message is not related to a connection with your board; instead I think that it relates to the internal processes of the IDE.
After that, did you try IDE 2.3.3 again? The use of 2.2.1 might have fixed a corruption somewhere.
If the IDE 2.x misbehaves again, I would delete the directory C:\Users\yourUsername\AppData\Roaming\arduino-ide. The directory and its contents will be recreated from scratch.
Other things that you can delete are the files (!) in C:\Users\yourUsername.arduinoIDE; not sure about the complete directory; make backups first if needed. I regularly delete e.g. the yaml file if I bugger something up.
I'm still having a small issue here. The left snip is from a program I'm editing and the library manager search window shows a partial search term. This instance of the library manager works, that is changing the search term alters the results shown.
The snip on the right is from a sketch which is also capable of being edited. In fact, it's one mentioned above that I couldn't close during the IDE glitch mode. As can be seen the library search function for this sketch does not respond to the search term. I can scroll the results window up and down as per normal. For giggles I opened a third sketch and it behaves like the right snip.
I've closed and reopened this sketch a couple of times with no change.
Is the library manager capable of responding to only one sketch at a time?
You can delete or rename the last one after closing the IDE(s). Next do whatever you were doing that causes the issue, close the IDEs and have a look at them.
Task manager shows four instances of IDE. In reality only three instances are running and I cannot close any of them using the windows close box. There were several other instances which I was able to close. Before closing the others down I went through and shut off the serial monitor wherever it was active. This had no effect on 'closeability'.