I have written a simple sketch that performs a digitalRead on several pins which are connected to buttons. The buttons have resistors for debouncing. The pins have been set up with pinMode and both versions of the IDE compile code that runs. I have a Serial.print set up to display the results of the digitalRead. IDEVersion 1.18.19's serial monitor shows the pins changing from zero to one when the attached button is pressed, which is what I would expect. Compile the same file on IDE version 2.0 and the serial monitor shows the pins staying at zero regardless of the button status. I am using the following libraries: Servo.h, SPI.h, nRF24L01.h, and RF24.h.
I saw a reference to IDE 2.0 not being compatible with libraries that weren't utf-8 encoded, but I can't find anything on what to look for or change if that is the case.
Select Tools > Auto Format from the Arduino IDE menus.
This will make it easier for you to spot bugs and make it easier for us to read.
Select Edit > Copy for Forum from the Arduino IDE menus.
In a forum reply here, click on the post composer field.
Press Ctrl+V.
This will paste the sketch to the post composer.
Move the cursor outside of the code tags before you add any additional text to your reply.
Repeat the above process if your sketch has multiple tabs.
Click the Reply button to post your reply.
This bug only affects the Library Manager. If you had such libraries installed, you would find that the Library Manager view was empty when you opened it. The bug will not cause a change in the behavior of your sketch. So you can forget about this as a possible factor in the problem you are experiencing.
Thanks for your response and thanks for the info on the IDE 2.0 compatibility issue.
Seems there was something wrong with the file - that's a guess. Writing the sketch to a new filename "fixed" the issue. Now a button press is recognized as it should be in both versions. Weird, but at least now I can continue using 2.0 which I like much better than the old version.