Skip to content
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

Can't get to function definitions with Eclipse with ESP-IDF (IEP-222) #113

Closed
freeride01 opened this issue Aug 21, 2020 · 5 comments
Closed

Comments

@freeride01
Copy link

Hi,
I am using Eclipse with the ESP-IDF plugin. Projects build and run fine, but I can't get to some function definitions, if they are not in a file in /main directory. Ctrl+click on the function gets me at most to the declarations and function prototypes.
For example, in the "bleprph" example project, function nvs_flash_init(). Ctrl+click on it takes me to the declaration in nvs_flash.h, then another Ctrl+click doesn't take me anywhere.
Also when I search in the entire project (Ctrl+H -> File search -> Enclosing project), I can't find the definitions.
I am new to Eclipse and have only used it with the ESP-IDF plugin, so I can't say if this happens with other plugins/frameworks as well.
Any help will be much appreciated.

@github-actions github-actions bot changed the title Can't get to function definitions with Eclipse with ESP-IDF Can't get to function definitions with Eclipse with ESP-IDF (IEP-222) Aug 21, 2020
@kolipakakondal
Copy link
Collaborator

Duplicate of #33

Here is the proposed solution:
#33 (comment)

I hope that helps.

@freeride01
Copy link
Author

freeride01 commented Aug 21, 2020

Thanks for the reply.
I tried the solution and it works in the sense that I can now see the function definitions. However, the C/C++ Indexer takes 3+ minutes to finish and it starts again every time I build or run a project.
Also, when building a project, now I get a lot of "could not be resolved" errors that I didn't get before. It seems that the compiler can't decide where to take the definition from.

@kolipakakondal
Copy link
Collaborator

Thanks @freeride01 for the feedback. I'll take a look at this.

Can you give what kind of functions which are showing errors? Is it core C functions or esp-idf functions?

@freeride01
Copy link
Author

Yeah. Interestingly, the Console view shows no errors in build, but the Problems view shows hundreds of problems and if I try to upload the project, I get a dialog box that says "Errors exist in required projects". In Problems view, when I double-click on a problem, I get this:

scr2

When I Ctrl+click on "handle", I get this window:

scr3

(I've erased the project name for privacy purposes).

@kolipakakondal
Copy link
Collaborator

Closing as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants