Eclipse code jump to esp-idf function definitions?

mhexrobot
Posts: 2
Joined: Tue May 23, 2017 11:40 pm

Eclipse code jump to esp-idf function definitions?

Postby mhexrobot » Wed May 24, 2017 12:22 am

Hello

I have followed instructions (esp-idf.readthedocs.io/en/latest/get-started/eclipse-setup.html) to get Eclipse to import Makefile projects and I have had no problems building or flashing.

It is a feature of most modern IDEs to be able to jump to, or otherwise locate the definitions of functions from their calling point. For example I know that vTaskDelay(xx) that is called in the hello_world example is defined in /esp-idf/components/freertos/tasks.c, but how can I get Eclipse to figure this out?

Details:
Ubuntu via VirtualBox on Windows 10
ESP-IDF latest version (as of 23 May 2017 - not sure how to check exact version)
Eclipse 3.8.1/Luna

Thank you
m

mhexrobot
Posts: 2
Joined: Tue May 23, 2017 11:40 pm

Re: Eclipse code jump to esp-idf function definitions?

Postby mhexrobot » Thu May 25, 2017 1:50 am

Ok after a bit of fiddling around I have found a solution that sort-of works:
  • Right click project, select "Properties"
  • Go to "C/C++ General" > "Paths and Symbols"
  • Select "Source location" tab
  • Click "Link Folder"
  • Select your /esp-idf/components/ folder
  • Select yes to rebuild index or right click project and select "Index" > "Rebuild"
Now I can CTRL+click or press F2 to jump to a function definition. But now it wont jump between declaration and definition like it does for source/header files in the project folder. I have not yet found a way to fix this...

johnny70
Posts: 3
Joined: Fri Feb 28, 2020 1:13 pm

Re: Eclipse code jump to esp-idf function definitions?

Postby johnny70 » Fri Feb 28, 2020 1:18 pm

Hi,

Do you happen to have a solution for the most recent eclipse + idf combination too? The "Paths and Symbols" option is not present anymore in the project properties... :(

Greetings,

mcqtom
Posts: 3
Joined: Thu Jul 09, 2020 1:00 pm

Re: Eclipse code jump to esp-idf function definitions?

Postby mcqtom » Thu Jul 09, 2020 1:04 pm

+1 would like to know how to do this with esp eclipse plugin and idf 4

Who is online

Users browsing this forum: Google [Bot] and 113 guests