Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 533848

Summary: Arduino core & custom libs could not be resolved when using Arduino SAM Boards Platform
Product: [Tools] CDT Reporter: Mark H <contact>
Component: cdt-arduinoAssignee: Project Inbox <cdt-arduino-inbox>
Status: CLOSED WONTFIX QA Contact: Doug Schaefer <cdtdoug>
Severity: critical    
Priority: P3 CC: cdtdoug
Version: 9.4.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/131085
https://git.eclipse.org/r/131084
https://git.eclipse.org/r/131086
https://git.eclipse.org/r/131087
https://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=a4c65088f9209eb7dd03e81ff998911074225d64
https://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=2818895d9055af371713718b84abcacd3c78b1b8
https://git.eclipse.org/c/viatra/org.eclipse.viatra.git/commit/?id=ca63c9d50cc40b1fc878d001de25c8815e7b8b54
https://git.eclipse.org/c/viatra/org.eclipse.viatra.examples.git/commit/?id=a1e2085678c3673ec5ad07b4bc68b66007a669f8
Whiteboard:

Description Mark H CLA 2018-04-20 03:33:20 EDT
Hello,

I have maybe found a reproducable problem which I discovered when I have switched my arduino uno dev board to an arduino due (SAM). I have tryed a lot of things and ended with a complete reinstallation, but the problem remains.

OS: Windows 10

1. Fresh Installation of Arduino version 1.8.5

2. Fresh Installation of Eclipse version Eclipse IDE for C/C++ Developers Oxygen.3a Release (4.7.3a) Build id: 20180405-1200

2.a. Update C++ Tools to 9.4.3.2018022261533

3. Install Eclipse C++ for Arduino 3.0

4. Install via Arduino Download Manager Arduino Sam Boards (32-Bits ARM Cortex M3) V 1.6.11

5. Setup new connection Arduino Due Programming Port 

6. New Project -> Arduino Project

The default template sketch includes Arduino.h at the first line which could not be resolved.

The build process works, but none of the core libs and(!) any custom libs could be resolved (I know they have to be added also in the project proerties) which ends in no autocompetion and a lot of bug markers.

When I am using the common Arduino AVR Boards (1.6.21) all libs are correctly indexed.
Comment 1 Mark H CLA 2018-04-22 05:31:23 EDT
After removing the whitespaces in the boards.txt everything seems to be fine with the library indexing.
Found the solution here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=519529

Not sure about this has been solved in upcoming versions or it is back again. I have installed the versions mentioned in the describtion.

cheers
Comment 2 Mark H CLA 2018-05-26 02:07:23 EDT
Unfortunately, the fix worked only temporarily and the problem has know reappeared.
Comment 3 Eclipse Genie CLA 2018-10-17 14:50:46 EDT
New Gerrit change created: https://git.eclipse.org/r/131085
Comment 4 Eclipse Genie CLA 2018-10-17 14:50:49 EDT
New Gerrit change created: https://git.eclipse.org/r/131084
Comment 5 Eclipse Genie CLA 2018-10-17 14:50:51 EDT
New Gerrit change created: https://git.eclipse.org/r/131086
Comment 6 Eclipse Genie CLA 2018-10-17 14:50:53 EDT
New Gerrit change created: https://git.eclipse.org/r/131087
Comment 11 Jonah Graham CLA 2020-05-23 10:54:37 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.