Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean default not taken if written after help #124

Open
DonBrus opened this issue Jan 13, 2023 · 0 comments
Open

Boolean default not taken if written after help #124

DonBrus opened this issue Jan 13, 2023 · 0 comments

Comments

@DonBrus
Copy link

DonBrus commented Jan 13, 2023

Hi,

I recently encountered an error when trying to setup a default value for boolean options, whenever I also include a help instruction within the menu.

The following works in setting the default value correctly

menu "General options"
	config Kconf_Options_Foo
		bool "This is the foo option"
		default y
endmenu

working-bool-default

This, in turn, does not work:

menu "General options"
	config Kconf_Options_Foo
		bool "This is the foo option"
                help "This setups foo, which causes baz"
		default y
endmenu

non-working-bool-default

Inverting default and help prevents parsing of KConfig file

menu "General options"
	config Kconf_Options_Foo
		bool "This is the foo option"
                default y
                help "This setups foo, which causes baz"
endmenu

produces

menuconfig.py: error: expected 'endmenu' at end of 'Kconfig'

I'm using the latest pip package (14.1.0).
Is this expected behavior? Am I doing something wrong?

Btw I've seen issue #121 however it's not clear to me whether a takeover is already taking place or not; if so, I'd like to report this issue over to the new repo, if any exist.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant