Skip to content

Commit 237298e

Browse files
committed
Show warning when check_requirements() fail to install modules (during compile, export and test)
1 parent f324171 commit 237298e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mbed/mbed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ def compile_(toolchain=None, target=None, options=False, compile_library=False,
19941994
args = remainder
19951995
# Find the root of the program
19961996
program = Program(os.getcwd(), True)
1997-
program.check_requirements()
1997+
program.check_requirements(True)
19981998
# Remember the original path. this is needed for compiling only the libraries and tests for the current folder.
19991999
orig_path = os.getcwd()
20002000

@@ -2084,7 +2084,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
20842084
args = remainder
20852085
# Find the root of the program
20862086
program = Program(os.getcwd(), True)
2087-
program.check_requirements()
2087+
program.check_requirements(True)
20882088
# Save original working directory
20892089
orig_path = os.getcwd()
20902090

@@ -2170,7 +2170,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
21702170
args = remainder
21712171
# Find the root of the program
21722172
program = Program(os.getcwd(), True)
2173-
program.check_requirements()
2173+
program.check_requirements(True)
21742174
# Remember the original path. this is needed for compiling only the libraries and tests for the current folder.
21752175
orig_path = os.getcwd()
21762176
# Change directories to the program root to use mbed OS tools
@@ -2214,7 +2214,7 @@ def detect():
22142214
args = remainder
22152215
# Find the root of the program
22162216
program = Program(os.getcwd(), True)
2217-
program.check_requirements()
2217+
program.check_requirements(True)
22182218
# Change directories to the program root to use mbed OS tools
22192219
with cd(program.path):
22202220
tools_dir = program.get_tools()

0 commit comments

Comments
 (0)