{ "id": "116545", "key": "ALOY-729", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15403", "description": "Alloy 1.3.0", "name": "Alloy 1.3.0", "archived": false, "released": true, "releaseDate": "2013-12-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-01T15:10:53.000+0000", "created": "2013-06-27T09:23:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14634", "description": "Alloy 1.0.0", "name": "Alloy 1.0.0", "archived": false, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-14T18:30:30.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h1. Problem\r\n\r\nThe TabbedBar component is well documented at http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iOS.TabbedBar\r\n\r\nIn the example of the documentation, the {{Labels}} texts are included directly in the XML template, which is not a convenient solution (at the moment) for the developer who works on a i18n application, who will probably prefer to set the {{Label}}'s {{text}} properties in the associated {{tss}} file.\r\n\r\nThis makes alloy bug in its compilation process.\r\n\r\n\r\nh1. Test case \r\n\r\nh2. index.xml\r\n\r\nDoing so makes alloy fail to compile (the compilation stops):\r\n\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nThe error is:\r\n\r\n{code}\r\nAlloy/commands/compile/parsers/Alloy.Abstract.BarItemType.js:30\r\n\t\tlogger.warn(' at index ' + index + ' has no properties');\r\n\t\t ^\r\nReferenceError: index is not defined\r\n at parse (Alloy/commands/compile/parsers/Alloy.Abstract.BarItemType.js:30:43)\r\n at Object.exports.parse (Alloy/commands/compile/parsers/base.js:11:17)\r\n ...\r\n ...\r\n{code}\r\n\r\nAfter digging in the code, I guess that the same should occur with {{Alloy.Abstract.CoverFlowImageType.js}}", "attachment": [], "flagged": false, "summary": "Alloy fails to compile when TabbedBar Labels have no properties", "creator": { "name": "xavier", "key": "xavier", "displayName": "Xavier Lacot", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "259832", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed when building for iOS 6 simulator with Ti SDK 3.1.1 GA and Alloy 1.1.3.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-27T18:30:32.000+0000", "updated": "2013-06-27T18:30:32.000+0000" }, { "id": "264419", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/206\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/ui/tabbedbar\r\n\r\nThis was resolved by an earlier commit. The PR contains an update to the test app that includes the ticket description's test case. Functional testing passes if the app compiles and runs successfully for iOS.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T15:10:53.000+0000", "updated": "2013-08-01T15:10:53.000+0000" }, { "id": "274993", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed. \n\nTiSDK 3.2.0.v20131013140318\nAlloy 1.3.0\niOS 7 (Xcode 5)\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T18:27:08.000+0000", "updated": "2013-10-14T18:27:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }