Kconfiglib icon indicating copy to clipboard operation
Kconfiglib copied to clipboard

menuconfig: Avoid crashing when leaving a menu not shown in parent

Open leandrolanzieri opened this issue 5 years ago • 2 comments

This adds a catch to an exception that might occur when leaving a menu which is not shown by the parent menu. For an example of this refer to issue #93.

For the snippet given in #93 this ends up showing the top menu. I'm not sure if this is the expected behaviour (after all, the second definition of the choice is defined in the top menu), or 'Sub' menu should be shown. At least this seems to avoid the crash.

leandrolanzieri avatar May 22 '20 12:05 leandrolanzieri

Rather unfortunately, it appears the original author of Kconfiglib disappeared. The Zephyr project has been granted ownership of the PyPI package via PEP-541 request, and I'm going to do a release based on a new repository in the zephyrproject-rtos organization here: https://github.com/zephyrproject-rtos/Kconfiglib

:arrow_right: Action required: @leandrolanzieri Are you able to re-open your pull request on the new repository?

jackrosenthal avatar Aug 14 '24 17:08 jackrosenthal

@jackrosenthal see https://github.com/zephyrproject-rtos/Kconfiglib/pull/4

leandrolanzieri avatar Aug 26 '24 10:08 leandrolanzieri