ESP-IDF eclipse plugin projects management question
Posted: Sun Feb 02, 2020 2:12 pm
Hello guys, nice to be here.
i recently decided to give a try to the new esp eclipse plugin and CMake, due to some issues i had with the old GNU Make build system.
I have my codebase on github and i usually work on different workstations: since i prefer not to store eclipse project files on my repos, i found very convenient the new system, which greatly reduces the pain to manually set up the project from scratch each time i move to a different pc.
Unfortunately though, i haven't yet figured out which is the correct way to create a esp-idf project when i already have all the source files in a folder.
For example, if i start with a new ESP-IDF project setting the work directory equal to my project's folder (cloned from my remote repo), i get the main.c, README.md, CMakeLists.txt files overwritten with "hello world!" sample project's ones (even though i didn't select any in the "templates projects" window)
If i instead select Import -> Existing IDF project, i obtain a fully working project which correctly builds (whitout any file being overwritten), but it is automatically copied into eclipse's workspace directory. This allows me to work on it, but if i have other projects referring to components inside the one i'm working on (with the link pointing to the original folder), they won't see the updates on the sources.
TLDR: Is there a correct way to create a eclipse ESP-IDF project inside a folder which already contains source files?
BTW, i work on Ubuntu with eclipse 2019-12.
Thanks,
Davide
i recently decided to give a try to the new esp eclipse plugin and CMake, due to some issues i had with the old GNU Make build system.
I have my codebase on github and i usually work on different workstations: since i prefer not to store eclipse project files on my repos, i found very convenient the new system, which greatly reduces the pain to manually set up the project from scratch each time i move to a different pc.
Unfortunately though, i haven't yet figured out which is the correct way to create a esp-idf project when i already have all the source files in a folder.
For example, if i start with a new ESP-IDF project setting the work directory equal to my project's folder (cloned from my remote repo), i get the main.c, README.md, CMakeLists.txt files overwritten with "hello world!" sample project's ones (even though i didn't select any in the "templates projects" window)
If i instead select Import -> Existing IDF project, i obtain a fully working project which correctly builds (whitout any file being overwritten), but it is automatically copied into eclipse's workspace directory. This allows me to work on it, but if i have other projects referring to components inside the one i'm working on (with the link pointing to the original folder), they won't see the updates on the sources.
TLDR: Is there a correct way to create a eclipse ESP-IDF project inside a folder which already contains source files?
BTW, i work on Ubuntu with eclipse 2019-12.
Thanks,
Davide