Comments (39)
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
from idf-eclipse-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.
#33 (comment)
I hope that helps.
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
I tried that and can confirm that 19-09 and beta 3 let the warnings disappear.
from idf-eclipse-plugin.
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 #29 and #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.
from idf-eclipse-plugin.
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?
from idf-eclipse-plugin.
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?
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
Yes, i like to Support you, but My Englisch is Not Good. My timezone is gmt+1 Germany Near Stuttgart.
from idf-eclipse-plugin.
@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.
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
from idf-eclipse-plugin.
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: [email protected]. I'll be available from CET 10AM to 12PM
from idf-eclipse-plugin.
@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.
from idf-eclipse-plugin.
@krzychb Probably a couple of things:
- If possible provide sample project which was already built and having errors
- Provide the CDT Build log: Preferences > Build > Logging
- Provide error log https://github.com/espressif/idf-eclipse-plugin#error-log
- Eclipse installation details https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-130.htm
- Comile_commands.json file from the project build directory
Check these:
- CDT Build Console - are you seeing any error during the build?
- Project > C/C++ Index > Rebuild - Does it help?
- Have you selected the esp launch target before the build?
- Preferences > C/C++ > Indexer - Check "Index source and header files opened in the editor"
from idf-eclipse-plugin.
@kolipakakondal please see below requested diagnostic information:
Logs
- I did the tests using
/esp-idf/examples/get-started/blink
- global-build.log
- error-log.txt
- installation-details.zip (I made screenshots but some windows do not fit the screen to provide all the details. Is there a better way export this information instead of making several screenshots?)
- compile_commands.zip
Checked
- CDT Build Console - no build errors
- Index Rebuild - Indexed 'blink' (9 sources, 35 headers) in 0.42 sec: 168 declarations; 2,354 references; 3 unresolved inclusions; 10 syntax errors; 33 unresolved names (1.3%)
- ESP launch target selected
- Checked. Project cleaned and rebuild. Still see unresolved inclusions:
from idf-eclipse-plugin.
@kolipakakondal attached is another copy of compile_commands.json
file discussed during our call.
from idf-eclipse-plugin.
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!
from idf-eclipse-plugin.
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
@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?
from idf-eclipse-plugin.
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 with the same problem, If you know the answer please tell me but I don't think this problem belongs to this issue.
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.
from idf-eclipse-plugin.
Hi there
I have some same problem about this issue in windows OS
any updates?
from idf-eclipse-plugin.
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
from idf-eclipse-plugin.
@kolipakakondal the new build works great!
Thank you for resolving this issue 👍
from idf-eclipse-plugin.
I can also confirm that the issue seams to be solved. Thanks a lot. Is there a function to flash without building ?
from idf-eclipse-plugin.
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/
from idf-eclipse-plugin.
from idf-eclipse-plugin.
from idf-eclipse-plugin.
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
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
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
from idf-eclipse-plugin.
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
from idf-eclipse-plugin.
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
- 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.
- 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...
- I have tried to use Source Looking Path for the GDB, but without any success....
Updated:
- Reinstalled IDF-PLUGIN with com.espressif.idf.update-v999-71-g9550085e (bets 5)
- In RUN launch mode all is OK after building, and again after reloading of project. So, Indexer knows about includes only after build. OK.
- 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!
from idf-eclipse-plugin.
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.
from idf-eclipse-plugin.
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?
from idf-eclipse-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.
#33 (comment)I hope that helps.
Thank you!
from idf-eclipse-plugin.
I just added the set(INCLUDE_DIRS ".") in the CMakeList.txt and the warnings are disappeared
from idf-eclipse-plugin.
Related Issues (20)
- Not able to see data in teraterm (IEP-1191)
- Unresolved inclusion. unless it was included in "app_main.c". (IEP-1206)
- Drop python in favor of out-of-the-box available java (IEP-1235) HOT 1
- Move 'ESP-IDF: ****' context menu items into 'ESP-IDF' SUBMENU instead of putting them on top level (IEP-1236) HOT 4
- Remove internet shortcut icon out of the status bar (IEP-1237) HOT 1
- com.espressif.idf.core.idfNature resource key must have matching localized string value (IEP-1238)
- Invalid (tools and dist) installation path: '${USER_HOME}/.espressif/...' instead of user-provided directory (IEP-1239) HOT 2
- Invalid 'Espressif IDF Project' project configuration (IEP-1240) HOT 1
- Eclipse muzz never stuck building espressif plugin project (IEP-1241) HOT 1
- Invalid error message "ninja failed with exit code 1, output of the command is in the ..." (IEP-1242)
- Invalid С/С++ project structure concept: using separate source files accompanied with headers(*.h) included in main *.c file muzz be possible (IEP-1243) HOT 2
- Invalid error message "Configuring incomplete, errors occurred!\nSee also..." (IEP-1244)
- Multi-Target Build ad sdkconfig editor (IEP-1250)
- sdkconfig.default is crashed by sdkconfig editor (IEP-1251)
- Wrong file perspective on ESP projects. (IEP-1256) HOT 7
- Espressif-IDE v3.0.0 error in help autocomplete
- ESP-IDF plugin C indexing destroyed by last Eclipse 2024-06 (4.32.0) update (IEP-1259)
- Disable inlay hints (in .clangd project config) by default (IEP-1260)
- Bullshitty error message about format specifier (IEP-1261)
- Espressi-IDE 3.0.0 doesn't highlight inactive code (IEP-1263) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idf-eclipse-plugin.