[TIMOB-10473] Tooling: apidoc validate.py gets in endless loop when two files can't be parsed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-16T15:44:39.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Sprint 2012-17 Core, Release 3.0.0 |
Components | Tooling |
Labels | core |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2012-08-16T13:00:36.000+0000 |
Updated | 2012-12-04T23:17:57.000+0000 |
Description
If TextField.yml and TextArea.yml are malformed and cannot be parsed by the YAML parsing engine, validate.py goes nuts. It could be that other file combinations can make this happen, but we noticed it with TextField.yml and TextArea.yml, so we'll stick with those two for these testing notes.
Testing Notes
* Edit both apidoc/Titanium/UI/TextField.yml and apidoc/Titanium/UI/TextArea.yml. * Break them both on purpose by putting a space in front of their name:
keys on line 2.
* Save them.
* Run python apidoc/validate.py
. In the fail case, you'll see runtime error stack traces and then a ton of warnings,... forever. When testing the fix, validate.py should simply stop with an error.
PR ready: https://github.com/appcelerator/titanium_mobile/pull/2768
Tested with 3.0.0.v20121130200208