uint8_t is marked as unknown type name and Serial.xxx is marked as undeclared id

I have just installed Arduino IDE 2.0.0-beta.3 and get some errors:

  1. uint8_t is marked (red underline) as unknown type name.
  2. 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.

Thanks for your report @finnholm.

Which board do you have selected from the Arduino IDE's Tools > Board menu?

It is Mega 2560.

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.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.