-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse can't find includes for c++ file #2056
Comments
If I change the build output parser regex to |
Hi @jeremyherbert , I think you're right that the Build Output Parser regex is wrong. The one you're now using will only match I think a simpler regex which should work in all cases is EDIT: made the regex a little more specific |
Yep, that regex works. See pull request. |
Hi @jeremyherbert, Sorry, your PR appeared at the same time I'd independently verified the fix so we ended up doing our own patch for this. Thanks for reporting it! Angus |
no worries, glad to see it fixed |
Previously only C files had build output correctly parsed. Closes espressif/esp-idf#2056 May also relate to: espressif/esp-idf#529 espressif/esp-idf#17
Environment
IDF version: 7aa7b35
Development Env: Eclipse
Operating System: Xubuntu 18.04
Eclipse version: Oxygen.3a Release (4.7.3a)
Problem Description
If I open the "hello_world" example in eclipse, everything works correctly after setting up as per the documentation. If I then rename the
hello_world_main.c
file tohello_world_main.cpp
and add the following code in:the build will still succeed, but eclipse will no longer be able to resolve the include directories at the top of the file. For example,
#include "freertos/FreeRTOS.h"
has the orange squiggle underline.Expected Behavior
Eclipse should resolve the include paths for both C and C++
Actual Behavior
It only works for C.
Debug Logs
Eclipse indexer log for C++:
Eclipse indexer log for C:
The text was updated successfully, but these errors were encountered: