Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 519529 - Unresolved Inclusion <Arduino.h>
Summary: Unresolved Inclusion <Arduino.h>
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-arduino (show other bugs)
Version: Next   Edit
Hardware: PC Windows 8
: P3 blocker with 2 votes (vote)
Target Milestone: 9.3.2   Edit
Assignee: Doug Schaefer CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-12 02:34 EDT by Vadim . CLA
Modified: 2019-09-25 12:12 EDT (History)
5 users (show)

See Also:


Attachments
screenshot with error (58.56 KB, image/png)
2017-07-12 02:34 EDT, Vadim . CLA
no flags Details
screenshot 2 with error (33.90 KB, image/png)
2017-07-12 03:15 EDT, Vadim . CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim . CLA 2017-07-12 02:34:16 EDT
Created attachment 269322 [details]
screenshot with error

Fresh install Eclipse and arduino c++ 3.0.

Eclipse IDE for C/C++ Developers
Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
Comment 1 Vadim . CLA 2017-07-12 03:15:55 EDT
Created attachment 269324 [details]
screenshot 2 with error
Comment 2 jean-françois TRAP CLA 2017-08-09 08:12:30 EDT
To reproduce this problem is very simple:
- 1 Installs the latest eclipse version.

Eclipse IDE for C/C++ Developers
Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
OS: Windows 8.1, v.6.3, x86_64 / win32

- 2 With Eclipse MarketPlace installs the "Eclipse C++ IDE for Arduino 3.0"

- 3 With Arduino Download manager installs "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" version 1.6.15

- 4 Create a new Project C/C++ "Arduino Project"

this the same problem that SAMD Board Cortex-M3.
Comment 3 Doug Schaefer CLA 2017-08-09 11:19:31 EDT
I see the root of the problem is that the USB product and manufacturer have spaces in their names in the boards.txt file for these boards. For example:

arduino_zero_edbg.build.usb_manufacturer="Arduino LLC"

I'll try and deal with that better (I generate command lines with these in them). The next release should be the Oxygen.1 release at the end of September.

In the mean time, edit the boards.txt files that are a problem and remove the spaces and the quotes. I don't think that'll break anything.
Comment 4 Doug Schaefer CLA 2017-08-09 16:02:13 EDT
Interesting also that this is only an issue on Windows where the Java ProcessBuilder does some disturbing things to the command line before launching the process. Anyway, I seem to have a fix that works for the upcoming release.
Comment 5 Eclipse Genie CLA 2017-08-09 16:05:31 EDT
New Gerrit change created: https://git.eclipse.org/r/102813
Comment 7 Eclipse Genie CLA 2017-08-10 10:06:55 EDT
New Gerrit change created: https://git.eclipse.org/r/102887
Comment 9 jean-françois TRAP CLA 2017-08-11 03:17:37 EDT
Thanks Doug Schaefer,

I deleted the spaces in the file Boards.txt and the problem is solved.
but, Do not delete the quote otherwise the compilation does not work anymore.
Comment 10 Michael Asman CLA 2018-07-23 23:23:22 EDT
I just did a clean install of Eclipse Photon.  I am seeing this exact error.
Comment 11 N247S - CLA 2019-08-14 14:02:55 EDT
Hey, this error seems to have re-occured in the newest version of cdt-arduino

Eclipse version: 2019-06 (4.12.0)
Arduino C++ Tools version: 9.8.1.201906192008

platform package: Arduino SAMD Boards (32-bit ARM Cortex-M0+) version 1.8.3

The 'Arduino.h' file cannot be resolved. Meaning no autocompletion as well. Seeing the report date, I hope this gets fixed within reasonable period! (or there is a solution I don't know of)

Thanks in advance!
Comment 12 Adam Nickerson CLA 2019-09-25 12:12:35 EDT
I'm seeing this problem as well

Eclipse version: 2019-09 R (4.13.0)
Arduino C++ Tools version: 9.9.0.201908121111

platform libraries: Arduino SAM Boards (32-bit ARM Cortex-M3) version 1.6.12

warning(orange underline) Uresolved inclusion: <Arduino.h>
warning(orange underline) Uresolved inclusion: <SPI.h>

then all the arduino functions are not recognized like SPI.begin and are underlined red but it still compiles.

I'm new to eclipse so this maybe something that I did wrong.