Page 1 of 2

Eclipse unresolved inclusion

Posted: Tue Mar 02, 2021 7:29 pm
by AG1702
I know this issue has been reported many times, but I still can't solve it.

Eclipse 2020-12
ESP-IDF v4.2
Espressif IDF 1.0.0.7f8U7ScLblnh87Z6aaB2Gpz036 plugin
Java JDK14
Windows 10

I tried with Eclipse 2020-09, 2019-09. Nothing works.

What can I do?

Re: Eclipse unresolved inclusion

Posted: Wed Mar 03, 2021 4:58 am
by WardMas
Hi,
After being able to build your project on Eclipse without any error, right click on your project then apply Index > Freshen All Files.

Re: Eclipse unresolved inclusion

Posted: Wed Mar 03, 2021 7:46 pm
by AG1702
Ok, nows working. Thanks a lot.

Re: Eclipse unresolved inclusion

Posted: Fri Aug 06, 2021 3:53 pm
by chrswlr@yahoo.com
I still have the same issue with the latest version of eclipse and idf. My project worked but all of a sudden I experience the unresolved inclusion issue. I tried everything suggested, clean project, index refresh all but nothing resolves this. What can I do further?

Re: Eclipse unresolved inclusion

Posted: Sat Aug 07, 2021 7:32 am
by Doubletop
Me too. I've spend days trying to get the IDF working on Windows and Ubuntu I'm sure there are some errors or more correctly ommisions form the information provided in the build and setup guides. However, I've got Eclipse sort of working but have these unresolved inclusion errors. The whole experince doesn't give me great confidence in the build.

Anyway what is the solution to getting these inclusion errors resolved? I can run a build that doesn't error but Eclipse is telling me the includes cant be found.
  1. hello_world
  2. main
  3. hello_world_main.c (4 matches)
  4. Unresolved inclusion: esp_spi_flash.h
  5. Unresolved inclusion: esp_system.h
  6. Unresolved inclusion: freertos/FreeRTOS.h
  7. Unresolved inclusion: freertos/task.h
BTW I've tried setting the library paths, in C/C++ General but how deep down the tree should I be expected to go? (attached)

Pete

Re: Eclipse unresolved inclusion

Posted: Thu Aug 12, 2021 6:46 pm
by mbratch
My eclipse will just suddenly do this out if the blue. Sometimes I need to do a freshen files and/or re-undez multiple times to clear it. Weird.

Re: Eclipse unresolved inclusion

Posted: Sun Aug 22, 2021 4:30 pm
by chrswlr@yahoo.com
I managed to resolve the inclusion issue by removing all the code that created errors. By having a successful compilation and refreshing the index files I then got rid of the inclusion errors. Subsequently i don't get errors if I add new code with errors. It remains a weird issue to me.

Re: Eclipse unresolved inclusion

Posted: Tue Sep 14, 2021 5:35 pm
by chrswlr@yahoo.com
I managed to resolve the inclusion issue by removing all the code that created errors. By having a successful compilation and refreshing the index files I then got rid of the inclusion errors. Subsequently i don't get errors if I add new code with errors. It remains a weird issue to me.

Re: Eclipse unresolved inclusion

Posted: Wed Nov 24, 2021 6:16 pm
by traxonja
It takes time for Eclipse to index all those files. Just leave it running for a couple of minutes and it will fix itself!

Re: Eclipse unresolved inclusion

Posted: Wed Mar 30, 2022 10:59 pm
by mbratch
traxonja wrote:
Wed Nov 24, 2021 6:16 pm
It takes time for Eclipse to index all those files. Just leave it running for a couple of minutes and it will fix itself!
Mine does not fix itself, no matter how long I wait.