ESP IDF doesn't work with eclipse on windows 10

johnabel
Posts: 46
Joined: Sun Mar 26, 2017 5:06 pm

ESP IDF doesn't work with eclipse on windows 10

Postby johnabel » Thu Dec 24, 2020 10:50 am

I installed ESP IDF with esp-idf-tools-setup-2.3.exe
In eclipse 2020-12 I installed (Help > Add Software):

CMake Editor 1.14.0
Espressif IDF Plugins for Eclipse 1.2.3.202010091505

from
https://dl.espressif.com/dl/idf-eclipse ... es/latest/

When installing the tools I got some warnings at the end:

WARNING: Git describe was unsuccessul: Command '['git', 'describe']' returned non-zero exit status 128.
Installing Python packages from C:\Users\joan\esp-idf\requirements.txt

Executing C:\Users\joan\AppData\Local\Programs\Python\Python37-32\python.exe C:\Users\joan\esp-idf\tools\idf_tools.py export --format=key-value
fatal: No names found, cannot describe anything.
WARNING: Git describe was unsuccessul: Command '['git', 'describe']' returned non-zero exit status 128.
OPENOCD_SCRIPTS=C:\Users\joan\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\share\openocd\scripts
IDF_CCACHE_ENABLE=1
IDF_PYTHON_ENV_PATH=C:\Users\joan\.espressif\python_env\idf4.2_py3.7_env
PATH=C:\Users\joan\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin;C:\Users\joan\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin;C:\Users\joan\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\Users\joan\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\Users\joan\.espressif\tools\cmake\3.16.4\bin;C:\Users\joan\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin;C:\Users\joan\.espressif\tools\ninja\1.10.0\;C:\Users\joan\.espressif\tools\idf-exe\1.0.1\;C:\Users\joan\.espressif\tools\ccache\3.7\;C:\Users\joan\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64;C:\Users\joan\.espressif\python_env\idf4.2_py3.7_env\Scripts;C:\Users\joan\esp-idf\tools;%PATH%
Configured CDT Build Environment variables. You can check Preferences > C/C++ > Build > Environment
Configured CMake toolchain. You can check Preferences > C/C++ > CMake
Install tools completed.

And if I create a project based on a template it doesn't build:

Building in: C:\Users\joan\eclipse-workspace\test\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Users\joan\esp-idf\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIDF_TARGET=esp32 C:\Users\joan\eclipse-workspace\test
CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file):
file failed to open for reading (No such file or directory):

C:/Users/joan/eclipse-workspace/test/build/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
C:/Users/joan/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
C:/Users/joan/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
C:/Users/joan/esp-idf/tools/cmake/build.cmake:68 (git_describe)
C:/Users/joan/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
C:/Users/joan/esp-idf/tools/cmake/idf.cmake:49 (__build_init)
C:/Users/joan/esp-idf/tools/cmake/project.cmake:7 (include)
CMakeLists.txt:5 (include)


What is wrong?

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ESP IDF doesn't work with eclipse on windows 10

Postby ESP_krzychb » Thu Dec 24, 2020 11:12 am

Hi johnabel,

The latest Eclipse 2020-12 (4.18) is not yet supported by the plugin. It was released just a couple of days back. We will update this in the documentation.

johnabel
Posts: 46
Joined: Sun Mar 26, 2017 5:06 pm

Re: ESP IDF doesn't work with eclipse on windows 10

Postby johnabel » Thu Dec 24, 2020 2:02 pm

Yes, I just swapped to 2020-06 and it works fine with release 4.2

Who is online

Users browsing this forum: No registered users and 352 guests