Skip to content

Commit 3602dda

Browse files
committed
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 <[email protected]>
1 parent de25178 commit 3602dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CI/build/arduino-cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
# error or fatal error
9292
fork_pattern = re.compile(r"^Error during build: fork/exec")
93-
error_pattern = re.compile(r":\d+:\d+:\s.*error:\s|^Error:")
93+
error_pattern = re.compile(r":\d+:\d*:?\s.*error:\s|^Error:")
9494
ld_pattern = re.compile("arm-none-eabi/bin/ld:")
9595
overflow_pattern = re.compile(
9696
r"(will not fit in |section .+ is not within )?region( .+ overflowed by [\d]+ bytes)?"

0 commit comments

Comments
 (0)