Pressing enter in the summary isn't recommended. If a recipe has invalid syntax, i.e.: """ S = "${WORKDIR}" TODO make machine-specific and re-use rootless_x to either run as root, or add xuser to weston-launch group? """ Then bitbake doesn't handle this as you'd expect: $ bitbake core-image-wayland ERROR: Command execution failed: Traceback (most recent call last): File "/home/ross/Yocto/poky/bitbake/lib/bb/command.py", line 92, in runAsyncCommand self.cooker.updateCache() File "/home/ross/Yocto/poky/bitbake/lib/bb/cooker.py", line 1330, in updateCache if not self.parser.parse_next(): File "/home/ross/Yocto/poky/bitbake/lib/bb/cooker.py", line 1703, in parse_next self.virtuals += len(result) TypeError: object of type 'ParseError' has no len() There is a except bb.parse.ParseError, but in this case the error isn't being raised, but being returned in the result. Annoyingly this means you can't extract a stack from the exception.
Introduced by 325410e2b20920a9903d0cafcb992b3452dcdb15.
Just got this: ERROR: Command execution failed: Traceback (most recent call last): File "/home/ross/Yocto/poky/bitbake/lib/bb/command.py", line 92, in runAsyncCommand self.cooker.updateCache() File "/home/ross/Yocto/poky/bitbake/lib/bb/cooker.py", line 1330, in updateCache if not self.parser.parse_next(): File "/home/ross/Yocto/poky/bitbake/lib/bb/cooker.py", line 1703, in parse_next self.virtuals += len(result) TypeError: object of type 'ExpansionError' has no len()". Reverting 325410e2b20920a9903d0cafcb992b3452dcdb15 gives me: ERROR: ExpansionError during parsing /home/ross/Yocto/poky/meta/recipes-graphics/wayland/weston-init.bb: Failure expanding variable do_install: ShellSyntaxError: LexToken(Fi,'fi',0,0) followed by: LexToken(NEWLINE,'\n',0,0)
Patch submitted to bitbake-devel.