Closed HarryHpd closed 4 years ago
OK! I found a work around. I tried again with eclipse 2019-09 and IDF-Eclipse Plugin Beta 3. Now includes are recognized as expected. I leave it for the team to figure out which one of both are causing the issue.
I tried that and can confirm that 19-09 and beta 3 let the warnings disappear.
This pesky issue finds it's way back over and over again, and that is really annoying.
To verify it I have just made fresh installation of the plugin Beta 4 with Eclipse 2019-12 on Windows 10 and Linux Ubuntu 18.04. The issue shows up for me on Windows only. I made the requisite Configuring Launch target.
I believe that https://github.com/espressif/idf-eclipse-plugin/issues/29 and https://github.com/espressif/idf-eclipse-plugin/issues/31 are reported for Windows as well.
Do other of you see the same? Or maybe some of you do not see it on Windows at all (for the latest Beta 4 with Eclipse 2019-12)? Hopefully we can narrow down the scope of troubleshooting.
Can confirm this for windows and 2019-12 and current idf plugin. Is there a way to test it with beta 3? I don't know how to get it. Are there any suggested solutions?
I can conference this for Windows and Eclipse 2019-19 with esp-idf 4. No Problem on Ubuntu in Virtual Box with Same install Procedere. I already made a reinstall. I copied the folder ...\esp-idf\components into the Projektfolder in the Workspace and the probleme is gone. This is not the solution, but it shows that the problem is, that the Indexes dies not find the path to this path. I realy new to Eclipse but i canˋt find a way to tell the indexer the Library path. How can i do this?
Anyone up for the short call(15mins)? We can use the https://zoom.us/ for screen sharing. Let me know the timezone if anyone is interested to join the call.
Yes, i like to Support you, but My Englisch is Not Good. My timezone is gmt+1 Germany Near Stuttgart.
@infoschwab this is so funny because I'm located near stuttgart too. I got it working with vscode. Here I'm pretty shure we're on the right track. It has to do with the indexer not finding the right path. So I expect exactly the same problem you do.
Yes, i do think, there must be a way to tell the indexer the path for the Librarys. I found a lot of tutorials to set the path, but in My Eclipse i dont find the menueentry. There Must be a way to do this but i am Not firm with Eclipse. Perhaps i change to vscode.
I am doing basic tests with both eclipse and vscode at the moment. Both of them doesn't work properly in my opinion. There are still a lot of issues.
I think we cannot see these menus in eclipse because the example projects are cmake projects but I'm not 100% shure about that fact.
I stated in a previous post, that meanwhile I am quite happy with this toolchain.
Yes, there are some annoying flaws, but since I am used to the toolchain and the way how to handle it, the "unresolved inclusion" issue became relatively rare and can mostly be solved by reindexing.
Looking back to my initial problems I would like to say, they were derived form jumping between projects, not understanding how to handle run/Debug configurations etc. or changing between run and Debug configurations. Unfortunately I can still not find a reproducable way to cause the "Unresolved Inclusion" issue.
I am currently suffering more from "Permission Error" but for this issue I found as well a workaround to live with it.
BTW, I live near Mannheim :-)
-----Ursprüngliche Nachricht----- Von: su-Koch notifications@github.com Gesendet: Fre 24 Januar 2020 21:03 An: espressif/idf-eclipse-plugin idf-eclipse-plugin@noreply.github.com CC: HarryHpd hpd_as@scill.org; Author author@noreply.github.com Betreff: Re: [espressif/idf-eclipse-plugin] still unresolved includes using latest idf-eclipse-plugin (IEP-99) (#43)
I am doing basic tests with both eclipse and vscode at the moment. Both of them doesn't work properly in my opinion. There are still a lot of issues.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
That's cool that you guys are from Germany :-) I was in Stuttgart in Oct for EclipseCon2019 and we presented this esp-idf eclipse plugin. Check this https://youtu.be/DqnZy4d03_s . It might be interesting to see an end-to-end flow
For guys, who could help me in understanding the issue, please use my skype name: kondal.kolipaka@gmail.com. I'll be available from CET 10AM to 12PM
@kolipakakondal indeed https://youtu.be/DqnZy4d03_s from EclipseCon2019 attracted me to check the plugin!
Regarding the issue with unresolved includes on Windows, what diagnostic information or configuration details do you need? I would prepare it upfront.
@krzychb Probably a couple of things:
Check these:
@kolipakakondal please see below requested diagnostic information:
/esp-idf/examples/get-started/blink
@kolipakakondal attached is another copy of compile_commands.json
file discussed during our call.
Thanks @krzychb for providing the detailed info and joining the call. It seems to be headers indexing is not happening in Windows OS and I'm able to reproduce the issue. I'll update here once the fix is ready!
@Kondal
as already said I had no "unresolved inclusion issues" in my windows setup for a long time.
But recently, after changing from Run to Debug configuration I got again "unresolved inclusion" for all Includes in component directory.
I saw something like "invalid Build configuration" in console too.
Reindexing and rebuild after clean did not help. After restarting eclipse and disconnecting my WROVER Kit I could build and the issue disappeared.
-----Ursprüngliche Nachricht----- Von: Kondal Kolipaka notifications@github.com Gesendet: Die 28 Januar 2020 06:17 An: espressif/idf-eclipse-plugin idf-eclipse-plugin@noreply.github.com CC: HarryHpd hpd_as@scill.org; Author author@noreply.github.com Betreff: Re: [espressif/idf-eclipse-plugin] still unresolved includes using latest idf-eclipse-plugin (IEP-99) (#43)
Thanks @krzychb for providing the detailed info and joining the call. It seems to be headers indexing is not happening in Windows OS and I'm able to reproduce the issue. I'll update here once the fix is ready!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@kolipakakondal
You migth want to get rid of the "Windows" label since I have the same problem on Ubuntu 18.04 but only a bit more complicated.
On the main page, "main.c", no problem but when I create a new file or import a class. Then I get the unresolvel inclusion issues even if the compiler report 0 errors. There is also that problem with one of my cpp lib that I don't understand.
Here is a link to a screenshot of my Eclipse showing the problem. https://servimg.com/view/20121761/8
My Unbuntu is install on a VMWare virtual machine so if you want I can send it to you. It takes around 15-20 go.
If you want me to create a new issue, tell me. I will do my best. 2 weeks ago I new nothing about all this.
@Arag0to from the screenshot (of your Eclipse showing the problem) it looks like the launch target is not selected. Could you try selecting the target, cleaning and rebuilding the project?
Thank you @krzychb, happy to know it wasn't a big problem. But i still got the cpp library not recognize in the main.c. I would like to know why. Tryed to include
I would also like to understand why the target matter ? From what I understand, the target specifies on which port flashing the Esp32 but it worked and I have 0 port connected on my machine right now.
Hi there I have some same problem about this issue in windows OS
any updates?
Could you guys check this build and provide the feedback. This should fix an issue related to "unresolved inclusion" errors in Windows OS
Here is the zip file to download https://github.com/kolipakakondal/idf-eclipse-plugin-dev/blob/master/com.espressif.idf.update-1.0.0.202002101000.zip
Installation instructions: https://github.com/espressif/idf-eclipse-plugin#installing-idf-plugins-from-local-archive
@kolipakakondal the new build works great!
Thank you for resolving this issue 👍
I can also confirm that the issue seams to be solved. Thanks a lot. Is there a function to flash without building ?
Hi All, IDF Eclipse Plugin v1.0.0-beta5 (Build: 1.0.0.202002120536) is published to the update site. Please get the latest https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/
..Yes, I am working with your fix since some time now and it appears to work as expected.
@Kondal . Thanks for your help.
@Kondal. Unfortunately "unresolved inludes" issue came back today.
I can not give you more details than the fact itself .
I upgraded meanwile to the latest Plugin offered by eclipse update check.
Reindexing does not help. deleting build directory sometimes helps, but the error comes back after a short while.
But I can remember one thing. Last time the problem appeared just after fireing the debugging launch configuration for my wrover kit.
@kolipakakondal
I have just installed plugin. Still I am getting same issue. Eclipse 2019-12 error.log
And when I clean the project I will get the below error : ninja clean ninja: error: loading 'build.ninja': No such file or directory Build complete
I have also tried to download and updating archive. But as I have already installed latest plugin, archive is not installed.
Thanks -Niru
hei niruhegde, did you download esp-idf via git clone or via zip? I had a similar error when downloading zip and dependencies got lost. I was able to solve it executing git clone in windows cmd line.
Hi su-Koch,
I have cloned repo. My esp-idf version is ESP-IDF v4.2-dev-414-g132cc67c0-dirty. I am using Ubuntu 19.10.
Do I need t update tool chain again? All the environmental variables are set.
Thanks -Niru
The problem still remains in Mac OS.
After copying example project "blink", firstly no errors are shown and the build also works without errors.
But after restarting eclipse, the editor shows the errors as in the screenshot of JAICHANGPARK commented 16 days ago.
And while trying to build the project, there happens also a Java-Error:
Errors occurred during the build. Errors running builder 'CDT Core Builder' on project 'test7'. java.lang.NullPointerException
Hi! The same issue. Windows10/Version: 2019-12 (4.14.0)/Build id: 20191212-1212/ Espressif IDF Plugins for Eclipse 1.0.0.202002201116. But 1) The unresolved inclusions are presented only till make build. After successfull build in Run launch Mode all is OK, they dissappers. For both situation building and flashing are OK, board is alive. 2) Meanwhile, after switching into Debug Mode this unresolving issue is present again. Debug Configuration is made using GDB hardware debugging plugin ( C/C++ GDB Hardware Debugging 9.10.0.201911010936 ). If I switch to Run mode, all is OK again... 3) I have tried to use Source Looking Path for the GDB, but without any success....
Updated: 1) Reinstalled IDF-PLUGIN with com.espressif.idf.update-v999-71-g9550085e (bets 5) 2) In RUN launch mode all is OK after building, and again after reloading of project. So, Indexer knows about includes only after build. OK. 3) In Debug Launch mode the including issue is permanent. No ways here to say Indexer about required path to IDF components... "Source" tab in GDB Hardware Debugging configuration cannot to help unfortunatly... or can? So, how I could to fix this issue in Debug mode? Is it possible? Thanks!
If warnings doesn't resolve even after building the code, open terminal in that project and run idf.py fullclean. Somehow clean in eclipse is not cleaning, it builds the code again.
Guys, I have the same annoying issue. I'd marked these options: and got: But it doesn't solve the issue cause I can reach only headers but not sources. Earlier when I was using ESP IDF v3.3 with make build system without use the plugin I just added (linked) needed sources, e.g. IDF parent directory: But this submenu can't be accessible when the plugin is used. Maybe did someone find any solution? Or is the only way to use my projects as CDT general ones without the Espressif plugin?
Hi @Just-Eugene - Paths and Symbols got removed with the latest Eclipse CDT.
You can follow the below instructions to link esp-idf to the project so that function definitions will be linked. https://github.com/espressif/idf-eclipse-plugin/issues/33#issuecomment-558574707
I hope that helps.
Hi @Just-Eugene - Paths and Symbols got removed with the latest Eclipse CDT.
You can follow the below instructions to link esp-idf to the project so that function definitions will be linked. #33 (comment)
I hope that helps.
Thank you!
I had this problem as well with fresh install Eclipse 2020-06 (4.16..0) and ESP_IDF Eclipse Plugin 1.1.1, after creating a new ESP_IDF project with the default template.
Resolved after Project > Build Project
There were also symbol errors in the editor, such as "NULL". Resolved this by:
Project > Properties > C++ General > C++ Indexer Check the option Enable project-specific settings Check the option Index source file not included in the build
I just added the set(INCLUDE_DIRS ".") in the CMakeList.txt and the warnings are disappeared
after building and flashing successfully the blink template I see still unresolved inclusions in my source file. eclipse project has been created via https://github.com/espressif/idf-eclipse-plugin#create-a-new-project-using-esp-idf-templates
I use "latest" espressif plugin (see attached file)
I expect inclusions to be resolved after building for target
Environment Information: eclipse info.log
ESP-IDF Tools Information: Executing C:\Users\hpd\AppData\Local\Programs\Python\Python37\python.exe C:\Users\hpd\Documents\HPDPool\Privat\HpdDev2020\ESP32\ESPV4\tools\idf_tools.py list