Skip to content

Commit 3bff250

Browse files
committed
Explicitly exit from build process when there is default IDF component
Resolve platformio#823
1 parent b1b44fe commit 3bff250

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,13 @@ def find_default_component(target_configs):
884884
for config in target_configs:
885885
if "__pio_env" in config:
886886
return config
887-
return ""
887+
sys.stderr.write(
888+
"Error! Failed to find the default IDF component with build information for "
889+
"generic files.\nCheck that the `EXTRA_COMPONENT_DIRS` option is not overridden "
890+
"in your CMakeLists.txt.\nSee an example with an extra component here "
891+
"https://docs.platformio.org/en/latest/frameworks/espidf.html#esp-idf-components\n"
892+
)
893+
env.Exit(1)
888894

889895

890896
def create_version_file():

0 commit comments

Comments
 (0)