And yet again - "Unresolved inclusions" in Eclipse

freeride01
Posts: 16
Joined: Wed May 05, 2021 11:00 am

And yet again - "Unresolved inclusions" in Eclipse

Postby freeride01 » Mon Aug 15, 2022 2:33 pm

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:
Attachments
envir.PNG
envir.PNG (72.49 KiB) Viewed 5185 times

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

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

Postby ESP_kondalkolipaka » Tue Aug 16, 2022 6:14 am

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

freeride01
Posts: 16
Joined: Wed May 05, 2021 11:00 am

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

Postby freeride01 » Wed Aug 17, 2022 2:38 pm

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.

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

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

Postby gtjoseph » Fri Aug 19, 2022 10:14 am

If things go wrong again, try the tips I outlined here...
https://esp32.com/viewtopic.php?f=40&t= ... 230d6bae74

freeride01
Posts: 16
Joined: Wed May 05, 2021 11:00 am

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

Postby freeride01 » Thu Aug 25, 2022 8:21 am

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.
Attachments
new_log.log
(903 Bytes) Downloaded 439 times

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

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

Postby gtjoseph » Thu Aug 25, 2022 11:52 am

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.

Who is online

Users browsing this forum: No registered users and 19 guests