Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10473] Tooling: apidoc validate.py gets in endless loop when two files can't be parsed

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-08-16T15:44:39.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sSprint 2012-17 Core, Release 3.0.0
ComponentsTooling
Labelscore
ReporterBill Dawson
AssigneeBill Dawson
Created2012-08-16T13:00:36.000+0000
Updated2012-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.

Comments

  1. Bill Dawson 2012-08-16

    PR ready: https://github.com/appcelerator/titanium_mobile/pull/2768
  2. Natalie Huynh 2012-12-04

    Tested with 3.0.0.v20121130200208

JSON Source