From b1b25ad7df50ec9b12935bb7a363a9cf271c56c7 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 5 Dec 2022 10:44:10 +0800 Subject: [PATCH] hints: add a more complete description for component not found errors --- tools/idf_py_actions/hints.yml | 2 +- tools/test_idf_py/error_output.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/idf_py_actions/hints.yml b/tools/idf_py_actions/hints.yml index 3448da1747..802c356203 100644 --- a/tools/idf_py_actions/hints.yml +++ b/tools/idf_py_actions/hints.yml @@ -224,7 +224,7 @@ - re: "Failed to resolve component '(?!esp_ipc)(\\w+)'" - hint: "The component {} has been moved to the IDF component manager or has been removed and refactored into some other component.\nPlease look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.\nRefer to the migration guide for more details." + hint: "The component {} could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager or has been removed and refactored into some other component.\nPlease look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.\nRefer to the migration guide for more details about moved components.\nRefer to the build-system guide for more details about how components are found and included in the build." match_to_output: True - diff --git a/tools/test_idf_py/error_output.yml b/tools/test_idf_py/error_output.yml index 0bc84a2a2b..9af7fc0232 100644 --- a/tools/test_idf_py/error_output.yml +++ b/tools/test_idf_py/error_output.yml @@ -50,7 +50,7 @@ 'HINT: The header file task_snapshot.h is no longer included as part of freertos/task.h. Users need to include freertos/task_snapshot.h explicitly.' "Failed to resolve component 'component'\n": - "HINT: The component component has been moved to the IDF component manager or has been removed and refactored into some other component.\nPlease look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.\nRefer to the migration guide for more details." + "HINT: The component component could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager or has been removed and refactored into some other component.\nPlease look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.\nRefer to the migration guide for more details about moved components.\nRefer to the build-system guide for more details about how components are found and included in the build." 'fatal error: tmp/atca_mbedtls_wrap.h: No such file or directory\n': "HINT: To use CONFIG_ESP_TLS_USE_SECURE_ELEMENT option, please install `esp-cryptoauthlib` using 'idf.py add-dependency espressif/esp-cryptoauthlib'"