Bug 538263 - Build of Arduino does not clear problems
Summary: Build of Arduino does not clear problems
Status: CLOSED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-arduino (show other bugs)
Version: Next   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-24 18:36 EDT by Lawrence Emke CLA
Modified: 2020-05-23 10:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lawrence Emke CLA 2018-08-24 18:36:01 EDT
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.
Comment 1 Lawrence Emke CLA 2018-08-25 11:12:59 EDT
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.
Comment 2 Lawrence Emke CLA 2018-08-25 11:31:29 EDT
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
Comment 3 Lawrence Emke CLA 2018-08-25 11:34:02 EDT
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.
Comment 4 Jonah Graham CLA 2020-05-23 10:54:03 EDT
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.