nkolban / esp32-snippets

Sample ESP32 snippets and code fragments
https://leanpub.com/kolban-ESP32
Apache License 2.0
2.36k stars 711 forks source link

unable to import c_includes.xml #480

Open wdouglas1999 opened 6 years ago

wdouglas1999 commented 6 years ago

Good day. I managed to compile boot WiFi with no issues , but when I try to include files I need to do them one at a time since I changed the file to . Cpp extension. I am unable to import includes file c_includes.xml. after giving path. and finish nothing happens. Can anyone assist? Thanks

chegewara commented 6 years ago

https://github.com/nkolban/esp32-snippets/blob/master/eclipse/c_includes.xml

wdouglas1999 commented 6 years ago

Hi, thank you for the reply. I have this file already and I use it to try to import the includes, but the includes are never added and the list remains blank. I can only add it one by one? What could I be doing wrong? I’m on Windows 10.

chegewara commented 6 years ago

I may be wrong but this file may be too long, ive got my own include.xml prepared on ubuntu and with many includes it cant be loaded. You dont need assembler part, so you can remove it from this file: https://github.com/nkolban/esp32-snippets/blob/master/eclipse/c_includes.xml#L7-L37

Or just prepare your own includes in one project, then export it to any_includes.xml.

wdouglas1999 commented 6 years ago

Hi, I shortened the file but still not able to import the includes. Thank you for you help

Gnorkus commented 6 years ago

Hi,

I think I have a weird solution to the problem, wdouglas. I experimented by exporting entries, and noticed, that although the entries are labelled GNU C and GNU C++, it really wants "C Source File" and "C++ Source File". Must be a bug in eclipse, I suppose. Mine even loads the Assembly Files. Can you tell me if this works for you??? It's an XML file stuffed in the following zip. Just store it in the same folder where c_includes.xml is found...

I'm running a Windows 10 machine also, and it might be that the current version is different than the Unix in some minor way. I can't confirm or deny it...

Test_includes_GNU.zip

Lukykl1 commented 5 years ago

Hi, I can confirm that @Gnorkus xml works. I couldn't import with original.