Closed carrliitos closed 14 hours ago
@carrliitos This is an ESP-IDF TAG v4.4 environment installation issue, like https://github.com/espressif/esp-idf/issues/9837
Please run git checkout release/v4.4
to choose the latest v4.4 branch instead of the history tag v4.4
, for the difference please refer https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/versions.html
Thank you -- that worked. Closing this ticket now.
Describe the bug When running the
idf_tools.py
script to install ESP-IDF tools via./install.sh
command, the installation fails with aKeyError
on theidfSelectedId
key inidf_env_json
. This error occurs because theidf_env_json
configuration dictionary does not contain the expectedidfSelectedId
key. The script attempts to retrieve this key in theget_user_defined_targets
function but encounters an issue when it is absent, resulting in a crash.Version (please complete the following information):
To Reproduce Steps to reproduce the behavior:
v4.4
and update submodules by running:install.sh
file.KeyError
onidfSelectedId
.Expected behavior The script should either handle the missing
idfSelectedId
key gracefully or ensure that theidf_env_json
configuration includes it by default.Actual Behavior The script crashes due to a
KeyError
for theidfSelectedId
key, halting the tool installation process.Logs Below is the actual error message: