Page 1 of 1

And yet again - "Unresolved inclusions" in Eclipse

Posted: Mon Aug 15, 2022 2:33 pm
by freeride01
Hi,
this problem appeared again after a year of not appearing.
I used ESP-IDF 4.2 and 4.0 with no problems. I briefly had the problem then, but I don't remember which of the fixes I applied then solved it.
When I updated to 4.4.1 (cloned with git, then changed the path in Install Tools), the project compiles with no errors, but in the Problems view I get 100s of "Unresolved inclusions" errors.
Needless to say - extremely annoying.
I tried many fixes from the forum with no effect.
Any help?
This is my Environment setup:

Re: And yet again - "Unresolved inclusions" in Eclipse

Posted: Tue Aug 16, 2022 6:14 am
by ESP_kondalkolipaka
Hello,

The preference screenshot you have attached clearly shows that something went wrong while Installing tools after switching to the IDF version.

Could you run the following and share the logs?

1. Please make sure if you have the latest version of the IDF Eclipse plugin (v2.6.0) https://github.com/espressif/idf-eclips ... tag/v2.6.0

2. It's advised to run the Install Tools action from eclipse after switching to IDF version
Espressif > ESP-IDF Tools Manager > Install Tools

Please check the console for errors if any

2. It's advised to run Python clean after switching the IDF version
Right-click on the project > ESP-IDF: Python Clean

3. Now build the project and see if that helps

Please share the error log to check the reported errors
https://github.com/espressif/idf-eclips ... #error-log

Thanks

Re: And yet again - "Unresolved inclusions" in Eclipse

Posted: Wed Aug 17, 2022 2:38 pm
by freeride01
Thanks for the reply.

I'm not using neither the latest version of the plugin, nor of Eclipse. So for now I installed the latest Espressif IDE on a different machine and it seems to work (for now).
I'll go back to this problem when I have more time.

Re: And yet again - "Unresolved inclusions" in Eclipse

Posted: Fri Aug 19, 2022 10:14 am
by gtjoseph
If things go wrong again, try the tips I outlined here...
https://esp32.com/viewtopic.php?f=40&t= ... 230d6bae74

Re: And yet again - "Unresolved inclusions" in Eclipse

Posted: Thu Aug 25, 2022 8:21 am
by freeride01
ESP_kondalkolipaka wrote: Hello,

The preference screenshot you have attached clearly shows that something went wrong while Installing tools after switching to the IDF version.

Could you run the following and share the logs?

1. Please make sure if you have the latest version of the IDF Eclipse plugin (v2.6.0) https://github.com/espressif/idf-eclips ... tag/v2.6.0

2. It's advised to run the Install Tools action from eclipse after switching to IDF version
Espressif > ESP-IDF Tools Manager > Install Tools

Please check the console for errors if any

2. It's advised to run Python clean after switching the IDF version
Right-click on the project > ESP-IDF: Python Clean

3. Now build the project and see if that helps

Please share the error log to check the reported errors
https://github.com/espressif/idf-eclips ... #error-log

Thanks

It happened again, on the brand new installation of Espressif IDE, latest version of plugin and ESP-IDF 4.4.1.
Project builds and runs fine, but I get loads of false errors in 3 source files, if I open them.

- I ran Install Tools after switching the IDF version.
- I ran Python clean on the project.
- I built the project several times.

Here is the log file (right click -> Export Log). I don't see any info in it about "unresolved inclusions" however.

@gtjoseph:

Thanks, but changing all .h files to .hpp really isn't a viable solution to me, because other people work on this project too. Also I have all the latest tools installed (except IDF) on a new machine, and the problem still appearrs.

Re: And yet again - "Unresolved inclusions" in Eclipse

Posted: Thu Aug 25, 2022 11:52 am
by gtjoseph
freeride01 wrote:
Thu Aug 25, 2022 8:21 am
@gtjoseph:

Thanks, but changing all .h files to .hpp really isn't a viable solution to me, because other people work on this project too. Also I have all the latest tools installed (except IDF) on a new machine, and the problem still appearrs.
Try without changing the file names. You may find that one of the steps helps.