From 9787b1c49868182d97f834be16ff849f0b6a0916 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 14 Feb 2022 11:22:41 +0100 Subject: [PATCH] fix(cli): optional column number in error pattern If error comes from the full line of code column number is not available. Ex: system/STM32H7xx/system_stm32h7xx.c:68: error: unterminated #if 68 | #if defined(DUAL_CORE) && defined(CORE_CM4) | Signed-off-by: Frederic Pillon --- CI/build/arduino-cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CI/build/arduino-cli.py b/CI/build/arduino-cli.py index 5843fad6dd..def16458ae 100644 --- a/CI/build/arduino-cli.py +++ b/CI/build/arduino-cli.py @@ -90,7 +90,7 @@ # error or fatal error fork_pattern = re.compile(r"^Error during build: fork/exec") -error_pattern = re.compile(r":\d+:\d+:\s.*error:\s|^Error:") +error_pattern = re.compile(r":\d+:\d*:?\s.*error:\s|^Error:") ld_pattern = re.compile("arm-none-eabi/bin/ld:") overflow_pattern = re.compile( r"(will not fit in |section .+ is not within )?region( .+ overflowed by [\d]+ bytes)?"