| Summary: | Detect and warn people naming functions something_remove_something | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Ross Burton <ross.burton> |
| Component: | bitbake | Assignee: | Chee Yang <chee.yang.lee> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | chee.yang.lee, joshuagloe, mostthingsweb, poky.bs.watcher, poky.watcher, randy.macleod |
| Version: | 2.0 | ||
| Target Milestone: | 3.3 M1 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Ross Burton
2015-12-14 16:08:12 UTC
I'm unable to reproduce this. Maybe it's been fixed? i got error by adding this task to recipe
addtask task_remove_test
do_task_remove_test() {
# prevent blank task
echo ${WORKDIR} >> ${WORKDIR}/test
}
same error for _append_ and _prepend_
Error:
File "/data/4T/poky-master/bitbake/lib/bb/codeparser.py", line 343, in ShellParser.parse_shell(value=None):
> self._parse_shell(value)
self.execs = set(cmd for cmd in self.allexecs if cmd not in self.funcdefs)
File "/data/4T/poky-master/bitbake/lib/bb/codeparser.py", line 354, in ShellParser._parse_shell(value=None):
except Exception:
> bb.error('Error during parse shell code, the last 5 lines are:\n%s' % '\n'.join(value.split('\n')[-5:]))
raise
AttributeError: 'NoneType' object has no attribute 'split'
|