espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
432 stars 145 forks source link

IDF 4.4 compatibility problem (MEGH-4130) #215

Closed eos1d3 closed 1 year ago

eos1d3 commented 1 year ago

With latest ESP IDF 4.4, any IDF commands: set-target, build, menuconfig, will cause error. Examples used are switch and led_light.

4 problems were found in the manifest file /Users/user1/esp/esp-rainmaker/components/esp_rainmaker/idf_component.yml:
Invalid manifest format
Invalid dependency format
Dependency version spec format is invalid
Unknown keys in dependency details: rules
CMake Error at /Users/user1/esp/esp-idf/tools/cmake/build.cmake:452 (message):
Call Stack (most recent call first):
  /Users/user1/esp/esp-idf/tools/cmake/project.cmake:384 (idf_build_process)
  CMakeLists.txt:16 (project)

-- Configuring incomplete, errors occurred!
shahpiyushv commented 1 year ago

@eos1d3 , can you upgrade your idf component manager using pip install --upgrade idf-component-manager and retry?

eos1d3 commented 1 year ago

Hi, just tested with the above command, it fixes the problem now. Why is the command needed as other IDF versions do not need it?

shahpiyushv commented 1 year ago

@eos1d3 ESP IDF versions before v4.4 do not use component manager by default and hence, the manifest file gets ignored. idf v5.0 already has the latest component manager python package and so, that too works fine. v4.4 had some changes that caused these failures and they were eventually fixed after the release, hence the issues and the requirement if manually updating it.

eos1d3 commented 1 year ago

Thanks for your help!