zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
11.01k stars 6.7k forks source link

Shell: Autocomplete: Line wrapping does not seem to work #81665

Open koffes opened 1 week ago

koffes commented 1 week ago

Describe the bug This relates to a fix: https://github.com/zephyrproject-rtos/zephyr/pull/78130/ With this in place, there will no longer be a hard-fault on divide by zero if the string length is longer than CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH

However, now, there will be an assert.

To Reproduce Try to autocomplete with a path which is longer than CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH

Expected behavior The line should wrap in the terminal.

Impact This will trigger an assert in https://github.com/zephyrproject-rtos/zephyr/blob/c14b022beab8097ed7b79daed02dbf899fc8a490/subsys/shell/shell.c#L144

JarmouniA commented 1 week ago

Please use bug issue template https://github.com/zephyrproject-rtos/zephyr/blob/main/.github/ISSUE_TEMPLATE/001_bug_report.md