Community
Participate
Working Groups
Started with a new install (deleted and reinstalled Eclipse Arduino software 30 minutes ago). Create a new project "abc" copied in the "blink" code. Performed a run. All worked correctly. Added #include <WString.h> Reran and received a compile error on WString.h (expected maybe). Removed the #include <WString.h> Saved the file. Reran and received 11 errors refering all of the (my guess) DEFINE values: LED_BUILTIN, OUTPUT, HIGH, and LOW. But it appears the actual logic was successfully loaded. Modified the Delay values. Reran and the same 11 errors are reported but again the changes appear to be in place. (expected 0 errors). Got out of Eclipse. Restarted eclipse. Reran with an empty Problems panel. This time no errors and again the changes were implemented.
A further symptom of the problem. I started eclipse this morining. I ran the "abc" (blink) project. It seemed to load into the UNO. I then created another project called "Blink". I was going to save the original project. I went into the "abc.cpp" member of the abc project and did a cntl-a to select all of the code. At that moment all of the error of unknowns (LOW, HIGH, etc) appeared in the problem panel. When I pasted the code into the Blink.cpp member, all of the errors were duplicated but listing the Blink project and member. I had not even compiled/run the Blink project.
Just applied the latest change to Arduino/eclipse. (did restart). Now I have a problem where I tried to compile the abc project. It worked but gave me the errors. I tried to change the project to run, but the Blink project was not listed. I can not run that project. Not good
I am going to start all over again. Delete and reinstall C++ and Arduino under eclipse. Delete the current workspace and try from a clean environment, to see if it changes.
Thank you for taking the time to file a bug report about the Arduino component of the CDT project. The Arduino component is no longer maintained and will be removed from CDT 10 (Bug 562498). The final Eclipse CDT version that will include Arduino support is the CDT 9.11 series. Please consider using The Arduino Eclipse IDE and plug-ins named Sloeber (https://marketplace.eclipse.org/node/2637354) for your future Eclipse CDT powered Arduino development.