Closed pfalcon closed 6 years ago
Yeah, that's a pretty bad error message. Fixed in https://github.com/ulfalizer/Kconfiglib/commit/c91e17c3f0b5410328b2d51c70224804e8b133cc.
I could push a new version to Zephyr as well.
Thanks!
I could push a new version to Zephyr as well.
Yes, that would be appreciated.
This report comes from Zephyr, with version of kconfiglib used there (Zephyr master e1e12ba0c6eeb41bea72ea242195306a69b8b013).
So, I was moving around/adding more "if" directives, and so happens that I added "endif", but (turned out) that missed to add corresponding "if". What I got is rather confusing error message:
As you may imagine, first motion is "huh, maybe it doesn't support comments on the same line after endif?". Grepping around Zephyr codebase shows they're used, and removing the comment still leads to the same
couldn't parse 'endif': unrecognized construct
error. That's pretty confusing if a standard keyword is "unrecognized". Would be nice if it reported "endif without corresponding if" of something.