Eclipse unresolved inclusion

AG1702
Posts: 11
Joined: Mon Feb 01, 2021 7:07 pm

Eclipse unresolved inclusion

Postby AG1702 » Tue Mar 02, 2021 7:29 pm

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?
Attachments
Sin título.jpg
Sin título.jpg (300.84 KiB) Viewed 21889 times

User avatar
WardMas
Posts: 75
Joined: Fri Jun 19, 2020 9:09 am

Re: Eclipse unresolved inclusion

Postby WardMas » Wed Mar 03, 2021 4:58 am

Hi,
After being able to build your project on Eclipse without any error, right click on your project then apply Index > Freshen All Files.
Last edited by WardMas on Fri Aug 13, 2021 10:56 am, edited 1 time in total.
You can always visit my YouTube channel for embedded systems related tutorials
https://youtube.com/user/wardzx1

AG1702
Posts: 11
Joined: Mon Feb 01, 2021 7:07 pm

Re: Eclipse unresolved inclusion

Postby AG1702 » Wed Mar 03, 2021 7:46 pm

Ok, nows working. Thanks a lot.

chrswlr@yahoo.com
Posts: 3
Joined: Fri Aug 06, 2021 10:42 am

Re: Eclipse unresolved inclusion

Postby chrswlr@yahoo.com » Fri Aug 06, 2021 3:53 pm

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?

Doubletop
Posts: 1
Joined: Sat Aug 07, 2021 7:19 am

Re: Eclipse unresolved inclusion

Postby Doubletop » Sat Aug 07, 2021 7:32 am

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
Attachments
Capture.JPG
Capture.JPG (81.74 KiB) Viewed 21133 times

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: Eclipse unresolved inclusion

Postby mbratch » Thu Aug 12, 2021 6:46 pm

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.

chrswlr@yahoo.com
Posts: 3
Joined: Fri Aug 06, 2021 10:42 am

Re: Eclipse unresolved inclusion

Postby chrswlr@yahoo.com » Sun Aug 22, 2021 4:30 pm

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.

chrswlr@yahoo.com
Posts: 3
Joined: Fri Aug 06, 2021 10:42 am

Re: Eclipse unresolved inclusion

Postby chrswlr@yahoo.com » Tue Sep 14, 2021 5:35 pm

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.

traxonja
Posts: 2
Joined: Wed Nov 24, 2021 6:14 pm

Re: Eclipse unresolved inclusion

Postby traxonja » 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!

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: Eclipse unresolved inclusion

Postby mbratch » Wed Mar 30, 2022 10:59 pm

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.

Who is online

Users browsing this forum: Bing [Bot] and 120 guests