You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running the idf_tools.py script to install ESP-IDF tools via ./install.sh command, the installation fails with a KeyError on the idfSelectedId key in idf_env_json. This error occurs because the idf_env_json configuration dictionary does not contain the expected idfSelectedId key. The script attempts to retrieve this key in the get_user_defined_targets function but encounters an issue when it is absent, resulting in a crash.
Version (please complete the following information):
Observe the traceback error indicating a KeyError on idfSelectedId.
Expected behavior
The script should either handle the missing idfSelectedId key gracefully or ensure that the idf_env_json configuration includes it by default.
Actual Behavior
The script crashes due to a KeyError for the idfSelectedId key, halting the tool installation process.
Logs
Below is the actual error message:
Detecting the Python interpreter
Checking "python" ...
Python 3.10.12
"python" has been detected
Installing ESP-IDF tools
Traceback (most recent call last):
File "/home/proj/esp/esp-idf/tools/idf_tools.py", line 1828, in <module>
main(sys.argv[1:])
File "/home/proj/esp/esp-idf/tools/idf_tools.py", line 1824, in main
action_func(args)
File "/home/proj/esp/esp-idf/tools/idf_tools.py", line 1420, in action_install
targets = clean_targets(args.targets)
File "/home/proj/esp/esp-idf/tools/idf_tools.py", line 1083, in clean_targets
export_targets_to_idf_env_json(targets_from_tools_json)
File "/home/proj/esp/esp-idf/tools/idf_tools.py", line 1051, in export_targets_to_idf_env_json
targets = list(set(targets + get_user_defined_targets()))
File "/home/proj/esp/esp-idf/tools/idf_tools.py", line 1097, in get_user_defined_targets
if env == idf_env_json['idfSelectedId']:
KeyError: 'idfSelectedId'
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: