Byte not recognised after updating to Ver 2.0.0 rc-8

I had a problem compiling my program after updating to the latest cli version, which was byte not recognised.
Prior to the update it worked ok with no compile errors.
History was I was having problems with a hdd, which I swapped out and created a new project folder on the latest drive, and copied all the files into the new project folder.
I checked the paths were ok and set up the same, however when I came to compile I got the above error.

I have no idea where the build file is for this, so would presume, it may have something to do with the build file, however all I did do was add #include <Arduino.h> in the ino file and the sketch compiled error free.

Version: 2.0.0-rc8
Date: 2022-06-23T09:36:07.533Z
CLI Version: 0.24.0 [c1b10f56]

Copyright © 2022 Arduino SA

Your topic has been moved to the dedicated IDE2.0 section of the forum.

Thanks

Hi @latedev. Thanks for your report.

What do you mean by this? Did you change the version of Arduino CLI that is bundled with Arduino IDE 2.0.0-rc8?

Please provide the full and exact text of the error message.

Which board do you have selected in the Arduino IDE?

Does the error occur if you compile this sketch?:

byte x = 42;
void setup() {}
void loop() {}

This code should be placed in the .ino file of a new sketch, not added to an existing project.

I found the problem when going through answering your questions.

Thanks.

The problem was I had entered #include "Arduino.h" which I presume would have over-ridden the #include <Arduino.h> thus negating any and all defined names, within that file.

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