esp-idf/tools/test_idf_py
Ivan Grokhotkov c521fcb6fd
fix(cmake): report correct error on unknown component name
Previously the error message was

CMake Error at /home/user/esp-idf/tools/cmake/build.cmake:296 (__component_get_property):
  __component_get_property Function invoked with incorrect arguments for
  function named: __component_get_property
Call Stack (most recent call first):
  /home/user/esp-idf/tools/cmake/build.cmake:341 (__build_resolve_and_add_req)
  /home/user/esp-idf/tools/cmake/build.cmake:638 (__build_expand_requirements)
  /home/user/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
  CMakeLists.txt:6 (project)

Now it will be:

CMake Error at /home/user/esp-idf/tools/cmake/build.cmake:298 (message):
  Failed to resolve component 'whatever' required by component 'main'.
Call Stack (most recent call first):
  /home/user/esp-idf/tools/cmake/build.cmake:345 (__build_resolve_and_add_req)
  /home/user/esp-idf/tools/cmake/build.cmake:642 (__build_expand_requirements)
  /home/user/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
  CMakeLists.txt:6 (project)

Also improved the hint to show the component name in quotes.
2024-08-12 17:54:44 +02:00
..
extra_path idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
file_args_expansion_inputs feat(tools): idf.py adding arguments from file via @filename.txt 2023-07-25 10:29:09 +02:00
test_idf_extensions/test_ext idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
error_output.yml fix(cmake): report correct error on unknown component name 2024-08-12 17:54:44 +02:00
idf_ext.py idf.py: Change copyright in tools dir 2022-05-24 14:01:50 +02:00
idf_py_help_schema.json Tools: Export selected target actions 2022-07-19 20:02:55 +02:00
pytest.ini fix(ci): Remove unittest-xml-reporting dependency from host tests 2023-11-30 14:03:41 +01:00
test_hints.py fix: harden input parsing in component_requirements hint module 2024-01-23 18:22:08 +01:00
test_idf_py.py fix: Generate secure keys in project dir instead of build dir 2024-06-28 12:36:49 +02:00
test_idf_qemu.py feat(tools): add 'idf.py qemu' extension 2023-12-03 07:45:19 +01:00