I have just installed Arduino IDE 2.0.0-beta.3 and get some errors:
uint8_t is marked (red underline) as unknown type name.
Serial.begin(9600) is marked (red underline) as undeclared identifier.
When I make a verify it do not find an error, so it seems at it is only in the workspace it is marked.
When I upload it to the Board, it works as with IDE 1.8.13
But the problem is that the IDE "checking feature" does not work as expected as non-error is marked as error.
I'm using beta 7 and the problem is still there. This time with an Arduino Nano. All "Serial" are "undeclared" and there is an undefined uint8_t in <Servo.h>.
This error is still there in nightly.20210428. But I have a little more information. It is only happening to me for STM32 boards. It does not happen for ESP32 boards.